]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43880: Show DeprecationWarnings for deprecated ssl module features (GH-25455)
authorChristian Heimes <christian@python.org>
Mon, 19 Apr 2021 05:27:10 +0000 (07:27 +0200)
committerGitHub <noreply@github.com>
Mon, 19 Apr 2021 05:27:10 +0000 (07:27 +0200)
commit2875c603b2a7691b55c2046aca54831c91efda8e
treedd22c59c35f8c113175befbe46a31fb2ecc24733
parent89d1550d14ba689af12eeb726e4ff8ce73cee7e1
bpo-43880: Show DeprecationWarnings for deprecated ssl module features (GH-25455)

* ssl.OP_NO_SSLv2
* ssl.OP_NO_SSLv3
* ssl.OP_NO_TLSv1
* ssl.OP_NO_TLSv1_1
* ssl.OP_NO_TLSv1_2
* ssl.OP_NO_TLSv1_3
* ssl.PROTOCOL_SSLv2
* ssl.PROTOCOL_SSLv3
* ssl.PROTOCOL_SSLv23 (alias for PROTOCOL_TLS)
* ssl.PROTOCOL_TLS
* ssl.PROTOCOL_TLSv1
* ssl.PROTOCOL_TLSv1_1
* ssl.PROTOCOL_TLSv1_2
* ssl.TLSVersion.SSLv3
* ssl.TLSVersion.TLSv1
* ssl.TLSVersion.TLSv1_1
* ssl.wrap_socket()
* ssl.RAND_pseudo_bytes()
* ssl.RAND_egd() (already removed since it's not supported by OpenSSL 1.1.1)
* ssl.SSLContext() without a protocol argument
* ssl.match_hostname()
* hashlib.pbkdf2_hmac() (pure Python implementation, fast OpenSSL
  function will stay)

Signed-off-by: Christian Heimes <christian@python.org>
14 files changed:
Doc/library/hashlib.rst
Doc/library/ssl.rst
Lib/hashlib.py
Lib/ssl.py
Lib/test/pythoninfo.py
Lib/test/test_asyncio/utils.py
Lib/test/test_ftplib.py
Lib/test/test_hashlib.py
Lib/test/test_imaplib.py
Lib/test/test_nntplib.py
Lib/test/test_poplib.py
Lib/test/test_ssl.py
Misc/NEWS.d/next/Library/2021-04-17-13-53-33.bpo-43880.-fC2JD.rst [new file with mode: 0644]
Modules/_ssl.c