aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-03-04 19:19:43 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-03-04 19:19:43 -0800
commit27898f4fcc560e9bf01b88d8083ad7a6f0e77592 (patch)
tree192274da46f297114e13d5ee81046bad320ef78f
parent664030c13c0b62b872e6f1e9169ec5b570b73533 (diff)
downloadcryptography-27898f4fcc560e9bf01b88d8083ad7a6f0e77592.tar.gz
cryptography-27898f4fcc560e9bf01b88d8083ad7a6f0e77592.tar.bz2
cryptography-27898f4fcc560e9bf01b88d8083ad7a6f0e77592.zip
Ugh, C
-rw-r--r--cryptography/hazmat/bindings/openssl/ec.py8
1 files 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
"""