Fix up RSA integration
This commit is contained in:
parent
74db7db560
commit
3ee2bf9310
|
|
@ -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))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue