Commit 4d83202c authored by Theo Buehler's avatar Theo Buehler
Browse files

X509V3_EXT_add_alias() will be removed

parent 8a4db4b2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -84,6 +84,7 @@ const_ptr_api! {
}

extern "C" {
    #[cfg(not(libressl390))]
    pub fn X509V3_EXT_add_alias(nid_to: c_int, nid_from: c_int) -> c_int;
    pub fn X509V3_EXT_d2i(ext: *mut X509_EXTENSION) -> *mut c_void;
    pub fn X509V3_EXT_i2d(ext_nid: c_int, crit: c_int, ext: *mut c_void) -> *mut X509_EXTENSION;
+3 −0
Original line number Diff line number Diff line
@@ -72,6 +72,9 @@ fn main() {
        if version >= 0x3_08_02_00_0 {
            println!("cargo:rustc-cfg=libressl382");
        }
        if version >= 0x3_09_00_00_0 {
            println!("cargo:rustc-cfg=libressl390");
        }
    }

    if let Ok(vars) = env::var("DEP_OPENSSL_CONF") {
+1 −0
Original line number Diff line number Diff line
@@ -1018,6 +1018,7 @@ impl X509Extension {
    /// # Safety
    ///
    /// This method modifies global state without locking and therefore is not thread safe
    #[cfg(not(libressl390))]
    #[corresponds(X509V3_EXT_add_alias)]
    #[deprecated(
        note = "Use x509::extension types or new_from_der and then this is not necessary",