aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src/openssl/bignum.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-10-21 07:44:06 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2015-10-21 07:44:06 -0400
commit20ec31b81f730579753fd00f0570ceddb42623ba (patch)
tree3537f5b81fe8f3b6d906e97eb7d999f0cf762f52 /src/_cffi_src/openssl/bignum.py
parent99c45f19be196cb45bf8de8ea105fcb4619ab504 (diff)
downloadcryptography-20ec31b81f730579753fd00f0570ceddb42623ba.tar.gz
cryptography-20ec31b81f730579753fd00f0570ceddb42623ba.tar.bz2
cryptography-20ec31b81f730579753fd00f0570ceddb42623ba.zip
Remove long comments and workarounds, use new cffi syntax
Diffstat (limited to 'src/_cffi_src/openssl/bignum.py')
-rw-r--r--src/_cffi_src/openssl/bignum.py19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/_cffi_src/openssl/bignum.py b/src/_cffi_src/openssl/bignum.py
index 843e5119..ae035007 100644
--- a/src/_cffi_src/openssl/bignum.py
+++ b/src/_cffi_src/openssl/bignum.py
@@ -11,24 +11,7 @@ INCLUDES = """
TYPES = """
typedef ... BN_CTX;
typedef ... BIGNUM;
-/*
- * TODO: This typedef is wrong.
- *
- * This is due to limitations of cffi.
- * See https://bitbucket.org/cffi/cffi/issue/69
- *
- * For another possible work-around (not used here because it involves more
- * complicated use of the cffi API which falls outside the general pattern used
- * by this package), see
- * http://paste.pound-python.org/show/iJcTUMkKeBeS6yXpZWUU/
- *
- * The work-around used here is to just be sure to declare a type that is at
- * least as large as the real type. Maciej explains:
- *
- * <fijal> I think you want to declare your value too large (e.g. long)
- * <fijal> that way you'll never pass garbage
- */
-typedef uintptr_t BN_ULONG;
+typedef int... BN_ULONG;
"""
FUNCTIONS = """