aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTux <tuxxy@users.noreply.github.com>2018-01-05 15:44:54 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2018-01-05 17:44:54 -0500
commitfbb0c12c87931c3c31bb9cc2c221ae3d6f2f63b5 (patch)
tree2df3ff01a55efad498835e30539b6c391af0f4ef /tests
parentbade58f1566683cb5b110b341e01e3d3397b972f (diff)
downloadcryptography-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.py2
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