##// END OF EJS Templates
sslutil: require serverhostname argument (API)...
Gregory Szorc -
r29224:7424f429 default
parent child Browse files
Show More
@@ -120,6 +120,9 b' def wrapsocket(sock, keyfile, certfile, '
120 server (and client) support SNI, this tells the server which certificate
120 server (and client) support SNI, this tells the server which certificate
121 to use.
121 to use.
122 """
122 """
123 if not serverhostname:
124 raise error.Abort('serverhostname argument is required')
125
123 # Despite its name, PROTOCOL_SSLv23 selects the highest protocol
126 # Despite its name, PROTOCOL_SSLv23 selects the highest protocol
124 # that both ends support, including TLS protocols. On legacy stacks,
127 # that both ends support, including TLS protocols. On legacy stacks,
125 # the highest it likely goes in TLS 1.0. On modern stacks, it can
128 # the highest it likely goes in TLS 1.0. On modern stacks, it can
General Comments 0
You need to be logged in to leave comments. Login now