aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2016-01-07 16:06:22 -0800
committerPaul Kehrer <paul.l.kehrer@gmail.com>2016-01-07 21:27:00 -0800
commitff90806ea1c62212f77a4d040fe491d05fdf3462 (patch)
tree435a6f95287ba384e17320fe4cfabf60ddd759ea /src/_cffi_src
parent8ca72cf546b70832cb2e32963346b05d9ce1a086 (diff)
downloadcryptography-ff90806ea1c62212f77a4d040fe491d05fdf3462.tar.gz
cryptography-ff90806ea1c62212f77a4d040fe491d05fdf3462.tar.bz2
cryptography-ff90806ea1c62212f77a4d040fe491d05fdf3462.zip
add Cryptography_EVP_PKEY_id
Diffstat (limited to 'src/_cffi_src')
-rw-r--r--src/_cffi_src/openssl/evp.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/_cffi_src/openssl/evp.py b/src/_cffi_src/openssl/evp.py
index 3bd675f7..5d631a69 100644
--- a/src/_cffi_src/openssl/evp.py
+++ b/src/_cffi_src/openssl/evp.py
@@ -119,6 +119,8 @@ int EVP_PKEY_add1_attr_by_txt(EVP_PKEY *, const char *, int,
int EVP_PKEY_cmp(const EVP_PKEY *, const EVP_PKEY *);
EVP_PKEY *EVP_PKCS82PKEY(PKCS8_PRIV_KEY_INFO *);
+
+int Cryptography_EVP_PKEY_id(const EVP_PKEY *);
"""
MACROS = """
@@ -227,4 +229,8 @@ int (*EVP_PKEY_assign_EC_KEY)(EVP_PKEY *, EC_KEY *) = NULL;
EC_KEY *(*EVP_PKEY_get1_EC_KEY)(EVP_PKEY *) = NULL;
int (*EVP_PKEY_set1_EC_KEY)(EVP_PKEY *, EC_KEY *) = NULL;
#endif
+/* EVP_PKEY_id is not available on RHEL5 0.9.8e so we'll define our own */
+int Cryptography_EVP_PKEY_id(const EVP_PKEY *key) {
+ return key->type;
+}
"""