making from_raw() unsafe

This commit is contained in:
Benjamin Fry 2016-03-05 13:43:14 -08:00
parent 3fb2c48c98
commit 3e5b65b7fa
1 changed files with 2 additions and 1 deletions

View File

@ -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) RSA(rsa)
} }