diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-04-06 16:28:41 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-04-06 16:28:41 -0700 |
commit | eb5b335d27005aa66b99b4dfc2cbd33aa4886336 (patch) | |
tree | 8be67805d77f25d16e0e9096fac6b504559d48e7 /cryptography | |
parent | 69b31c4c6ff764d0f9ad374313a6f4222243576e (diff) | |
parent | bfecd12d5a3da0cde4cec62f18fe33d075862049 (diff) | |
download | cryptography-eb5b335d27005aa66b99b4dfc2cbd33aa4886336.tar.gz cryptography-eb5b335d27005aa66b99b4dfc2cbd33aa4886336.tar.bz2 cryptography-eb5b335d27005aa66b99b4dfc2cbd33aa4886336.zip |
Merge pull request #892 from reaperhulk/bn-fix
BN_cmp returns an int, not a BIGNUM *
Diffstat (limited to 'cryptography')
-rw-r--r-- | cryptography/hazmat/bindings/openssl/bignum.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 = """ |