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 From 82c9890aad853a6c9d2b9c9d91606a1c38411995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Tue, 28 Oct 2014 17:33:27 +1100 Subject: Removed argument names per review --- cryptography/hazmat/bindings/openssl/evp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cryptography/hazmat/bindings/openssl/evp.py b/cryptography/hazmat/bindings/openssl/evp.py index 2bd479ff..033b083b 100644 --- a/cryptography/hazmat/bindings/openssl/evp.py +++ b/cryptography/hazmat/bindings/openssl/evp.py @@ -121,7 +121,7 @@ int EVP_PKEY_add1_attr_by_NID(EVP_PKEY *, int, 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); +int EVP_PKEY_cmp(const EVP_PKEY *, const EVP_PKEY *); """ MACROS = """ -- cgit v1.2.3