Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 62a0775

Browse files
yoffRasmusWL
andauthored
Update python/ql/src/Security/CWE-327/examples/secure_protocol.py
Co-authored-by: Rasmus Wriedt Larsen <[email protected]>
1 parent 164b383 commit 62a0775

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/ql/src/Security/CWE-327/examples/secure_protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
hostname = 'www.python.org'
55
context = ssl.SSLContext(ssl.PROTOCOL_TLS)
66
context.options |= ssl.OP_NO_TLSv1
7-
context.options |= ssl.OP_NO_TLSv1_1 # This added by me
7+
context.options |= ssl.OP_NO_TLSv1_1
88

99
with socket.create_connection((hostname, 443)) as sock:
1010
with context.wrap_socket(sock, server_hostname=hostname) as ssock:

0 commit comments

Comments
 (0)