add tests to the openssl backend to verify that we've registered
evp ciphers and ssl ciphers
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py
index ad39959..7125059 100644
--- a/tests/hazmat/backends/test_openssl.py
+++ b/tests/hazmat/backends/test_openssl.py
@@ -95,3 +95,11 @@
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