We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae60c2f commit d771f49Copy full SHA for d771f49
openssl/src/x509/mod.rs
@@ -843,12 +843,16 @@ impl X509Extension {
843
}
844
845
846
- #[corresponds(X509V3_EXT_add_alias)]
847
- pub fn add_alias(to: Nid, from: Nid) -> Result<(), ErrorStack> {
848
- unsafe {
849
- ffi::init();
850
- cvt(ffi::X509V3_EXT_add_alias(to.as_raw(), from.as_raw())).map(|_| ())
851
- }
+ /// Adds an alias for an extension
+ ///
+ /// This corresponds to [`X509V3_EXT_add_alias`]
+ /// # Safety
852
+ /// This method modifies global state without locking and therefore is not thread safe
853
+ pub unsafe fn add_alias(to: Nid, from: Nid) -> Result<(), ErrorStack> {
854
+ ffi::init();
855
+ cvt(ffi::X509V3_EXT_add_alias(to.as_raw(), from.as_raw())).map(|_| ())
856
857
858
0 commit comments