diff options
| author | Steven Fackler <[email protected]> | 2016-10-30 16:59:06 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-10-30 17:00:54 -0700 |
| commit | 610403a562450099a3744a60c23678ffc3b0dd5f (patch) | |
| tree | 70ff7aeed60b91f3373fa40748ee48b96839fa26 /openssl/src/pkey.rs | |
| parent | Add DsaRef (diff) | |
| download | rust-openssl-610403a562450099a3744a60c23678ffc3b0dd5f.tar.xz rust-openssl-610403a562450099a3744a60c23678ffc3b0dd5f.zip | |
Add RsaRef
Diffstat (limited to 'openssl/src/pkey.rs')
| -rw-r--r-- | openssl/src/pkey.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/pkey.rs b/openssl/src/pkey.rs index fc48c8b4..8e4041b1 100644 --- a/openssl/src/pkey.rs +++ b/openssl/src/pkey.rs @@ -7,7 +7,7 @@ use ffi; use {cvt, cvt_p}; use bio::{MemBio, MemBioSlice}; use dsa::Dsa; -use rsa::Rsa; +use rsa::{Rsa, RsaRef}; use error::ErrorStack; use util::{CallbackState, invoke_passwd_cb}; use opaque::Opaque; @@ -156,7 +156,7 @@ impl PKey { } /// Assign an RSA key to this pkey. - pub fn set_rsa(&mut self, rsa: &Rsa) -> Result<(), ErrorStack> { + pub fn set_rsa(&mut self, rsa: &RsaRef) -> Result<(), ErrorStack> { unsafe { // this needs to be a reference as the set1_RSA ups the reference count let rsa_ptr = rsa.as_ptr(); |