From 6b22d6663dcba1a08a3662d9d0205005be6bcd86 Mon Sep 17 00:00:00 2001 From: Christopher Grebs Date: Fri, 4 Sep 2015 23:14:33 +0200 Subject: Add support for RSA_R_OAEP_DECODING_ERROR error flag. --- src/_cffi_src/openssl/err.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/_cffi_src') diff --git a/src/_cffi_src/openssl/err.py b/src/_cffi_src/openssl/err.py index 6ec13775..3eb783ee 100644 --- a/src/_cffi_src/openssl/err.py +++ b/src/_cffi_src/openssl/err.py @@ -14,6 +14,7 @@ static const int Cryptography_HAS_098H_ERROR_CODES; static const int Cryptography_HAS_098C_CAMELLIA_CODES; static const int Cryptography_HAS_EC_CODES; static const int Cryptography_HAS_RSA_R_PKCS_DECODING_ERROR; +static const int Cryptography_HAS_RSA_R_OAEP_DECODING_ERROR; struct ERR_string_data_st { unsigned long error; @@ -230,6 +231,7 @@ static const int RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY; static const int RSA_R_BLOCK_TYPE_IS_NOT_01; static const int RSA_R_BLOCK_TYPE_IS_NOT_02; static const int RSA_R_PKCS_DECODING_ERROR; +static const int RSA_R_OAEP_DECODING_ERROR; static const int RSA_F_RSA_SIGN; """ @@ -334,4 +336,11 @@ static const long Cryptography_HAS_RSA_R_PKCS_DECODING_ERROR = 1; static const long Cryptography_HAS_RSA_R_PKCS_DECODING_ERROR = 0; static const long RSA_R_PKCS_DECODING_ERROR = 0; #endif + +#ifdef RSA_R_OAEP_DECODING_ERROR +static const long Cryptography_HAS_RSA_R_OAEP_DECODING_ERROR = 1; +#else +static const long Cryptography_HAS_RSA_R_OAEP_DECODING_ERROR = 0; +static const long RSA_R_OAEP_DECODING_ERROR = 0; +#endif """ -- cgit v1.2.3 From c809360573fc2ef659c154740c32e98f35fc5da9 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sun, 27 Dec 2015 23:55:39 -0600 Subject: RSA_R_OAEP_DECODING_ERROR is pretty ubiquitous --- src/_cffi_src/openssl/err.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/_cffi_src') diff --git a/src/_cffi_src/openssl/err.py b/src/_cffi_src/openssl/err.py index 3eb783ee..9d97be16 100644 --- a/src/_cffi_src/openssl/err.py +++ b/src/_cffi_src/openssl/err.py @@ -14,7 +14,6 @@ static const int Cryptography_HAS_098H_ERROR_CODES; static const int Cryptography_HAS_098C_CAMELLIA_CODES; static const int Cryptography_HAS_EC_CODES; static const int Cryptography_HAS_RSA_R_PKCS_DECODING_ERROR; -static const int Cryptography_HAS_RSA_R_OAEP_DECODING_ERROR; struct ERR_string_data_st { unsigned long error; @@ -336,11 +335,4 @@ static const long Cryptography_HAS_RSA_R_PKCS_DECODING_ERROR = 1; static const long Cryptography_HAS_RSA_R_PKCS_DECODING_ERROR = 0; static const long RSA_R_PKCS_DECODING_ERROR = 0; #endif - -#ifdef RSA_R_OAEP_DECODING_ERROR -static const long Cryptography_HAS_RSA_R_OAEP_DECODING_ERROR = 1; -#else -static const long Cryptography_HAS_RSA_R_OAEP_DECODING_ERROR = 0; -static const long RSA_R_OAEP_DECODING_ERROR = 0; -#endif """ -- cgit v1.2.3