From a5c58b9b590b0a2f6e94d371c1c18963e3ca1df7 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Tue, 4 Mar 2014 18:13:14 -0800 Subject: Expose the fields --- cryptography/hazmat/bindings/openssl/ec.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cryptography/hazmat/bindings/openssl/ec.py b/cryptography/hazmat/bindings/openssl/ec.py index 7ecd5979..c0c4f887 100644 --- a/cryptography/hazmat/bindings/openssl/ec.py +++ b/cryptography/hazmat/bindings/openssl/ec.py @@ -23,7 +23,10 @@ TYPES = """ static const int Cryptography_HAS_EC; typedef ... EC_KEY; -typedef ... EC_builtin_curve; +typedef struct { + int nid; + const char *comment; +} EC_builtin_curve; static const int NID_X9_62_prime192v1; static const int NID_X9_62_prime192v2; -- cgit v1.2.3