##// END OF EJS Templates
sslutil: check for OpenSSL without TLS 1.0 support in one case...
Manuel Jacob -
r45428:dd7c4a20 default
parent child Browse files
Show More
@@ -553,6 +553,8 b' def wrapserversocket('
553 # footgun to kill security. Don't define it.
553 # footgun to kill security. Don't define it.
554 exactprotocol = ui.config(b'devel', b'serverexactprotocol')
554 exactprotocol = ui.config(b'devel', b'serverexactprotocol')
555 if exactprotocol == b'tls1.0':
555 if exactprotocol == b'tls1.0':
556 if b'tls1.0' not in supportedprotocols:
557 raise error.Abort(_(b'TLS 1.0 not supported by this Python'))
556 protocol = ssl.PROTOCOL_TLSv1
558 protocol = ssl.PROTOCOL_TLSv1
557 elif exactprotocol == b'tls1.1':
559 elif exactprotocol == b'tls1.1':
558 if b'tls1.1' not in supportedprotocols:
560 if b'tls1.1' not in supportedprotocols:
General Comments 0
You need to be logged in to leave comments. Login now