• Christian Heimes's avatar
    bpo-29136: Add TLS 1.3 cipher suites and OP_NO_TLSv1_3 (#1363) · cb5b68ab
    Christian Heimes authored
    * 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: default avatarChristian Heimes <christian@python.org>
    cb5b68ab
ssl.py 43.4 KB