Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrap_socket removed (since python 3.12, deprecated since 3.7) #214

Closed
fabpiaf opened this issue Sep 3, 2024 · 0 comments
Closed

wrap_socket removed (since python 3.12, deprecated since 3.7) #214

fabpiaf opened this issue Sep 3, 2024 · 0 comments

Comments

@fabpiaf
Copy link

fabpiaf commented Sep 3, 2024

https://docs.python.org/3/whatsnew/3.12.html

Remove the ssl.wrap_socket() function, deprecated in Python 3.7: instead, create a ssl.SSLContext object and call its ssl.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 the server hostname. Code is subject to CWE-295 (Improper Certificate Validation). (Contributed by Victor Stinner in gh-94199.)

lanjelot added a commit that referenced this issue Oct 16, 2024
Fix #214: update wrap_socket() usage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant