Avoid CodeQL alert against integration test

This doesn't really matter since it's a dummy test server, but it's simpler to fix than to dismiss.
This commit is contained in:
Chris Smowton
2025-03-20 15:49:21 +00:00
parent 9a2a13ed55
commit 5892cdf456

View File

@@ -4,7 +4,8 @@ import ssl
httpd = HTTPServer(('localhost', 4443), SimpleHTTPRequestHandler)
sslctx = ssl.SSLContext()
sslctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
sslctx.options |= ssl.OP_NO_TLSv1 | ssl.OP_NO_TLSv1_1
sslctx.load_cert_chain(certfile="../cert.pem", keyfile="../key.pem")
httpd.socket = sslctx.wrap_socket (httpd.socket, server_side=True)