From 6366934837b741aee8c1a77646378b81974b61c3 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 2 Oct 2013 10:55:37 -0700 Subject: Fixes to match teh C headers --- cryptography/bindings/openssl/bignum.py | 8 ++++++-- 1 file 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 = """ """ -- cgit v1.2.3