mirror of
https://github.com/github/codeql.git
synced 2026-04-23 15:55:18 +02:00
Merge pull request #19082 from smowton/smowton/admin/fix-codeql-alert
Avoid CodeQL alert against integration test
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user