We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a44f3e7 commit 97340d9Copy full SHA for 97340d9
lib/py/src/transport/TSSLSocket.py
@@ -47,8 +47,12 @@ class TSSLBase(object):
47
# SSL 2.0 and 3.0 are disabled via ssl.OP_NO_SSLv2 and ssl.OP_NO_SSLv3.
48
# For python < 2.7.9, use TLS 1.0 since TLSv1_X nor OP_NO_SSLvX is
49
# unavailable.
50
- _default_protocol = ssl.PROTOCOL_TLS_CLIENT if _has_ssl_context else \
51
- ssl.PROTOCOL_TLSv1
+ if sys.version_info < (3, 6):
+ _default_protocol = ssl.PROTOCOL_SSLv23 if _has_ssl_context else \
52
+ ssl.PROTOCOL_TLSv1
53
+ else:
54
+ _default_protocol = ssl.PROTOCOL_TLS_CLIENT if _has_ssl_context else \
55
56
57
def _init_context(self, ssl_version):
58
if self._has_ssl_context:
0 commit comments