Skip to content

Commit

Permalink
Make X509_ALGOR opaque for LibreSSL
Browse files Browse the repository at this point in the history
The struct is still public because that is also the case in OpenSSL, but
it should no longer be accessed directly.
  • Loading branch information
botovq committed Oct 20, 2023
1 parent ade74ca commit 35c8e90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions openssl-sys/build/cfgs.rs
Expand Up @@ -56,6 +56,9 @@ pub fn get(openssl_version: Option<u64>, libressl_version: Option<u64>) -> Vec<&
if libressl_version >= 0x3_08_01_00_0 {
cfgs.push("libressl381");
}
if libressl_version >= 0x3_08_02_00_0 {
cfgs.push("libressl382");
}
} else {
let openssl_version = openssl_version.unwrap();

Expand Down
2 changes: 1 addition & 1 deletion openssl-sys/src/handwritten/types.rs
Expand Up @@ -329,7 +329,7 @@ cfg_if! {
}
}
cfg_if! {
if #[cfg(ossl110)] {
if #[cfg(any(ossl110, libressl382))] {
pub enum X509_ALGOR {}
} else {
#[repr(C)]
Expand Down

0 comments on commit 35c8e90

Please sign in to comment.