Skip to content

Commit 792ab51

Browse files
committed
Use PROTOCOL_SSLv23 in the test HTTPS server, in an attempt to appease the old Gentoo buildbot
1 parent a8b7182 commit 792ab51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Lib/test/ssl_servers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def stop(self):
141141

142142
def make_https_server(case, certfile=CERTFILE, host=HOST, handler_class=None):
143143
# we assume the certfile contains both private key and certificate
144-
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
144+
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
145145
context.load_cert_chain(certfile)
146146
server = HTTPSServerThread(context, host, handler_class)
147147
flag = threading.Event()

0 commit comments

Comments
 (0)