commit 55a7e9d82a98f3aafbecf0f5f07526f730794bee
parent 04225757d6f97495ad43c2cc0ca564efc2cd2483
Author: James Prestwood <james.prestwood@linux.intel.com>
Date: Wed, 16 Jan 2019 11:12:35 -0800
pwd/sae/owe: update to use l_ecc_curve_get_ike_group
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/eap-pwd.c b/src/eap-pwd.c
@@ -256,7 +256,7 @@ static void eap_pwd_handle_id(struct eap_state *eap,
if (group != EAP_PWD_GROUP_DESC)
goto error;
- pwd->curve = l_ecc_curve_get(group);
+ pwd->curve = l_ecc_curve_get_ike_group(group);
if (!pwd->curve) {
l_error("group %d not supported", group);
goto error;
diff --git a/src/owe.c b/src/owe.c
@@ -59,7 +59,7 @@ struct owe_sm *owe_sm_new(struct handshake_state *hs,
owe->assoc_tx = assoc;
owe->user_data = user_data;
owe->complete = complete;
- owe->curve = l_ecc_curve_get(OWE_DEFAULT_GROUP);
+ owe->curve = l_ecc_curve_get_ike_group(OWE_DEFAULT_GROUP);
if (!l_ecdh_generate_key_pair(owe->curve, &owe->private,
&owe->public_key)) {
diff --git a/src/sae.c b/src/sae.c
@@ -933,7 +933,7 @@ struct sae_sm *sae_sm_new(struct handshake_state *hs, sae_tx_packet_func_t tx,
sm->user_data = user_data;
sm->handshake = hs;
sm->state = SAE_STATE_NOTHING;
- sm->curve = l_ecc_curve_get(19);
+ sm->curve = l_ecc_curve_get_ike_group(19);
return sm;
}