Kaydet (Commit) f262dd6d authored tarafından Joffrey F's avatar Joffrey F Kaydeden (comit) GitHub

Merge pull request #1281 from TomasTomecek/1265-ssl-test-no-sslX-support-in-openssl

ssl,test: OpenSSL may not support ssl2
...@@ -24,7 +24,8 @@ class SSLAdapterTest(base.BaseTestCase): ...@@ -24,7 +24,8 @@ class SSLAdapterTest(base.BaseTestCase):
ssl_context = ssladapter.urllib3.util.ssl_.create_urllib3_context() ssl_context = ssladapter.urllib3.util.ssl_.create_urllib3_context()
assert ssl_context.options & OP_NO_SSLv3 assert ssl_context.options & OP_NO_SSLv3
assert ssl_context.options & OP_NO_SSLv2 # if OpenSSL is compiled without SSL2 support, OP_NO_SSLv2 will be 0
assert not bool(OP_NO_SSLv2) or ssl_context.options & OP_NO_SSLv2
assert not ssl_context.options & OP_NO_TLSv1 assert not ssl_context.options & OP_NO_TLSv1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment