Show More
@@ -312,7 +312,7 b' def wrapsocket(sock, keyfile, certfile, ' | |||||
312 | # is loaded and contains that removed CA, you've just undone the user's |
|
312 | # is loaded and contains that removed CA, you've just undone the user's | |
313 | # choice. |
|
313 | # choice. | |
314 |
|
314 | |||
315 |
if util.safehasattr(ssl, ' |
|
315 | if util.safehasattr(ssl, 'TLSVersion'): | |
316 | # python 3.7+ |
|
316 | # python 3.7+ | |
317 | sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) |
|
317 | sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) | |
318 | minimumprotocol = settings[b'minimumprotocol'] |
|
318 | minimumprotocol = settings[b'minimumprotocol'] |
General Comments 0
You need to be logged in to leave comments.
Login now