summaryrefslogtreecommitdiffstats
path: root/Lib/ssl.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-10-17 17:28:30 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2014-10-17 17:28:30 (GMT)
commite4eda4d33f40e6e868d895915facc8c24265b584 (patch)
treef05ed0b3f28efb70ab5bcefd46269770d0573200 /Lib/ssl.py
parentc2c62b13ce512b5000cd659d08505be607fa7c4a (diff)
downloadcpython-e4eda4d33f40e6e868d895915facc8c24265b584.zip
cpython-e4eda4d33f40e6e868d895915facc8c24265b584.tar.gz
cpython-e4eda4d33f40e6e868d895915facc8c24265b584.tar.bz2
Issue #22638: SSLv3 is now disabled throughout the standard library.
It can still be enabled by instantiating a SSLContext manually.
Diffstat (limited to 'Lib/ssl.py')
-rw-r--r--Lib/ssl.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/ssl.py b/Lib/ssl.py
index 8854e37..d74b340 100644
--- a/Lib/ssl.py
+++ b/Lib/ssl.py
@@ -454,6 +454,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