aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-01-10 12:13:05 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-01-10 12:13:05 -0600
commitcf77d3ad5390e6e00bbb38f379effe8df401fabb (patch)
tree038cb2c3184ad23b68c5833365d21cf78895501f /tests
parentd98b881521c4478ca31a90f9c101620ffe11cdbb (diff)
downloadcryptography-cf77d3ad5390e6e00bbb38f379effe8df401fabb.tar.gz
cryptography-cf77d3ad5390e6e00bbb38f379effe8df401fabb.tar.bz2
cryptography-cf77d3ad5390e6e00bbb38f379effe8df401fabb.zip
add tests to the openssl backend to verify that we've registered
evp ciphers and ssl ciphers
Diffstat (limited to 'tests')
-rw-r--r--tests/hazmat/backends/test_openssl.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py
index ad399594..71250592 100644
--- a/tests/hazmat/backends/test_openssl.py
+++ b/tests/hazmat/backends/test_openssl.py
@@ -95,3 +95,11 @@ class TestOpenSSL(object):
backend._lib.EVP_F_EVP_DECRYPTFINAL_EX,
0
)
+
+ def test_ssl_ciphers_registered(self):
+ meth = backend._lib.TLSv1_method()
+ assert backend._lib.SSL_CTX_new(meth) != backend._ffi.NULL
+
+ def test_evp_ciphers_registered(self):
+ cipher = backend._lib.EVP_get_cipherbyname("aes-256-cbc")
+ assert cipher != backend._ffi.NULL