Skip to content

Commit

Permalink
Use the newer names for STACK_OF(T) functions with BoringSSL
Browse files Browse the repository at this point in the history
This is yet another symptom of
sfackler#1944.

Ideally rust-openssl would use the type-safe wrappers, which are the
actual public APIs. Right now, rust-openssl's STACK_OF(T) handling is a
safety regression from C. This PR doesn't address the safety issue, only
works around the BoringSSL porting issue.
  • Loading branch information
davidben committed May 1, 2024
1 parent 9b90b7d commit ef65d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openssl/src/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use crate::util::ForeignTypeExt;
use crate::{cvt, cvt_p, LenType};

cfg_if! {
if #[cfg(ossl110)] {
if #[cfg(any(ossl110, boringssl))] {
use ffi::{
OPENSSL_sk_pop, OPENSSL_sk_free, OPENSSL_sk_num, OPENSSL_sk_value, OPENSSL_STACK,
OPENSSL_sk_new_null, OPENSSL_sk_push,
Expand Down

0 comments on commit ef65d8d

Please sign in to comment.