From 27898f4fcc560e9bf01b88d8083ad7a6f0e77592 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Tue, 4 Mar 2014 19:19:43 -0800 Subject: Ugh, C --- cryptography/hazmat/bindings/openssl/ec.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cryptography/hazmat/bindings/openssl/ec.py b/cryptography/hazmat/bindings/openssl/ec.py index c3ca6e93..9fca1ef0 100644 --- a/cryptography/hazmat/bindings/openssl/ec.py +++ b/cryptography/hazmat/bindings/openssl/ec.py @@ -43,7 +43,7 @@ void EC_KEY_free(EC_KEY *); size_t EC_get_builtin_curves(EC_builtin_curve *, size_t); -int Cryptography_EC_builtin_curve_get_nid(EC_builtin_curve); +int Cryptography_EC_builtin_curve_get_nid(EC_builtin_curve *); """ CUSTOMIZATIONS = """ @@ -54,12 +54,12 @@ typedef void EC_builtin_curve; EC_KEY* (*EC_KEY_new_by_curve_name)(int) = NULL; void (*EC_KEY_free)(EC_KEY *) = NULL; size_t (*EC_get_builtin_curves)(EC_builtin_curve *, size_t) = NULL; -int (*Cryptography_EC_builtin_curve_get_nid)(EC_builtin_curve) = NULL; +int (*Cryptography_EC_builtin_curve_get_nid)(EC_builtin_curve *) = NULL; #else static const long Cryptography_HAS_EC = 1; -int Cryptography_EC_builtin_curve_get_nid(EC_builtin_curve c) { - return c.nid; +int Cryptography_EC_builtin_curve_get_nid(EC_builtin_curve *c) { + return c->nid; } #endif """ -- cgit v1.2.3