Skip to content

Commit

Permalink
RSA PSS openssl constant
Browse files Browse the repository at this point in the history
  • Loading branch information
reaperhulk committed Apr 18, 2022
1 parent 3b9a11b commit 0099485
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/_cffi_src/openssl/evp.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
typedef ... EVP_PKEY;
typedef ... EVP_PKEY_CTX;
static const int EVP_PKEY_RSA;
static const int EVP_PKEY_RSA_PSS;
static const int EVP_PKEY_DSA;
static const int EVP_PKEY_DH;
static const int EVP_PKEY_DHX;
Expand Down Expand Up @@ -293,4 +294,10 @@
#else
static const long Cryptography_HAS_EVP_PKEY_DH = 1;
#endif
// OpenSSL 1.1.0 doesn't define this value. But its presence isn't
// unsafe so we don't need to remove it if unsupported.
#if !defined(EVP_PKEY_RSA_PSS)
#define EVP_PKEY_RSA_PSS 912
#endif
"""

0 comments on commit 0099485

Please sign in to comment.