aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-03-04 16:38:18 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-03-04 16:38:18 -0800
commite16ebfba8777bc05cf4a13d939e9710177b22340 (patch)
treeb4fc4b11f493ee77578d248a9e8dee3937a36295
parentaee8b1aee873f125ba6fad172c2fcbe205fe8fe4 (diff)
downloadcryptography-e16ebfba8777bc05cf4a13d939e9710177b22340.tar.gz
cryptography-e16ebfba8777bc05cf4a13d939e9710177b22340.tar.bz2
cryptography-e16ebfba8777bc05cf4a13d939e9710177b22340.zip
Expose EC_get_builtin_curves
-rw-r--r--cryptography/hazmat/bindings/openssl/ec.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cryptography/hazmat/bindings/openssl/ec.py b/cryptography/hazmat/bindings/openssl/ec.py
index 39403ff2..777860e1 100644
--- a/cryptography/hazmat/bindings/openssl/ec.py
+++ b/cryptography/hazmat/bindings/openssl/ec.py
@@ -23,6 +23,7 @@ TYPES = """
static const int Cryptography_HAS_EC;
typedef ... EC_KEY;
+typedef ... EC_builtin_curve;
static const int NID_X9_62_prime192v1;
static const int NID_X9_62_prime192v2;
@@ -39,14 +40,18 @@ FUNCTIONS = """
MACROS = """
EC_KEY *EC_KEY_new_by_curve_name(int);
void EC_KEY_free(EC_KEY *);
+
+size_t EC_get_builtin_curves(EC_builtin_curve *, size_t);
"""
CUSTOMIZATIONS = """
#ifdef OPENSSL_NO_EC
static const long Cryptography_HAS_EC = 0;
typedef void EC_KEY;
+typdef void EC_builtin_curve;
EC_KEY* (*EC_KEY_new_by_curve_name)(int) = NULL;
void (*EC_KEY_free)(EC_KEY *) = NULL;
+size_t (*EC_get_builtin_curves)(EC_builtin_curve *, size_t) = NULL;
#else
static const long Cryptography_HAS_EC = 1;
#endif