aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Stapleton <alexs@prol.etari.at>2014-05-18 11:19:55 +0100
committerAlex Stapleton <alexs@prol.etari.at>2014-05-18 11:19:55 +0100
commit1d44ea0c7ddbf3120f0b1a9a26e75ae3570666be (patch)
tree1fc7e5834cc067d64cb92fb6157730862694e88a
parent35d7a07f3e4f0f4869bebd95c62473a8cc36d8e1 (diff)
downloadcryptography-1d44ea0c7ddbf3120f0b1a9a26e75ae3570666be.tar.gz
cryptography-1d44ea0c7ddbf3120f0b1a9a26e75ae3570666be.tar.bz2
cryptography-1d44ea0c7ddbf3120f0b1a9a26e75ae3570666be.zip
Add OPENSSL_EC_NAMED_CURVE constant
-rw-r--r--cryptography/hazmat/bindings/openssl/ec.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/cryptography/hazmat/bindings/openssl/ec.py b/cryptography/hazmat/bindings/openssl/ec.py
index e0fe3a75..26fc8ff0 100644
--- a/cryptography/hazmat/bindings/openssl/ec.py
+++ b/cryptography/hazmat/bindings/openssl/ec.py
@@ -27,6 +27,8 @@ static const int Cryptography_HAS_EC_1_0_1;
static const int Cryptography_HAS_EC_NISTP_64_GCC_128;
static const int Cryptography_HAS_EC2M;
+static const int OPENSSL_EC_NAMED_CURVE;
+
typedef ... EC_KEY;
typedef ... EC_GROUP;
typedef ... EC_POINT;
@@ -200,6 +202,7 @@ int EC_METHOD_get_field_type(const EC_METHOD *);
CUSTOMIZATIONS = """
#ifdef OPENSSL_NO_EC
static const long Cryptography_HAS_EC = 0;
+
typedef void EC_KEY;
typedef void EC_GROUP;
typedef void EC_POINT;
@@ -210,6 +213,8 @@ typedef struct {
} EC_builtin_curve;
typedef long point_conversion_form_t;
+static const int OPENSSL_EC_NAMED_CURVE = 0;
+
void (*EC_KEY_free)(EC_KEY *) = NULL;
size_t (*EC_get_builtin_curves)(EC_builtin_curve *, size_t) = NULL;
EC_KEY *(*EC_KEY_new_by_curve_name)(int) = NULL;
@@ -393,6 +398,7 @@ static const long Cryptography_HAS_EC2M = 1;
CONDITIONAL_NAMES = {
"Cryptography_HAS_EC": [
+ "OPENSSL_EC_NAMED_CURVE",
"EC_GROUP_new",
"EC_GROUP_free",
"EC_GROUP_clear_free",