aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-01-10 21:44:05 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-01-10 21:44:05 -0600
commitab2cfc70a63e49ed385f9bb9c4e44bc86025c3a5 (patch)
tree33a44769ffbe4f68199eefc39b6a94df0eff9807 /tests
parent44957cde537a85ad8dba524cb352f784b07fc307 (diff)
downloadcryptography-ab2cfc70a63e49ed385f9bb9c4e44bc86025c3a5.tar.gz
cryptography-ab2cfc70a63e49ed385f9bb9c4e44bc86025c3a5.tar.bz2
cryptography-ab2cfc70a63e49ed385f9bb9c4e44bc86025c3a5.zip
add check to confirm we've loaded error strings
Diffstat (limited to 'tests')
-rw-r--r--tests/hazmat/backends/test_openssl.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py
index c70446b0..421bb530 100644
--- a/tests/hazmat/backends/test_openssl.py
+++ b/tests/hazmat/backends/test_openssl.py
@@ -105,3 +105,10 @@ class TestOpenSSL(object):
def test_evp_ciphers_registered(self):
cipher = backend._lib.EVP_get_cipherbyname(b"aes-256-cbc")
assert cipher != backend._ffi.NULL
+
+ def test_error_strings_loaded(self):
+ err = backend._lib.ERR_error_string(101183626, backend._ffi.NULL)
+ assert backend._ffi.string(err) == (
+ "error:0607F08A:digital envelope routines:EVP_EncryptFinal_ex:"
+ "data not multiple of block length"
+ )