Skip to content

Commit

Permalink
disable the conf module for LibreSSL 4
Browse files Browse the repository at this point in the history
  • Loading branch information
botovq committed Aug 30, 2024
1 parent dbf2d68 commit 337325d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions openssl/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ fn main() {
println!("cargo:rustc-check-cfg=cfg(libressl380)");
println!("cargo:rustc-check-cfg=cfg(libressl382)");
println!("cargo:rustc-check-cfg=cfg(libressl390)");
println!("cargo:rustc-check-cfg=cfg(libressl400)");

println!("cargo:rustc-check-cfg=cfg(ossl101)");
println!("cargo:rustc-check-cfg=cfg(ossl102)");
Expand Down Expand Up @@ -112,6 +113,9 @@ fn main() {
if version >= 0x3_09_00_00_0 {
println!("cargo:rustc-cfg=libressl390");
}
if version >= 0x4_00_00_00_0 {
println!("cargo:rustc-cfg=libressl400");
}
}

if let Ok(vars) = env::var("DEP_OPENSSL_CONF") {
Expand Down
4 changes: 2 additions & 2 deletions openssl/src/conf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ foreign_type_and_impl_send_sync! {
pub struct ConfRef;
}

#[cfg(not(boringssl))]
#[cfg(not(any(boringssl, libressl400)))]
mod methods {
use super::Conf;
use crate::cvt_p;
Expand Down Expand Up @@ -61,5 +61,5 @@ mod methods {
}
}
}
#[cfg(not(boringssl))]
#[cfg(not(any(boringssl, libressl400)))]
pub use methods::*;

0 comments on commit 337325d

Please sign in to comment.