Skip to content

Commit 2ed3c60

Browse files
authored
Merge pull request #2153 from botovq/libressl-opaque-stack
Make _STACK opaque for LibreSSL >= 3.9.0
2 parents cc2850f + e12ee79 commit 2ed3c60

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

openssl-sys/src/handwritten/stack.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ use libc::*;
33
cfg_if! {
44
if #[cfg(ossl110)] {
55
pub enum OPENSSL_STACK {}
6+
} else if #[cfg(libressl390)] {
7+
pub enum _STACK {}
68
} else {
79
#[repr(C)]
810
pub struct _STACK {

openssl-sys/src/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ macro_rules! cfg_if {
5858
macro_rules! stack {
5959
($t:ident) => {
6060
cfg_if! {
61-
if #[cfg(ossl110)] {
61+
if #[cfg(any(ossl110, libressl390))] {
6262
pub enum $t {}
6363
} else {
6464
#[repr(C)]

0 commit comments

Comments
 (0)