diff options
author | Jean-Paul Calderone <exarkun@twistedmatrix.com> | 2013-12-28 12:56:08 -0500 |
---|---|---|
committer | Jean-Paul Calderone <exarkun@twistedmatrix.com> | 2013-12-28 12:56:08 -0500 |
commit | 30f22f1ee19d8ff9df35d2a04b454a8da9af1a89 (patch) | |
tree | 2483e6bd183ddbf051fb7386fb436b4b9852ec0a | |
parent | 6c56e254932021e73aca04d1b1c71fb8ce9a95ea (diff) | |
download | cryptography-30f22f1ee19d8ff9df35d2a04b454a8da9af1a89.tar.gz cryptography-30f22f1ee19d8ff9df35d2a04b454a8da9af1a89.tar.bz2 cryptography-30f22f1ee19d8ff9df35d2a04b454a8da9af1a89.zip |
typedef has to come before function prototype that relies on it; only place that can happen is if the typedef is in INCLUDES woops
-rw-r--r-- | cryptography/hazmat/backends/openssl/ssl.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cryptography/hazmat/backends/openssl/ssl.py b/cryptography/hazmat/backends/openssl/ssl.py index 071ec503..83353e4f 100644 --- a/cryptography/hazmat/backends/openssl/ssl.py +++ b/cryptography/hazmat/backends/openssl/ssl.py @@ -13,6 +13,11 @@ INCLUDES = """ #include <openssl/ssl.h> + +/* + * Get some simpler definitions for some types used by later prototypes. + */ +typedef STACK_OF(X509) Cryptography_STACK_OF_X509; """ TYPES = """ @@ -303,11 +308,6 @@ static const long Cryptography_HAS_OP_NO_COMPRESSION = 1; static const long Cryptography_HAS_OP_NO_COMPRESSION = 0; const long SSL_OP_NO_COMPRESSION = 0; #endif - -/* - * Get some simpler definitions for some types used by later prototypes. - */ -typedef STACK_OF(X509) Cryptography_STACK_OF_X509; """ CONDITIONAL_NAMES = { |