diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-12-01 08:23:02 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-12-01 08:23:02 -0600 |
commit | 2ebd4bd63295bb1acbd2857684e2794272d17e2a (patch) | |
tree | 65073a07bbebb90994bc2195e5c2fd7c8d17a9eb /src/_cffi_src/openssl | |
parent | 04b66daa312165bf311803c2e85c71d0b62c42ef (diff) | |
download | cryptography-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/_cffi_src/openssl')
-rw-r--r-- | src/_cffi_src/openssl/ec.py | 6 |
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; |