Loading openssl/src/x509/mod.rs +1 −2 Original line number Diff line number Diff line Loading @@ -845,11 +845,10 @@ impl X509Extension { /// Adds an alias for an extension /// /// This corresponds to [`X509V3_EXT_add_alias`] /// /// # Safety /// /// This method modifies global state without locking and therefore is not thread safe #[corresponds(X509V3_EXT_add_alias)] pub unsafe fn add_alias(to: Nid, from: Nid) -> Result<(), ErrorStack> { ffi::init(); cvt(ffi::X509V3_EXT_add_alias(to.as_raw(), from.as_raw())).map(|_| ()) Loading Loading
openssl/src/x509/mod.rs +1 −2 Original line number Diff line number Diff line Loading @@ -845,11 +845,10 @@ impl X509Extension { /// Adds an alias for an extension /// /// This corresponds to [`X509V3_EXT_add_alias`] /// /// # Safety /// /// This method modifies global state without locking and therefore is not thread safe #[corresponds(X509V3_EXT_add_alias)] pub unsafe fn add_alias(to: Nid, from: Nid) -> Result<(), ErrorStack> { ffi::init(); cvt(ffi::X509V3_EXT_add_alias(to.as_raw(), from.as_raw())).map(|_| ()) Loading