Commit 95b61648 authored by Antoine Pitrou's avatar Antoine Pitrou

Backport disabling of SSLv3 in ssl._create_stdlib_context() (issue #22638).

The backport currently doesn't achieve anything since the function isn't used (yet).
parent 86b36e5e
......@@ -445,6 +445,9 @@ def _create_stdlib_context(protocol=PROTOCOL_SSLv23, cert_reqs=None,
context = SSLContext(protocol)
# SSLv2 considered harmful.
context.options |= OP_NO_SSLv2
# SSLv3 has problematic security and is only required for really old
# clients such as IE6 on Windows XP
context.options |= OP_NO_SSLv3
if cert_reqs is not None:
context.verify_mode = cert_reqs
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment