aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-12-01 08:23:02 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-12-01 08:23:02 -0600
commit2ebd4bd63295bb1acbd2857684e2794272d17e2a (patch)
tree65073a07bbebb90994bc2195e5c2fd7c8d17a9eb /src
parent04b66daa312165bf311803c2e85c71d0b62c42ef (diff)
downloadcryptography-2ebd4bd63295bb1acbd2857684e2794272d17e2a.tar.gz
cryptography-2ebd4bd63295bb1acbd2857684e2794272d17e2a.tar.bz2
cryptography-2ebd4bd63295bb1acbd2857684e2794272d17e2a.zip
if EC isn't present we need to declare this enum
Diffstat (limited to 'src')
-rw-r--r--src/_cffi_src/openssl/ec.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/_cffi_src/openssl/ec.py b/src/_cffi_src/openssl/ec.py
index 0635ca29..f0be0783 100644
--- a/src/_cffi_src/openssl/ec.py
+++ b/src/_cffi_src/openssl/ec.py
@@ -213,7 +213,11 @@ typedef struct {
int nid;
const char *comment;
} EC_builtin_curve;
-typedef long point_conversion_form_t;
+typedef enum {
+ POINT_CONVERSION_COMPRESSED = 0,
+ POINT_CONVERSION_UNCOMPRESSED = 1,
+ POINT_CONVERSION_HYBRID = 2,
+} point_conversion_form_t;
static const int OPENSSL_EC_NAMED_CURVE = 0;