diff options
author | Stanisław Pitucha <viraptor@gmail.com> | 2014-10-28 13:15:16 +1100 |
---|---|---|
committer | Stanisław Pitucha <viraptor@gmail.com> | 2014-10-28 13:15:16 +1100 |
commit | 841aefc80680de15b336184dd4b10d8ee896665f (patch) | |
tree | 217e28d2220e9f4738e509bed7a31bc289f8086e | |
parent | 65bdfb6ee2941b6176ed6661e0aac83febc233e0 (diff) | |
download | cryptography-841aefc80680de15b336184dd4b10d8ee896665f.tar.gz cryptography-841aefc80680de15b336184dd4b10d8ee896665f.tar.bz2 cryptography-841aefc80680de15b336184dd4b10d8ee896665f.zip |
Add pkey comparison function to bindings
Expose the EVP_PKEY_cmp function, so that pyOpenSSL can implement
comparison methods on PKey.
-rw-r--r-- | cryptography/hazmat/bindings/openssl/evp.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cryptography/hazmat/bindings/openssl/evp.py b/cryptography/hazmat/bindings/openssl/evp.py index 11834509..2bd479ff 100644 --- a/cryptography/hazmat/bindings/openssl/evp.py +++ b/cryptography/hazmat/bindings/openssl/evp.py @@ -120,6 +120,8 @@ int EVP_PKEY_add1_attr_by_NID(EVP_PKEY *, int, int, const unsigned char *, int); int EVP_PKEY_add1_attr_by_txt(EVP_PKEY *, const char *, int, const unsigned char *, int); + +int EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b); """ MACROS = """ |