diff options
| author | Daniel Albert <[email protected]> | 2016-01-20 20:29:06 +0000 |
|---|---|---|
| committer | Daniel Albert <[email protected]> | 2016-01-20 20:29:06 +0000 |
| commit | 3ee2bf9310c75228f16ec228d3cd5aaeee66b61f (patch) | |
| tree | 35c5ecd395bc6d817a26e40e9ad12899edafd6c1 | |
| parent | Merge branch 'master' of https://github.com/sfackler/rust-openssl (diff) | |
| download | rust-openssl-3ee2bf9310c75228f16ec228d3cd5aaeee66b61f.tar.xz rust-openssl-3ee2bf9310c75228f16ec228d3cd5aaeee66b61f.zip | |
Fix up RSA integration
| -rw-r--r-- | openssl/src/bn/mod.rs | 2 | ||||
| -rw-r--r-- | openssl/src/crypto/rsa.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/bn/mod.rs b/openssl/src/bn/mod.rs index ba1121dd..00a0a0ca 100644 --- a/openssl/src/bn/mod.rs +++ b/openssl/src/bn/mod.rs @@ -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)) } diff --git a/openssl/src/crypto/rsa.rs b/openssl/src/crypto/rsa.rs index 85a13609..fca94465 100644 --- a/openssl/src/crypto/rsa.rs +++ b/openssl/src/crypto/rsa.rs @@ -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") } } |