From 946b706ddb62e9bc3f9a88d86431a19a77eec324 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 1 Nov 2023 16:00:47 -0700 Subject: [PATCH] Fixed cfg for RSA_PSS --- openssl-sys/src/evp.rs | 2 +- openssl/src/pkey.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openssl-sys/src/evp.rs b/openssl-sys/src/evp.rs index e317fea35c..a3a8a84fb5 100644 --- a/openssl-sys/src/evp.rs +++ b/openssl-sys/src/evp.rs @@ -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; diff --git a/openssl/src/pkey.rs b/openssl/src/pkey.rs index ac5989c572..8f0b5bdf70 100644 --- a/openssl/src/pkey.rs +++ b/openssl/src/pkey.rs @@ -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);