Skip to content

Commit

Permalink
X509_OBJECT_free_contents is not X509_OBJECT_free
Browse files Browse the repository at this point in the history
Fixes #2098
  • Loading branch information
davidben committed Dec 2, 2023
1 parent 8840e53 commit 66c16ca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions openssl/src/x509/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2439,10 +2439,8 @@ cfg_if! {
}

cfg_if! {
if #[cfg(any(ossl110, libressl350))] {
if #[cfg(any(ossl110, libressl350, boringssl))] {
use ffi::X509_OBJECT_free;
} else if #[cfg(boringssl)] {
use ffi::X509_OBJECT_free_contents as X509_OBJECT_free;
} else {
#[allow(bad_style)]
unsafe fn X509_OBJECT_free(x: *mut ffi::X509_OBJECT) {
Expand Down

0 comments on commit 66c16ca

Please sign in to comment.