Skip to content

Commit

Permalink
Merge pull request #2114 from davidben/x509-object-free
Browse files Browse the repository at this point in the history
X509_OBJECT_free_contents is not X509_OBJECT_free
  • Loading branch information
alex committed Dec 2, 2023
2 parents 8840e53 + 66c16ca commit efe619c
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 efe619c

Please sign in to comment.