Merge branch 'python-port-insecure-protocol' of github.com:yoff/codeql into python-port-insecure-protocol

This commit is contained in:
Rasmus Lerchedahl Petersen
2021-03-26 00:26:33 +01:00
2 changed files with 3 additions and 1 deletions

View File

@@ -23,6 +23,8 @@ def test_fluent_no_TLSv1():
def test_fluent_safe():
hostname = 'www.python.org'
context = SSL.Context(SSL.SSLv23_METHOD)
context.set_options(SSL.OP_NO_SSLv2)
context.set_options(SSL.OP_NO_SSLv3)
context.set_options(SSL.OP_NO_TLSv1)
context.set_options(SSL.OP_NO_TLSv1_1)