diff options
author | Jack Lloyd <[email protected]> | 2018-03-21 07:19:33 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-03-21 07:19:33 -0400 |
commit | 13e4658b07f95bef8b48d93c74be25f2d6afde7d (patch) | |
tree | 932cd17a1cf0aadec5661ab4d3e076c221b5d9bb /src/lib/pubkey | |
parent | 29bbabad6e833a2b0047a41fe8bed8960b8e1116 (diff) |
Throw Lookup_Error here for benefit of tests
Diffstat (limited to 'src/lib/pubkey')
-rw-r--r-- | src/lib/pubkey/rsa/rsa.cpp | 4 |
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 |