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

Skip to content

Commit d02c529

Browse files
committed
Python: Update annotation
1 parent de9469b commit d02c529

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/ql/test/query-tests/Security/CWE-327/ssl_fluent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def test_fluent_ssl_safe_version():
186186
def test_fluent_explicitly_unsafe():
187187
hostname = 'www.python.org'
188188
context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
189-
context.options &= ~ssl.OP_NO_SSLv3 # This not recognized
189+
context.options &= ~ssl.OP_NO_SSLv3
190190

191191
with socket.create_connection((hostname, 443)) as sock:
192192
with context.wrap_socket(sock, server_hostname=hostname) as ssock: # SSLv3 not flagged here

0 commit comments

Comments
 (0)