diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-02 10:55:37 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-02 10:55:37 -0700 |
commit | 6366934837b741aee8c1a77646378b81974b61c3 (patch) | |
tree | 940c2edc0634bd811167132fa720e7876523f367 | |
parent | 5d082009a1636d833e414585344eb1fba3545c7f (diff) | |
download | cryptography-6366934837b741aee8c1a77646378b81974b61c3.tar.gz cryptography-6366934837b741aee8c1a77646378b81974b61c3.tar.bz2 cryptography-6366934837b741aee8c1a77646378b81974b61c3.zip |
Fixes to match teh C headers
-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 = """ """ |