8000 Fixup from test_ssl test_default_ecdh_curve (GH-11877) · python/cpython@28eb87f · GitHub
[go: up one dir, main page]

Skip to content

Commit 28eb87f

Browse files
stratakistiran
authored andcommitted
Fixup from test_ssl test_default_ecdh_curve (GH-11877)
Partial backport from cb5b68a Co-authored-by: Christian Heimes <christian@python.org>
1 parent b8eaec6 commit 28eb87f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_ssl.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2860,6 +2860,9 @@ def test_default_ecdh_curve(self):
28602860
# should be enabled by default on SSL contexts.
28612861
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
28622862
context.load_cert_chain(CERTFILE)
2863+
# TLSv1.3 defaults to PFS key agreement and no longer has KEA in
2864+
# cipher name.
2865+
context.options |= ssl.OP_NO_TLSv1_3
28632866
# Prior to OpenSSL 1.0.0, ECDH ciphers have to be enabled
28642867
# explicitly using the 'ECCdraft' cipher alias. Otherwise,
28652868
# our default cipher list should prefer ECDH-based ciphers

0 commit comments

Comments
 (0)
0