Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a21de3d

Browse files
committed
Issue #22638: SSLv3 is now disabled throughout the standard library.
It can still be enabled by instantiating a SSLContext manually.
1 parent f8c3b69 commit a21de3d

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Lib/ssl.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,9 @@ def _create_unverified_context(protocol=PROTOCOL_SSLv23, *, cert_reqs=None,
458458
context = SSLContext(protocol)
459459
# SSLv2 considered harmful.
460460
context.options |= OP_NO_SSLv2
461+
# SSLv3 has problematic security and is only required for really old
462+
# clients such as IE6 on Windows XP
463+
context.options |= OP_NO_SSLv3
461464

462465
if cert_reqs is not None:
463466
context.verify_mode = cert_reqs

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ Core and Builtins
3636
Library
3737
-------
3838

39+
- Issue #22638: SSLv3 is now disabled throughout the standard library.
40+
It can still be enabled by instantiating a SSLContext manually.
41+
3942
- Issue #22370: Windows detection in pathlib is now more robust.
4043

4144
- Issue #22841: Reject coroutines in asyncio add_signal_handler().

0 commit comments

Comments
 (0)