From 55b8fb5a33f1ec8a337623788ab84810527089db Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sun, 9 Oct 2016 07:30:18 -0400 Subject: OpenSSL EC: Correctly handle OpenSSL not supporting the curve GH #656 --- src/lib/pubkey/ecdsa/ecdsa.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/pubkey/ecdsa') diff --git a/src/lib/pubkey/ecdsa/ecdsa.cpp b/src/lib/pubkey/ecdsa/ecdsa.cpp index f93fcc7a5..48d16caca 100644 --- a/src/lib/pubkey/ecdsa/ecdsa.cpp +++ b/src/lib/pubkey/ecdsa/ecdsa.cpp @@ -169,10 +169,10 @@ ECDSA_PublicKey::create_verification_op(const std::string& params, { return make_openssl_ecdsa_ver_op(*this, params); } - catch(Exception& e) + catch(Lookup_Error& e) { if(provider == "openssl") - throw Exception("OpenSSL provider refused ECDSA pubkey", e.what()); + throw; } } #endif @@ -195,10 +195,10 @@ ECDSA_PrivateKey::create_signature_op(RandomNumberGenerator& /*rng*/, { return make_openssl_ecdsa_sig_op(*this, params); } - catch(Exception& e) + catch(Lookup_Error& e) { if(provider == "openssl") - throw Exception("OpenSSL provider refused ECDSA privkey", e.what()); + throw; } } #endif -- cgit v1.2.3