diff options
author | Tux <tuxxy@users.noreply.github.com> | 2018-01-05 15:44:54 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2018-01-05 17:44:54 -0500 |
commit | fbb0c12c87931c3c31bb9cc2c221ae3d6f2f63b5 (patch) | |
tree | 2df3ff01a55efad498835e30539b6c391af0f4ef /tests | |
parent | bade58f1566683cb5b110b341e01e3d3397b972f (diff) | |
download | cryptography-fbb0c12c87931c3c31bb9cc2c221ae3d6f2f63b5.tar.gz cryptography-fbb0c12c87931c3c31bb9cc2c221ae3d6f2f63b5.tar.bz2 cryptography-fbb0c12c87931c3c31bb9cc2c221ae3d6f2f63b5.zip |
Expose `BN_clear_free` in the OpenSSL backend (#4071)
* Expose BN_clear_free
* Use BN_clear_free in test_int_to_bn
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hazmat/backends/test_openssl.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |