Example #1
0
 def test_check_startup_errors_are_allowed(self):
     b = Binding()
     b.lib.ERR_put_error(b.lib.ERR_LIB_EVP, b.lib.EVP_F_EVP_ENCRYPTFINAL_EX,
                         b.lib.EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH, b"",
                         -1)
     b._register_osrandom_engine()
     assert _consume_errors(b.lib) == []
Example #2
0
 def test_check_startup_errors_are_allowed(self):
     b = Binding()
     b.lib.ERR_put_error(
         b.lib.ERR_LIB_EVP,
         b.lib.EVP_F_EVP_ENCRYPTFINAL_EX,
         b.lib.EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH,
         b"",
         -1
     )
     b._register_osrandom_engine()
     assert _consume_errors(b.lib) == []