]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.6] bpo-29136: Add TLS 1.3 cipher suites and OP_NO_TLSv1_3 (GH-1363) (#3444)
authorChristian Heimes <christian@python.org>
Fri, 8 Sep 2017 03:23:52 +0000 (20:23 -0700)
committerGitHub <noreply@github.com>
Fri, 8 Sep 2017 03:23:52 +0000 (20:23 -0700)
commit9f2b3d4c2899f9caea2e47063061a76e460ac618
treec8149b7b145b020c3143609651ccd8fe54645726
parentf032e9237aa7d43d21e0b04d685c36bddf7078c1
[3.6] bpo-29136: Add TLS 1.3 cipher suites and OP_NO_TLSv1_3 (GH-1363) (#3444)

* bpo-29136: Add TLS 1.3 support

TLS 1.3 introduces a new, distinct set of cipher suites. The TLS 1.3
cipher suites don't overlap with cipher suites from TLS 1.2 and earlier.
Since Python sets its own set of permitted ciphers, TLS 1.3 handshake
will fail as soon as OpenSSL 1.1.1 is released. Let's enable the common
AES-GCM and ChaCha20 suites.

Additionally the flag OP_NO_TLSv1_3 is added. It defaults to 0 (no op) with
OpenSSL prior to 1.1.1. This allows applications to opt-out from TLS 1.3
now.

Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit cb5b68abdeb1b1d56c581d5b4d647018703d61e3)
Doc/library/ssl.rst
Lib/ssl.py
Lib/test/test_ssl.py
Misc/NEWS.d/next/Library/2017-09-04-16-39-49.bpo-29136.vSn1oR.rst [new file with mode: 0644]
Modules/_ssl.c