diff --git a/openssl/src/crypto/rsa.rs b/openssl/src/crypto/rsa.rs index 3cd3ce75..6fcb5b07 100644 --- a/openssl/src/crypto/rsa.rs +++ b/openssl/src/crypto/rsa.rs @@ -29,7 +29,8 @@ impl RSA { } } - pub fn from_raw(rsa: *mut ffi::RSA) -> RSA { + /// the caller should assert that the rsa pointer is valid. + pub unsafe fn from_raw(rsa: *mut ffi::RSA) -> RSA { RSA(rsa) }