diff options
-rw-r--r-- | cryptography/bindings/openssl/bignum.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cryptography/bindings/openssl/bignum.py b/cryptography/bindings/openssl/bignum.py index 137eb3bd..258847a5 100644 --- a/cryptography/bindings/openssl/bignum.py +++ b/cryptography/bindings/openssl/bignum.py @@ -17,6 +17,7 @@ INCLUDES = """ TYPES = """ typedef ... BIGNUM; +typedef ... BN_ULONG; // Possibly belongs in an asn1.py typedef ... ASN1_INTEGER; @@ -26,10 +27,13 @@ FUNCTIONS = """ BIGNUM *BN_new(); void BN_free(BIGNUM *); -int BN_set_word(BIGNUM *, unsigned long); +int BN_set_word(BIGNUM *, BN_ULONG); char *BN_bn2hex(const BIGNUM *); int BN_hex2bn(BIGNUM **, const char *); -ASN1_INTEGER *BN_to_ASN1_INTEGER(const BIGNUM *, ASN1_INTEGER *); +ASN1_INTEGER *BN_to_ASN1_INTEGER(BIGNUM *, ASN1_INTEGER *); +""" + +MACROS = """ """ |