Skip to content

Commit cf8c058

Browse files
authored
Merge pull request #2079 from alex/fix-cfg
Fixed cfg for RSA_PSS
2 parents bbfe01b + 946b706 commit cf8c058

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openssl-sys/src/evp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub const PKCS5_SALT_LEN: c_int = 8;
77
pub const PKCS12_DEFAULT_ITER: c_int = 2048;
88

99
pub const EVP_PKEY_RSA: c_int = NID_rsaEncryption;
10-
#[cfg(any(openssl111, boringssl))]
10+
#[cfg(any(ossl111, libressl310, boringssl))]
1111
pub const EVP_PKEY_RSA_PSS: c_int = NID_rsassaPss;
1212
pub const EVP_PKEY_DSA: c_int = NID_dsa;
1313
pub const EVP_PKEY_DH: c_int = NID_dhKeyAgreement;

openssl/src/pkey.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ pub struct Id(c_int);
7878

7979
impl Id {
8080
pub const RSA: Id = Id(ffi::EVP_PKEY_RSA);
81-
#[cfg(any(openssl111, boringssl))]
81+
#[cfg(any(ossl111, libressl310, boringssl))]
8282
pub const RSA_PSS: Id = Id(ffi::EVP_PKEY_RSA_PSS);
8383
#[cfg(not(boringssl))]
8484
pub const HMAC: Id = Id(ffi::EVP_PKEY_HMAC);

0 commit comments

Comments
 (0)