From: Antoine Pitrou Date: Fri, 17 Oct 2014 17:28:30 +0000 (+0200) Subject: Issue #22638: SSLv3 is now disabled throughout the standard library. X-Git-Tag: v3.4.3rc1~317 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a21de3d45ec2aebf899712cbd0e44eba9611d2af;p=python Issue #22638: SSLv3 is now disabled throughout the standard library. It can still be enabled by instantiating a SSLContext manually. --- diff --git a/Lib/ssl.py b/Lib/ssl.py index b6e6f1695d..2b81b790d8 100644 --- a/Lib/ssl.py +++ b/Lib/ssl.py @@ -458,6 +458,9 @@ def _create_unverified_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 diff --git a/Misc/NEWS b/Misc/NEWS index 275e8590de..2d131bd9cc 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -36,6 +36,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 #22370: Windows detection in pathlib is now more robust. - Issue #22841: Reject coroutines in asyncio add_signal_handler().