aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2020-04-03 09:43:48 (GMT)
committerJouni Malinen <j@w1.fi>2020-04-03 09:43:48 (GMT)
commit872299f4b3167cd2a91829eb06f48f56418fc3d8 (patch)
treed5776377a9cdbee4af6a84a8d32cd2acd9c0a407 /src/common
parentbf9f49396b49424357e02ead25b6fc9e81852085 (diff)
downloadhostap-872299f4b3167cd2a91829eb06f48f56418fc3d8.zip
hostap-872299f4b3167cd2a91829eb06f48f56418fc3d8.tar.gz
hostap-872299f4b3167cd2a91829eb06f48f56418fc3d8.tar.bz2
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 <jouni@codeaurora.org>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/dpp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/dpp.c b/src/common/dpp.c
index 572800e..ae4ed3f 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;