Commit 3e5b65b7 authored by Benjamin Fry's avatar Benjamin Fry
Browse files

making from_raw() unsafe

parent 3fb2c48c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)
    }