diff options
author | Jack Lloyd <[email protected]> | 2017-10-26 10:32:03 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-10-26 10:32:03 -0400 |
commit | 92d1921a56ac121c0b29c06398909fdf37c316dd (patch) | |
tree | 1bec85f3e5f700afc13ea124fdc269b9da675372 /src/lib | |
parent | d2630df202cffe37e5b409f2951108bfa4ef9471 (diff) | |
parent | a07a22449a97d8734944566be01ee76cb817b846 (diff) |
Merge GH #1275 Avoid needless throw/catch during TLS handshake
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/tls/msg_client_kex.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/tls/msg_client_kex.cpp b/src/lib/tls/msg_client_kex.cpp index 3291b6eb5..742fee6b5 100644 --- a/src/lib/tls/msg_client_kex.cpp +++ b/src/lib/tls/msg_client_kex.cpp @@ -7,6 +7,7 @@ #include <botan/tls_messages.h> #include <botan/tls_extensions.h> +#include <botan/oids.h> #include <botan/rng.h> #include <botan/internal/tls_reader.h> @@ -181,7 +182,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); |