]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-94199: Remove the ssl.wrap_socket() function (#94203)
authorVictor Stinner <vstinner@python.org>
Fri, 8 Jul 2022 13:20:15 +0000 (15:20 +0200)
committerGitHub <noreply@github.com>
Fri, 8 Jul 2022 13:20:15 +0000 (15:20 +0200)
commit00464bbed66e5f64bdad7f930b315a88d5afccae
tree4f16892435484a613cbe000ab774a1a8a8ae2b42
parent23ee4a8067506e6c9c47748185653617413f7a60
gh-94199: Remove the ssl.wrap_socket() function (#94203)

Remove the ssl.wrap_socket() function, deprecated in Python 3.7:
instead, create a ssl.SSLContext object and call its
sl.SSLContext.wrap_socket() method. Any package that still uses
ssl.wrap_socket() is broken and insecure. The function neither sends
a SNI TLS extension nor validates server hostname. Code is subject to
CWE-295 : Improper Certificate Validation.
Doc/whatsnew/3.12.rst
Lib/ssl.py
Lib/test/test_ssl.py
Misc/NEWS.d/next/Library/2022-06-24-10-39-56.gh-issue-94199.MIuckY.rst [new file with mode: 0644]