Files
codeql/python/ql/test/query-tests/Security/CWE-327-InsecureProtocol/InsecureProtocol.py
2021-03-17 14:53:36 +01:00

8 lines
127 B
Python

import ssl
# secure versions
ssl.wrap_socket(ssl_version=ssl.PROTOCOL_TLSv1_2)
# possibly insecure default
ssl.wrap_socket()