Skip to content

Commit 4d83202

Browse files
committed
X509V3_EXT_add_alias() will be removed
1 parent 8a4db4b commit 4d83202

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

openssl-sys/src/handwritten/x509v3.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ const_ptr_api! {
8484
}
8585

8686
extern "C" {
87+
#[cfg(not(libressl390))]
8788
pub fn X509V3_EXT_add_alias(nid_to: c_int, nid_from: c_int) -> c_int;
8889
pub fn X509V3_EXT_d2i(ext: *mut X509_EXTENSION) -> *mut c_void;
8990
pub fn X509V3_EXT_i2d(ext_nid: c_int, crit: c_int, ext: *mut c_void) -> *mut X509_EXTENSION;

openssl/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ fn main() {
7272
if version >= 0x3_08_02_00_0 {
7373
println!("cargo:rustc-cfg=libressl382");
7474
}
75+
if version >= 0x3_09_00_00_0 {
76+
println!("cargo:rustc-cfg=libressl390");
77+
}
7578
}
7679

7780
if let Ok(vars) = env::var("DEP_OPENSSL_CONF") {

openssl/src/x509/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,7 @@ impl X509Extension {
10181018
/// # Safety
10191019
///
10201020
/// This method modifies global state without locking and therefore is not thread safe
1021+
#[cfg(not(libressl390))]
10211022
#[corresponds(X509V3_EXT_add_alias)]
10221023
#[deprecated(
10231024
note = "Use x509::extension types or new_from_der and then this is not necessary",

0 commit comments

Comments
 (0)