aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshwini Oruganti <ashwini.oruganti@gmail.com>2014-05-01 12:43:30 -0700
committerAshwini Oruganti <ashwini.oruganti@gmail.com>2014-05-01 12:43:30 -0700
commitd2e6563733a59d08cf46af7e93800539391c8d8d (patch)
treef0d5ceb6b026b41306d80ca77b8cdd99d19e05c3
parent42a509350bcc5b117d09e448ac64cc857832935e (diff)
downloadcryptography-d2e6563733a59d08cf46af7e93800539391c8d8d.tar.gz
cryptography-d2e6563733a59d08cf46af7e93800539391c8d8d.tar.bz2
cryptography-d2e6563733a59d08cf46af7e93800539391c8d8d.zip
Customize
-rw-r--r--cryptography/hazmat/bindings/openssl/ecdh.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/cryptography/hazmat/bindings/openssl/ecdh.py b/cryptography/hazmat/bindings/openssl/ecdh.py
index 21a0d6d9..c74abb96 100644
--- a/cryptography/hazmat/bindings/openssl/ecdh.py
+++ b/cryptography/hazmat/bindings/openssl/ecdh.py
@@ -41,6 +41,19 @@ MACROS = """
"""
CUSTOMIZATIONS = """
+#ifdef OPENSSL_NO_ECDH
+static const Cryptography_HAS_ECDH = 0;
+typedef void ECDH_METHOD;
+
+int (*ECDH_compute_key)(void *, size_t, const EC_POINT *, EC_KEY *,
+ void *(*)(const void *, size_t, void *, size_t *)) = NULL;
+
+int (*ECDH_get_ex_new_index)(long, void *, CRYPTO_EX_new *, CRYPTO_EX_dup *,
+ CRYPTO_EX_free *) = NULL;
+
+int (*ECDH_set_ex_data)(EC_KEY *, int, void *) = NULL;
+
+void *(*ECDH_get_ex_data)(EC_KEY *, int) = NULL;
"""
CONDITIONAL_NAMES = {