]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use PROTOCOL_SSLv23 in the test HTTPS server, in an attempt to appease the old Gentoo...
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 13 Oct 2010 12:06:43 +0000 (12:06 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 13 Oct 2010 12:06:43 +0000 (12:06 +0000)
Lib/test/ssl_servers.py

index 914a943da56a0edbbc300160384ce2fdebb73787..cdf9de1014156a796cc8d9ca7032c3b5b9388579 100644 (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()