Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use EVP_MD_CTX_{new,free}() in LibreSSL 3.8.2 #2067

Merged
merged 1 commit into from Oct 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion openssl-sys/src/handwritten/evp.rs
Expand Up @@ -52,7 +52,7 @@ cfg_if! {
}

cfg_if! {
if #[cfg(ossl110)] {
if #[cfg(any(ossl110, libressl382))] {
extern "C" {
pub fn EVP_MD_CTX_new() -> *mut EVP_MD_CTX;
pub fn EVP_MD_CTX_free(ctx: *mut EVP_MD_CTX);
Expand Down
2 changes: 1 addition & 1 deletion openssl/src/hash.rs
Expand Up @@ -43,7 +43,7 @@ use crate::nid::Nid;
use crate::{cvt, cvt_p};

cfg_if! {
if #[cfg(any(ossl110, boringssl))] {
if #[cfg(any(ossl110, boringssl, libressl382))] {
use ffi::{EVP_MD_CTX_free, EVP_MD_CTX_new};
} else {
use ffi::{EVP_MD_CTX_create as EVP_MD_CTX_new, EVP_MD_CTX_destroy as EVP_MD_CTX_free};
Expand Down
2 changes: 1 addition & 1 deletion openssl/src/md_ctx.rs
Expand Up @@ -93,7 +93,7 @@ use std::convert::TryFrom;
use std::ptr;

cfg_if! {
if #[cfg(any(ossl110, boringssl))] {
if #[cfg(any(ossl110, boringssl, libressl382))] {
use ffi::{EVP_MD_CTX_free, EVP_MD_CTX_new};
} else {
use ffi::{EVP_MD_CTX_create as EVP_MD_CTX_new, EVP_MD_CTX_destroy as EVP_MD_CTX_free};
Expand Down
2 changes: 1 addition & 1 deletion openssl/src/sign.rs
Expand Up @@ -81,7 +81,7 @@ use crate::rsa::Padding;
use crate::{cvt, cvt_p};

cfg_if! {
if #[cfg(ossl110)] {
if #[cfg(any(ossl110, libressl382))] {
use ffi::{EVP_MD_CTX_free, EVP_MD_CTX_new};
} else {
use ffi::{EVP_MD_CTX_create as EVP_MD_CTX_new, EVP_MD_CTX_destroy as EVP_MD_CTX_free};
Expand Down