summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-10-13 12:06:43 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-10-13 12:06:43 (GMT)
commit48e00f3ab6538eaff7bb5734a6dc13bc09e3792f (patch)
tree619a6f19eadbb9ce134694f59c7493f1051a34e1
parent84fa4314ba410e39a6de873af39f145b47d39202 (diff)
downloadcpython-48e00f3ab6538eaff7bb5734a6dc13bc09e3792f.zip
cpython-48e00f3ab6538eaff7bb5734a6dc13bc09e3792f.tar.gz
cpython-48e00f3ab6538eaff7bb5734a6dc13bc09e3792f.tar.bz2
Use PROTOCOL_SSLv23 in the test HTTPS server, in an attempt to appease the old Gentoo buildbot
-rw-r--r--Lib/test/ssl_servers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/ssl_servers.py b/Lib/test/ssl_servers.py
index 914a943..cdf9de1 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()