Skip to content

Commit

Permalink
EvpKdf and EvpKdfCtx are available in 3.0.0, but mark them ossl320
Browse files Browse the repository at this point in the history
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
  • Loading branch information
reaperhulk committed Sep 1, 2024
1 parent 3e57d9a commit bef571b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openssl/src/kdf.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit bef571b

Please sign in to comment.