aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2018-08-12 17:39:32 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2018-08-12 16:39:32 -0500
commitb1aad8f273dfec7641b31bfbeaebfb921e27122a (patch)
tree08f8b19e248ea93e1046a75cb89e930de50d4053
parent37d2947b441cb20d7cf49af5c179733e6f812e03 (diff)
downloadcryptography-b1aad8f273dfec7641b31bfbeaebfb921e27122a.tar.gz
cryptography-b1aad8f273dfec7641b31bfbeaebfb921e27122a.tar.bz2
cryptography-b1aad8f273dfec7641b31bfbeaebfb921e27122a.zip
sigh, missed one TLSv1 (#4392)
-rw-r--r--tests/hazmat/bindings/test_openssl.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/hazmat/bindings/test_openssl.py b/tests/hazmat/bindings/test_openssl.py
index c0dbc9ba..f317f07f 100644
--- a/tests/hazmat/bindings/test_openssl.py
+++ b/tests/hazmat/bindings/test_openssl.py
@@ -65,7 +65,8 @@ class TestOpenSSL(object):
# Test that we're properly handling 32-bit unsigned on all platforms.
b = Binding()
assert b.lib.SSL_OP_ALL > 0
- ctx = b.lib.SSL_CTX_new(b.lib.TLSv1_method())
+ ctx = b.lib.SSL_CTX_new(b.lib.SSLv23_method())
+ assert ctx != b.ffi.NULL
ctx = b.ffi.gc(ctx, b.lib.SSL_CTX_free)
ssl = b.lib.SSL_new(ctx)
ssl = b.ffi.gc(ssl, b.lib.SSL_free)