From: Antoine Pitrou Date: Wed, 13 Oct 2010 12:06:43 +0000 (+0000) Subject: Use PROTOCOL_SSLv23 in the test HTTPS server, in an attempt to appease the old Gentoo... X-Git-Tag: v3.2a4~633 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48e00f3ab6538eaff7bb5734a6dc13bc09e3792f;p=thirdparty%2FPython%2Fcpython.git Use PROTOCOL_SSLv23 in the test HTTPS server, in an attempt to appease the old Gentoo buildbot --- diff --git a/Lib/test/ssl_servers.py b/Lib/test/ssl_servers.py index 914a943da56a..cdf9de101415 100644 --- a/Lib/test/ssl_servers.py +++ b/Lib/test/ssl_servers.py @@ -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()