From 7b136459af582427d7f738a905aa3cfaa5b4c195 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Mon, 23 Dec 2013 15:11:16 -0500 Subject: revert the time_t and BN_ULONG fixes --- cryptography/hazmat/backends/openssl/asn1.py | 9 +-------- cryptography/hazmat/backends/openssl/bignum.py | 9 +-------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/cryptography/hazmat/backends/openssl/asn1.py b/cryptography/hazmat/backends/openssl/asn1.py index 28ec0631..12e8cb35 100644 --- a/cryptography/hazmat/backends/openssl/asn1.py +++ b/cryptography/hazmat/backends/openssl/asn1.py @@ -16,14 +16,7 @@ INCLUDES = """ """ TYPES = """ -/* - * XXX This typedef is wrong. - * https://bitbucket.org/cffi/cffi/issue/69/support-for-using-typedef-with-primitive - * http://paste.pound-python.org/show/iJcTUMkKeBeS6yXpZWUU/ - * < fijal> exarkun: I think you want to declare your value too large (e.g. long) - * < fijal> exarkun: that way you'll never pass garbage - */ -typedef long time_t; +typedef ... time_t; typedef int ASN1_BOOLEAN; typedef ... ASN1_INTEGER; diff --git a/cryptography/hazmat/backends/openssl/bignum.py b/cryptography/hazmat/backends/openssl/bignum.py index 4885d5b4..68d0c3a2 100644 --- a/cryptography/hazmat/backends/openssl/bignum.py +++ b/cryptography/hazmat/backends/openssl/bignum.py @@ -17,14 +17,7 @@ INCLUDES = """ TYPES = """ typedef ... BIGNUM; -/* - * XXX This typedef is wrong. - * https://bitbucket.org/cffi/cffi/issue/69/support-for-using-typedef-with-primitive - * http://paste.pound-python.org/show/iJcTUMkKeBeS6yXpZWUU/ - * < fijal> exarkun: I think you want to declare your value too large (e.g. long) - * < fijal> exarkun: that way you'll never pass garbage - */ -typedef unsigned long long BN_ULONG; +typedef ... BN_ULONG; """ FUNCTIONS = """ -- cgit v1.2.3