diff options
| author | Benjamin Fry <[email protected]> | 2016-02-28 22:05:19 -0800 |
|---|---|---|
| committer | Benjamin Fry <[email protected]> | 2016-02-28 22:05:19 -0800 |
| commit | 3fb2c48c9834acafe8a1dfe33a5500430f332ebc (patch) | |
| tree | ecf306807222f0c305da55e56a1aee0dc9ebc8f5 /openssl/src/bn | |
| parent | review fixes, keep raw RSA initiallization private (diff) | |
| download | rust-openssl-3fb2c48c9834acafe8a1dfe33a5500430f332ebc.tar.xz rust-openssl-3fb2c48c9834acafe8a1dfe33a5500430f332ebc.zip | |
added public key material to the constructor
Diffstat (limited to 'openssl/src/bn')
| -rw-r--r-- | openssl/src/bn/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openssl/src/bn/mod.rs b/openssl/src/bn/mod.rs index 70a10154..d548e9ef 100644 --- a/openssl/src/bn/mod.rs +++ b/openssl/src/bn/mod.rs @@ -1,7 +1,7 @@ use libc::{c_int, c_ulong, c_void}; use std::ffi::{CStr, CString}; use std::cmp::Ordering; -use std::{fmt, ptr}; +use std::{fmt, ptr, mem}; use ffi; use ssl::error::SslError; @@ -473,9 +473,9 @@ impl BigNum { n } - pub unsafe fn into_raw(self) -> *mut ffi::BIGNUM { + pub fn into_raw(self) -> *mut ffi::BIGNUM { let mut me = self; - ptr::replace(&mut me.0, ptr::null_mut()) + mem::replace(&mut me.0, ptr::null_mut()) } pub fn to_vec(&self) -> Vec<u8> { |