diff options
author | Victor Stinner <vstinner@python.org> | 2022-06-28 11:57:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-28 11:57:08 (GMT) |
commit | 600c65c094b0b48704d8ec2416930648052ba715 (patch) | |
tree | 70416a3c4b9b89b694b3e7d92c7422dfca1c2341 /Doc/library/ssl.rst | |
parent | 4b854b746650214eddadb2440efd9e1544d08ccb (diff) | |
download | cpython-600c65c094b0b48704d8ec2416930648052ba715.zip cpython-600c65c094b0b48704d8ec2416930648052ba715.tar.gz cpython-600c65c094b0b48704d8ec2416930648052ba715.tar.bz2 |
gh-94172: Remove ssl.PROTOCOL_SSLv2 dead code (#94312)
Remove dead code related to ssl.PROTOCOL_SSLv2. ssl.PROTOCOL_SSLv2
was already removed in Python 3.10.
In test_ssl, @requires_tls_version('SSLv2') always returned False.
Extract of the removed code: "OpenSSL has removed support for SSLv2".
Diffstat (limited to 'Doc/library/ssl.rst')
-rw-r--r-- | Doc/library/ssl.rst | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index 1bbcd7a..19225c8 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -645,21 +645,6 @@ Constants Use :data:`PROTOCOL_TLS` instead. -.. data:: PROTOCOL_SSLv2 - - Selects SSL version 2 as the channel encryption protocol. - - This protocol is not available if OpenSSL is compiled with the - ``no-ssl2`` option. - - .. warning:: - - SSL version 2 is insecure. Its use is highly discouraged. - - .. deprecated:: 3.6 - - OpenSSL has removed support for SSLv2. - .. data:: PROTOCOL_SSLv3 Selects SSL version 3 as the channel encryption protocol. @@ -1438,11 +1423,10 @@ to speed up repeated connections from the same clients. The context is created with secure default values. The options :data:`OP_NO_COMPRESSION`, :data:`OP_CIPHER_SERVER_PREFERENCE`, :data:`OP_SINGLE_DH_USE`, :data:`OP_SINGLE_ECDH_USE`, - :data:`OP_NO_SSLv2` (except for :data:`PROTOCOL_SSLv2`), + :data:`OP_NO_SSLv2`, and :data:`OP_NO_SSLv3` (except for :data:`PROTOCOL_SSLv3`) are set by default. The initial cipher suite list contains only ``HIGH`` - ciphers, no ``NULL`` ciphers and no ``MD5`` ciphers (except for - :data:`PROTOCOL_SSLv2`). + ciphers, no ``NULL`` ciphers and no ``MD5`` ciphers. .. deprecated:: 3.10 |