aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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