mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
add check to confirm we've loaded error strings
This commit is contained in:
parent
44957cde53
commit
ab2cfc70a6
1 changed files with 7 additions and 0 deletions
|
|
@ -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"
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue