GeezerVison is showing github.com — ssl and hashlib: Remove functions deprecated in Python 3.10 · Issue #94199 · python/cpython
ssl and hashlib: Remove functions deprecated in Python 3.10 #94199DescriptionThe commit 2875c60 deprecated many ssl and hashlib functions in Python 3.10:
- 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)
They emit a DeprecationWarning in Python 3.10 and 3.11. According to PEP 387, they can now be removed in Python 3.12.
I'm not sure that we should actively remove all of these deprecated features, it should be decided on a case by case basis. Backward compatibility is even more complex when it's about security and old security protocols like SSL and old TLS versions.
Activityvstinner commented on Jun 24, 2022 vstinner commented on Jun 24, 2022 What's New in Python 3.10 lists many deprecated ssl functions and announces: "will be removed in 3.11" (Python 3.11).
But in the meanwhile, PEP 387 was updated to require a feature to be deprecated for 2 Python releases (Python 3.10 and 3.11), not only a single Python release. Some functions were deprecated way before Python 3.10 (emit a DeprecationWarning). tiran commented on Jul 8, 2022 I have created ticket #94598 to track removal of SSL 3.0, TLS 1.0, and TLS 1.1 related features. vstinner commented on Jul 8, 2022
I have created ticket #94598 to track removal of SSL 3.0, TLS 1.0, and TLS 1.1 related features.
Thank you for that! illia-v commented on Nov 2, 2022 vstinner commented on Nov 2, 2022 vstinner commented on Nov 3, 2022 I merged the last PR to remove keyfile, certfile and check_hostname parameters: ef0e72b
I close the issue. I removed enough ssl deprecated functions for a single version and @tiran created #94598 to track removal of SSL 3.0, TLS 1.0, and TLS 1.1 related features. Amer7G7 commented on Dec 29, 2023
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|