Skip to content

Commit ef65d8d

Browse files
committed
Use the newer names for STACK_OF(T) functions with BoringSSL
This is yet another symptom of #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.
1 parent 9b90b7d commit ef65d8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openssl/src/stack.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use crate::util::ForeignTypeExt;
1414
use crate::{cvt, cvt_p, LenType};
1515

1616
cfg_if! {
17-
if #[cfg(ossl110)] {
17+
if #[cfg(any(ossl110, boringssl))] {
1818
use ffi::{
1919
OPENSSL_sk_pop, OPENSSL_sk_free, OPENSSL_sk_num, OPENSSL_sk_value, OPENSSL_STACK,
2020
OPENSSL_sk_new_null, OPENSSL_sk_push,

0 commit comments

Comments
 (0)