From bef571b737f24a0732e7e64bbd5d7f6fc01d7b5b Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sun, 1 Sep 2024 15:02:33 -0700 Subject: [PATCH] EvpKdf and EvpKdfCtx are available in 3.0.0, but mark them ossl320 We don't use them anywhere that isn't 3.2.0+ right now and that makes clippy angry. It can be changed if and when these get used for methods on older versions --- openssl/src/kdf.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openssl/src/kdf.rs b/openssl/src/kdf.rs index f60ee2e05..ff0c3e68a 100644 --- a/openssl/src/kdf.rs +++ b/openssl/src/kdf.rs @@ -1,7 +1,7 @@ -#[cfg(ossl300)] +#[cfg(ossl320)] struct EvpKdf(*mut ffi::EVP_KDF); -#[cfg(ossl300)] +#[cfg(ossl320)] impl Drop for EvpKdf { fn drop(&mut self) { unsafe { @@ -10,10 +10,10 @@ impl Drop for EvpKdf { } } -#[cfg(ossl300)] +#[cfg(ossl320)] struct EvpKdfCtx(*mut ffi::EVP_KDF_CTX); -#[cfg(ossl300)] +#[cfg(ossl320)] impl Drop for EvpKdfCtx { fn drop(&mut self) { unsafe {