aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Schoenmann <[email protected]>2017-10-25 15:18:39 +0200
committerFrank Schoenmann <[email protected]>2017-10-25 15:18:39 +0200
commit03f469365aebd6b9a10026bc31144849466d19c1 (patch)
tree331f2297074362a982e305d05c77e1c71dc51ac2
parentb3755350c7fde9cfa7c2fa5c3f1bf3b09388132e (diff)
Perform OIDS lookup before to prevent a guaranteed exception in EC_Group.
-rw-r--r--src/lib/tls/msg_client_kex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/tls/msg_client_kex.cpp b/src/lib/tls/msg_client_kex.cpp
index 3291b6eb5..3d2f72e1c 100644
--- a/src/lib/tls/msg_client_kex.cpp
+++ b/src/lib/tls/msg_client_kex.cpp
@@ -181,7 +181,7 @@ Client_Key_Exchange::Client_Key_Exchange(Handshake_IO& io,
}
else
{
- EC_Group group(curve_name);
+ EC_Group group(OIDS::lookup(curve_name));
ECDH_PublicKey counterparty_key(group, OS2ECP(ecdh_key, group.get_curve()));
policy.check_peer_key_acceptable(counterparty_key);
ECDH_PrivateKey priv_key(rng, group);