aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/rsa
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-03-21 07:19:33 -0400
committerJack Lloyd <[email protected]>2018-03-21 07:19:33 -0400
commit13e4658b07f95bef8b48d93c74be25f2d6afde7d (patch)
tree932cd17a1cf0aadec5661ab4d3e076c221b5d9bb /src/lib/pubkey/rsa
parent29bbabad6e833a2b0047a41fe8bed8960b8e1116 (diff)
Throw Lookup_Error here for benefit of tests
Diffstat (limited to 'src/lib/pubkey/rsa')
-rw-r--r--src/lib/pubkey/rsa/rsa.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pubkey/rsa/rsa.cpp b/src/lib/pubkey/rsa/rsa.cpp
index e1c3e49db..aa315aabf 100644
--- a/src/lib/pubkey/rsa/rsa.cpp
+++ b/src/lib/pubkey/rsa/rsa.cpp
@@ -422,7 +422,7 @@ RSA_PublicKey::create_encryption_op(RandomNumberGenerator& /*rng*/,
* to the normal version.
*/
if(provider == "openssl")
- throw Exception("OpenSSL RSA provider rejected key:", e.what());
+ throw Lookup_Error("OpenSSL RSA provider rejected key:" + std::string(e.what()));
}
}
#endif
@@ -476,7 +476,7 @@ RSA_PrivateKey::create_decryption_op(RandomNumberGenerator& rng,
catch(Exception& e)
{
if(provider == "openssl")
- throw Exception("OpenSSL RSA provider rejected key:", e.what());
+ throw Lookup_Error("OpenSSL RSA provider rejected key:" + std::string(e.what()));
}
}
#endif