From 83b4eee23b78ac4b096099bad037bb89ce957a51 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Tue, 28 Jan 2014 14:11:01 -0800 Subject: This needs to be first --- cryptography/hazmat/bindings/openssl/ec.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cryptography/hazmat/bindings/openssl/ec.py b/cryptography/hazmat/bindings/openssl/ec.py index 06fd710c..042026fa 100644 --- a/cryptography/hazmat/bindings/openssl/ec.py +++ b/cryptography/hazmat/bindings/openssl/ec.py @@ -14,6 +14,8 @@ INCLUDES = """ #ifndef OPENSSL_NO_EC #include +#else +typedef void EC_KEY; #endif #include @@ -44,7 +46,6 @@ MACROS = """ CUSTOMIZATIONS = """ #ifdef OPENSSL_NO_EC static const long Cryptography_HAS_EC = 0; -typedef void EC_KEY; EC_KEY* (*EC_KEY_new_by_curve_name)(int) = NULL; void (*EC_KEY_free)(EC_KEY *) = NULL; #else -- cgit v1.2.3