aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/msg_server_kex.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-02-08 06:51:49 -0500
committerJack Lloyd <[email protected]>2018-02-13 07:48:56 -0500
commit7f07e4a86c098715f93a453066ded0c1a6c63d55 (patch)
tree6b4c99dbe02c0a3be5acb4a4eb76b7a60dce810b /src/lib/tls/msg_server_kex.cpp
parent9ec1b8f701988603c0018bc879832afd5174114f (diff)
Add callback for decoding TLS group params
Diffstat (limited to 'src/lib/tls/msg_server_kex.cpp')
-rw-r--r--src/lib/tls/msg_server_kex.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/tls/msg_server_kex.cpp b/src/lib/tls/msg_server_kex.cpp
index 4cb204c68..1b42cba99 100644
--- a/src/lib/tls/msg_server_kex.cpp
+++ b/src/lib/tls/msg_server_kex.cpp
@@ -81,7 +81,7 @@ Server_Key_Exchange::Server_Key_Exchange(Handshake_IO& io,
BOTAN_ASSERT(group_param_is_dh(shared_group), "DH groups for the DH ciphersuites god");
- const std::string group_name = group_param_to_string(shared_group);
+ const std::string group_name = state.callbacks().tls_decode_group_param(shared_group);
std::unique_ptr<DH_PrivateKey> dh(new DH_PrivateKey(rng, DL_Group(group_name)));
append_tls_length_value(m_params, BigInt::encode(dh->get_domain().get_p()), 2);
@@ -117,7 +117,7 @@ Server_Key_Exchange::Server_Key_Exchange(Handshake_IO& io,
{
Group_Params curve = policy.choose_key_exchange_group(ec_groups);
- const std::string curve_name = group_param_to_string(curve);
+ const std::string curve_name = state.callbacks().tls_decode_group_param(curve);
EC_Group ec_group(curve_name);
std::unique_ptr<ECDH_PrivateKey> ecdh(new ECDH_PrivateKey(rng, ec_group));