-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
gh-95816: fix client_context example from ssl protocol versions docs #93798
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
1b97375
d642d91
1187dd0
98d744c
63dac5a
3e0f334
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2686,8 +2686,8 @@ disabled by default. | |
| :: | ||
|
|
||
| >>> client_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) | ||
| >>> client_context.minimum_version = ssl.TLSVersion.TLSv1_3 | ||
| >>> client_context.maximum_version = ssl.TLSVersion.TLSv1_3 | ||
| >>> client_context.minimum_version = ssl.TLSVersion.TLSv1_2 | ||
graingert marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| >>> client_context.maximum_version = ssl.TLSVersion.MAXIMUM_VERSION | ||
graingert marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| The SSL context created above will only allow TLSv1.2 and later (if | ||
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
introduced here https://github.com/python/cpython/pull/25455/files#diff-df0c7115ade453321aadb2eb534941f2ec87c4b52563bae70421918dce5435dcR2653-R2654