From 2ebd4bd63295bb1acbd2857684e2794272d17e2a Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Tue, 1 Dec 2015 08:23:02 -0600 Subject: if EC isn't present we need to declare this enum --- src/_cffi_src/openssl/ec.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/_cffi_src/openssl/ec.py') 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; -- cgit v1.2.3