From: Jouni Malinen Date: Fri, 3 Apr 2020 09:43:48 +0000 (+0300) Subject: DPP2: Store netAccessKey in psk/sae credentials for reconfig X-Git-Tag: hostap_2_10~1497 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=872299f4b3167cd2a91829eb06f48f56418fc3d8;p=thirdparty%2Fhostap.git DPP2: Store netAccessKey in psk/sae credentials for reconfig Connector alone is not sufficient for authentication during reconfiguration, so store the netAccessKey as well. Fixes: e4eb009d9863 ("DPP2: Add Connector and C-sign-key in psk/sae credentials for reconfig") Signed-off-by: Jouni Malinen --- diff --git a/src/common/dpp.c b/src/common/dpp.c index 572800e4d..ae4ed3fd0 100644 --- a/src/common/dpp.c +++ b/src/common/dpp.c @@ -6724,7 +6724,7 @@ static int dpp_parse_cred_dpp(struct dpp_authentication *auth, conf->connector = os_strdup(signed_connector); dpp_copy_csign(conf, csign_pub); - if (dpp_akm_dpp(conf->akm)) + if (dpp_akm_dpp(conf->akm) || auth->peer_version >= 2) dpp_copy_netaccesskey(auth, conf); ret = 0;