aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cryptography/hazmat/bindings/openssl/binding.py1
-rw-r--r--cryptography/hazmat/bindings/openssl/ecdh.py6
2 files changed, 3 insertions, 4 deletions
diff --git a/cryptography/hazmat/bindings/openssl/binding.py b/cryptography/hazmat/bindings/openssl/binding.py
index f0ff3275..aa0525ff 100644
--- a/cryptography/hazmat/bindings/openssl/binding.py
+++ b/cryptography/hazmat/bindings/openssl/binding.py
@@ -55,6 +55,7 @@ class Binding(object):
"dh",
"dsa",
"ec",
+ "ecdh",
"ecdsa",
"engine",
"err",
diff --git a/cryptography/hazmat/bindings/openssl/ecdh.py b/cryptography/hazmat/bindings/openssl/ecdh.py
index 6f2fb5b5..adba0152 100644
--- a/cryptography/hazmat/bindings/openssl/ecdh.py
+++ b/cryptography/hazmat/bindings/openssl/ecdh.py
@@ -21,8 +21,6 @@ INCLUDES = """
TYPES = """
static const int Cryptography_HAS_ECDH;
-
-typedef ... ECDH_METHOD;
"""
FUNCTIONS = """
@@ -42,7 +40,7 @@ MACROS = """
CUSTOMIZATIONS = """
#ifdef OPENSSL_NO_ECDH
-static const Cryptography_HAS_ECDH = 0;
+static const long Cryptography_HAS_ECDH = 0;
typedef void ECDH_METHOD;
int (*ECDH_compute_key)(void *, size_t, const EC_POINT *, EC_KEY *,
@@ -57,7 +55,7 @@ int (*ECDH_set_ex_data)(EC_KEY *, int, void *) = NULL;
void *(*ECDH_get_ex_data)(EC_KEY *, int) = NULL;
#else
-static const Cryptography_HAS_ECDH = 1;
+static const long Cryptography_HAS_ECDH = 1;
#endif
"""