aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/ecdh
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-10-09 07:30:18 -0400
committerJack Lloyd <[email protected]>2016-10-09 07:30:18 -0400
commit55b8fb5a33f1ec8a337623788ab84810527089db (patch)
tree2257fbfbcfbaeddc36ab2b1a33334bb671577c0d /src/lib/pubkey/ecdh
parentad5d17bad98d4681de7e7c7cdefd6f01a8bd38a1 (diff)
OpenSSL EC: Correctly handle OpenSSL not supporting the curve
GH #656
Diffstat (limited to 'src/lib/pubkey/ecdh')
-rw-r--r--src/lib/pubkey/ecdh/ecdh.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pubkey/ecdh/ecdh.cpp b/src/lib/pubkey/ecdh/ecdh.cpp
index a4791e15e..f3da737bb 100644
--- a/src/lib/pubkey/ecdh/ecdh.cpp
+++ b/src/lib/pubkey/ecdh/ecdh.cpp
@@ -64,10 +64,10 @@ ECDH_PrivateKey::create_key_agreement_op(RandomNumberGenerator& /*rng*/,
{
return make_openssl_ecdh_ka_op(*this, params);
}
- catch(Exception& e)
+ catch(Lookup_Error&)
{
if(provider == "openssl")
- throw Exception("OpenSSL ECDH refused key or params", e.what());
+ throw;
}
}
#endif