Use PROTOCOL_SSLv23 in the test HTTPS server, in an attempt to appease the old Gentoo buildbot

This commit is contained in:
Antoine Pitrou 2010-10-13 12:06:43 +00:00
parent 84fa4314ba
commit 48e00f3ab6
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ class HTTPSServerThread(threading.Thread):
def make_https_server(case, certfile=CERTFILE, host=HOST, handler_class=None):
# we assume the certfile contains both private key and certificate
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
context.load_cert_chain(certfile)
server = HTTPSServerThread(context, host, handler_class)
flag = threading.Event()