From 065cc77d0c574d0f713af4f2b37fb9040b3537cf Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 16 Oct 2024 18:14:59 -0400 Subject: [PATCH] fixes #2317 -- restore compatibility with our MSRV and release openssl 0.9.68 --- openssl/CHANGELOG.md | 9 ++++++++- openssl/Cargo.toml | 2 +- openssl/src/kdf.rs | 3 ++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/openssl/CHANGELOG.md b/openssl/CHANGELOG.md index 259614cee..e939d4784 100644 --- a/openssl/CHANGELOG.md +++ b/openssl/CHANGELOG.md @@ -2,6 +2,12 @@ ## [Unreleased] +## [v0.10.68] - 2024-10-16 + +### Fixed + +* Fixed building on Rust 1.63.0 (our MSRV) with OpenSSL 3.2 or newer. + ## [v0.10.67] - 2024-10-15 ### Added @@ -925,7 +931,8 @@ Look at the [release tags] for information about older releases. -[Unreleased]: https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.67...master +[Unreleased]: https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.68...master +[v0.10.68]: https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.67...openssl-v0.10.68 [v0.10.67]: https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.66...openssl-v0.10.67 [v0.10.66]: https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.65...openssl-v0.10.66 [v0.10.65]: https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.64...openssl-v0.10.65 diff --git a/openssl/Cargo.toml b/openssl/Cargo.toml index 88bfcaf77..7bd6bdbb4 100644 --- a/openssl/Cargo.toml +++ b/openssl/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "openssl" -version = "0.10.67" +version = "0.10.68" authors = ["Steven Fackler "] license = "Apache-2.0" description = "OpenSSL bindings" diff --git a/openssl/src/kdf.rs b/openssl/src/kdf.rs index 4f6b1f8aa..a5da35250 100644 --- a/openssl/src/kdf.rs +++ b/openssl/src/kdf.rs @@ -25,10 +25,11 @@ impl Drop for EvpKdfCtx { cfg_if::cfg_if! { if #[cfg(all(ossl320, not(osslconf = "OPENSSL_NO_ARGON2")))] { use std::cmp; - use std::ffi::{c_char, c_void}; + use std::ffi::c_void; use std::mem::MaybeUninit; use std::ptr; use foreign_types::ForeignTypeRef; + use libc::c_char; use crate::{cvt, cvt_p}; use crate::lib_ctx::LibCtxRef; use crate::error::ErrorStack;