making from_raw() unsafe
This commit is contained in:
parent
3fb2c48c98
commit
3e5b65b7fa
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue