mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Update whatsnew with my contributions
This commit is contained in:
parent
35a24c5a43
commit
c4d2e500a9
2 changed files with 83 additions and 3 deletions
|
@ -2255,9 +2255,9 @@ recommended to use :const:`PROTOCOL_TLS_CLIENT` or
|
|||
:const:`PROTOCOL_TLS_SERVER` as the protocol version. SSLv2 and SSLv3 are
|
||||
disabled by default.
|
||||
|
||||
client_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
|
||||
client_context.options |= ssl.OP_NO_TLSv1
|
||||
client_context.options |= ssl.OP_NO_TLSv1_1
|
||||
>>> client_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
|
||||
>>> client_context.options |= ssl.OP_NO_TLSv1
|
||||
>>> client_context.options |= ssl.OP_NO_TLSv1_1
|
||||
|
||||
|
||||
The SSL context created above will only allow TLSv1.2 and later (if
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue