mirror of
https://github.com/seemoo-lab/opendrop.git
synced 2026-09-14 15:16:11 -04:00
Suppress LGTM false positive
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user