Skip to content

Commit

Permalink
Merge pull request #2153 from botovq/libressl-opaque-stack
Browse files Browse the repository at this point in the history
Make _STACK opaque for LibreSSL >= 3.9.0
  • Loading branch information
alex authored Jan 21, 2024
2 parents cc2850f + e12ee79 commit 2ed3c60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions openssl-sys/src/handwritten/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ use libc::*;
cfg_if! {
if #[cfg(ossl110)] {
pub enum OPENSSL_STACK {}
} else if #[cfg(libressl390)] {
pub enum _STACK {}
} else {
#[repr(C)]
pub struct _STACK {
Expand Down
2 changes: 1 addition & 1 deletion openssl-sys/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ macro_rules! cfg_if {
macro_rules! stack {
($t:ident) => {
cfg_if! {
if #[cfg(ossl110)] {
if #[cfg(any(ossl110, libressl390))] {
pub enum $t {}
} else {
#[repr(C)]
Expand Down

0 comments on commit 2ed3c60

Please sign in to comment.