diff options
-rw-r--r-- | src/_cffi_src/openssl/bignum.py | 1 | ||||
-rw-r--r-- | tests/hazmat/backends/test_openssl.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/_cffi_src/openssl/bignum.py b/src/_cffi_src/openssl/bignum.py index fb33c459..e0d87ae1 100644 --- a/src/_cffi_src/openssl/bignum.py +++ b/src/_cffi_src/openssl/bignum.py @@ -17,6 +17,7 @@ typedef int... BN_ULONG; FUNCTIONS = """ BIGNUM *BN_new(void); void BN_free(BIGNUM *); +void BN_clear_free(BIGNUM *); BN_CTX *BN_CTX_new(void); void BN_CTX_free(BN_CTX *); diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index 58631490..31b34cd0 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -150,7 +150,7 @@ class TestOpenSSL(object): value = (2 ** 4242) - 4242 bn = backend._int_to_bn(value) assert bn != backend._ffi.NULL - bn = backend._ffi.gc(bn, backend._lib.BN_free) + bn = backend._ffi.gc(bn, backend._lib.BN_clear_free) assert bn assert backend._bn_to_int(bn) == value |