From bfecd12d5a3da0cde4cec62f18fe33d075862049 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sat, 5 Apr 2014 20:04:26 -0500 Subject: BN_cmp returns an int, not a BIGNUM * --- cryptography/hazmat/bindings/openssl/bignum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cryptography/hazmat/bindings/openssl/bignum.py b/cryptography/hazmat/bindings/openssl/bignum.py index d505b177..94c2914e 100644 --- a/cryptography/hazmat/bindings/openssl/bignum.py +++ b/cryptography/hazmat/bindings/openssl/bignum.py @@ -68,6 +68,7 @@ BIGNUM *BN_bin2bn(const unsigned char *, int, BIGNUM *); int BN_num_bits(const BIGNUM *); +int BN_cmp(const BIGNUM *, const BIGNUM *); int BN_add(BIGNUM *, const BIGNUM *, const BIGNUM *); int BN_sub(BIGNUM *, const BIGNUM *, const BIGNUM *); int BN_mul(BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *); @@ -92,7 +93,6 @@ MACROS = """ int BN_zero(BIGNUM *); int BN_one(BIGNUM *); int BN_mod(BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *); -BIGNUM *BN_cmp(const BIGNUM *, const BIGNUM *); """ CUSTOMIZATIONS = """ -- cgit v1.2.3