From 841aefc80680de15b336184dd4b10d8ee896665f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Tue, 28 Oct 2014 13:15:16 +1100 Subject: Add pkey comparison function to bindings Expose the EVP_PKEY_cmp function, so that pyOpenSSL can implement comparison methods on PKey. --- cryptography/hazmat/bindings/openssl/evp.py | 2 ++ 1 file changed, 2 insertions(+) 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 = """ -- cgit v1.2.3