aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-05-26 20:08:00 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2015-05-26 20:08:00 -0400
commit8ac357f7ee5af833099f0c1349422155778711a7 (patch)
tree4d824b15e3f16dbeabc64d8b56de9b076603a720
parente44a56e5add6e11b0c129ce604e1d8ccffeacd66 (diff)
downloadcryptography-8ac357f7ee5af833099f0c1349422155778711a7.tar.gz
cryptography-8ac357f7ee5af833099f0c1349422155778711a7.tar.bz2
cryptography-8ac357f7ee5af833099f0c1349422155778711a7.zip
Bleh, these were the wrong type
-rw-r--r--src/cryptography/hazmat/bindings/openssl/x509.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cryptography/hazmat/bindings/openssl/x509.py b/src/cryptography/hazmat/bindings/openssl/x509.py
index d9aea629..0e161acb 100644
--- a/src/cryptography/hazmat/bindings/openssl/x509.py
+++ b/src/cryptography/hazmat/bindings/openssl/x509.py
@@ -315,8 +315,8 @@ EC_KEY *d2i_ECPrivateKey_bio(BIO *, EC_KEY **);
int i2d_ECPrivateKey(EC_KEY *, unsigned char **);
int i2d_ECPrivateKey_bio(BIO *, EC_KEY *);
-EC_KEY *o2i_ECPrivateKey(EC_KEY **, const unsigned char **, long);
-int i2o_ECPrivateKey(EC_KEY *, unsigned char **);
+EC_KEY *o2i_ECPublicKey(EC_KEY **, const unsigned char **, long);
+int i2o_ECPublicKey(EC_KEY *, unsigned char **);
// declared in safestack
int sk_ASN1_OBJECT_num(Cryptography_STACK_OF_ASN1_OBJECT *);
@@ -339,8 +339,8 @@ EC_KEY *(*d2i_ECPrivateKey_bio)(BIO *, EC_KEY **) = NULL;
int (*i2d_ECPrivateKey)(EC_KEY *, unsigned char **) = NULL;
int (*i2d_ECPrivateKey_bio)(BIO *, EC_KEY *) = NULL;
-EC_KEY *(*o2i_ECPrivateKey)(EC_KEY **, const unsigned char **, long) = NULL;
-int (*i2o_ECPrivateKey)(EC_KEY *, unsigned char **) = NULL;
+EC_KEY *(*o2i_ECPublicKey)(EC_KEY **, const unsigned char **, long) = NULL;
+int (*i2o_ECPublicKey)(EC_KEY *, unsigned char **) = NULL;
#endif
"""
@@ -354,7 +354,7 @@ CONDITIONAL_NAMES = {
"d2i_ECPrivateKey_bio",
"i2d_ECPrivateKey",
"i2d_ECPrivateKey_bio",
- "i2o_ECPrivateKey"
- "o2i_ECPrivateKey",
+ "i2o_ECPublicKey"
+ "o2i_ECPublicKey",
]
}