Fix up RSA integration

This commit is contained in:
Daniel Albert 2016-01-20 20:29:06 +00:00
parent 74db7db560
commit 3ee2bf9310
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ impl BigNum {
}
let r = ffi::BN_dup(orig);
if r.is_null() {
panic!("Unexpected null pointer from BN_dup(..)")
Err(SslError::get())
} else {
Ok(BigNum(r))
}

View File

@ -41,6 +41,6 @@ impl RSA {
impl fmt::Debug for RSA {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "Currently no debug output. Sorry :(")
write!(f, "RSA")
}
}