mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
define OAEP properties for all openssl versions (#5589)
In 3.0 these aren't macros so we can't test this way. All our supported OpenSSLs have these bindings now and LibreSSL does not.
This commit is contained in:
parent
417f684f61
commit
d890e2a606
1 changed files with 3 additions and 7 deletions
|
|
@ -48,17 +48,13 @@ int EVP_PKEY_CTX_set_rsa_oaep_md(EVP_PKEY_CTX *, EVP_MD *);
|
|||
"""
|
||||
|
||||
CUSTOMIZATIONS = """
|
||||
#if defined(EVP_PKEY_CTX_set_rsa_oaep_md)
|
||||
#if !CRYPTOGRAPHY_IS_LIBRESSL
|
||||
static const long Cryptography_HAS_RSA_OAEP_MD = 1;
|
||||
#else
|
||||
static const long Cryptography_HAS_RSA_OAEP_MD = 0;
|
||||
int (*EVP_PKEY_CTX_set_rsa_oaep_md)(EVP_PKEY_CTX *, EVP_MD *) = NULL;
|
||||
#endif
|
||||
|
||||
#if defined(EVP_PKEY_CTX_set0_rsa_oaep_label)
|
||||
static const long Cryptography_HAS_RSA_OAEP_LABEL = 1;
|
||||
#else
|
||||
static const long Cryptography_HAS_RSA_OAEP_MD = 0;
|
||||
static const long Cryptography_HAS_RSA_OAEP_LABEL = 0;
|
||||
int (*EVP_PKEY_CTX_set_rsa_oaep_md)(EVP_PKEY_CTX *, EVP_MD *) = NULL;
|
||||
int (*EVP_PKEY_CTX_set0_rsa_oaep_label)(EVP_PKEY_CTX *, unsigned char *,
|
||||
int) = NULL;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue