Skip to content

Commit

Permalink
Merge pull request #2079 from alex/fix-cfg
Browse files Browse the repository at this point in the history
Fixed cfg for RSA_PSS
  • Loading branch information
sfackler authored Nov 3, 2023
2 parents bbfe01b + 946b706 commit cf8c058
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openssl-sys/src/evp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub const PKCS5_SALT_LEN: c_int = 8;
pub const PKCS12_DEFAULT_ITER: c_int = 2048;

pub const EVP_PKEY_RSA: c_int = NID_rsaEncryption;
#[cfg(any(openssl111, boringssl))]
#[cfg(any(ossl111, libressl310, boringssl))]
pub const EVP_PKEY_RSA_PSS: c_int = NID_rsassaPss;
pub const EVP_PKEY_DSA: c_int = NID_dsa;
pub const EVP_PKEY_DH: c_int = NID_dhKeyAgreement;
Expand Down
2 changes: 1 addition & 1 deletion openssl/src/pkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub struct Id(c_int);

impl Id {
pub const RSA: Id = Id(ffi::EVP_PKEY_RSA);
#[cfg(any(openssl111, boringssl))]
#[cfg(any(ossl111, libressl310, boringssl))]
pub const RSA_PSS: Id = Id(ffi::EVP_PKEY_RSA_PSS);
#[cfg(not(boringssl))]
pub const HMAC: Id = Id(ffi::EVP_PKEY_HMAC);
Expand Down

0 comments on commit cf8c058

Please sign in to comment.