-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Card ID: CCT-266 - The flag PROTOCOL_SSLv23 is an alias to PROTOCOL_TLS since Python 3.6. - The flag PROTOCOL_TLS is deprecated since Python 3.10. - The flag PROTOCOL_TLS_CLIENT has been introduced in Python 3.6 and should be used for client-side contexts. This patch uses PROTOCOL_TLS_CLIENT instead of PROTOCOL_SSLv23. - There is no need to use OP_NO_SSLv2 and OP_NO_SSLv3 flags explicitly now; SSLContext disables these by default. - The flag PROTOCOL_TLS_CLIENT enables the check_hostname by default. For insecure contexts we need to disable this flag explicitly.
- Loading branch information
Showing
2 changed files
with
7 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters