diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2014-10-17 19:28:30 +0200 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2014-10-17 19:28:30 +0200 |
commit | 29de910f61224444c384bc57c12bcffa620b8788 (patch) | |
tree | 865e58cd5fb871feaebd9fbe5c05d01e7cd164ed | |
parent | 00757e0f10c89f0c20b32fb60052698316e2d222 (diff) | |
download | cpython-29de910f61224444c384bc57c12bcffa620b8788.tar.gz |
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).
-rw-r--r-- | Lib/ssl.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/ssl.py b/Lib/ssl.py index dea893cf77..025aadeff4 100644 --- a/Lib/ssl.py +++ b/Lib/ssl.py @@ -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 |