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.
V
Victor Stinner committed
00464bbed66e5f64bdad7f930b315a88d5afccae
Parent: 23ee4a8
Committed by GitHub <noreply@github.com>
on 7/8/2022, 1:20:15 PM