]> granicus.if.org Git - python/commitdiff
Issue #22638: SSLv3 is now disabled throughout the standard library.
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 17 Oct 2014 17:28:30 +0000 (19:28 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 17 Oct 2014 17:28:30 +0000 (19:28 +0200)
It can still be enabled by instantiating a SSLContext manually.

Lib/ssl.py
Misc/NEWS

index 8854e377486cd7bc88e8302512f8fda12eb40bb0..d74b340a7fd23eb51f9a72e4400b733be754a382 100644 (file)
@@ -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
index fd502b6e4a44ad2f18452dc567b9d01063c58e9f..d5704308b173d9a701212b9ab93da49ac3f704ea 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -178,6 +178,9 @@ Core and Builtins
 Library
 -------
 
+- Issue #22638: SSLv3 is now disabled throughout the standard library.
+  It can still be enabled by instantiating a SSLContext manually.
+
 - Issue #22641: In asyncio, the default SSL context for client connections
   is now created using ssl.create_default_context(), for stronger security.