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

Skip to content

Commit 54dad57

Browse files
yoffRasmusWL
andauthored
Update python/ql/test/query-tests/Security/CWE-327/pyOpenSSL_fluent.py
Co-authored-by: Rasmus Wriedt Larsen <[email protected]>
1 parent 62a0775 commit 54dad57

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ def test_fluent_no_TLSv1():
2323
def test_fluent_safe():
2424
hostname = 'www.python.org'
2525
context = SSL.Context(SSL.SSLv23_METHOD)
26+
context.set_options(SSL.OP_NO_SSLv2)
27+
context.set_options(SSL.OP_NO_SSLv3)
2628
context.set_options(SSL.OP_NO_TLSv1)
2729
context.set_options(SSL.OP_NO_TLSv1_1)
2830

0 commit comments

Comments
 (0)