Suppress LGTM false positive

This commit is contained in:
Milan Stute
2020-01-09 10:13:58 +01:00
committed by GitHub
parent 44c3aa5197
commit bfe297e756
+1 -1
View File
@@ -121,7 +121,7 @@ class AirDropConfig:
stderr=subprocess.PIPE)
def get_ssl_context(self):
ctx = ssl.SSLContext(ssl.PROTOCOL_TLS)
ctx = ssl.SSLContext(ssl.PROTOCOL_TLS) # lgtm[py/insecure-protocol], TODO see https://github.com/Semmle/ql/issues/2554
ctx.options |= ssl.OP_NO_TLSv1 # TLSv1.0 is insecure
ctx.load_cert_chain(self.cert_file, keyfile=self.key_file)
ctx.load_verify_locations(cafile=self.root_ca_file)