DPP: Add SAE credential support to Configurator
The new conf={sta,ap}-{sae,psk-sae} parameter values can now be used to specify that the legacy configuration object is for SAE. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
5dd745b738
commit
e3a5882b3e
4 changed files with 43 additions and 15 deletions
|
@ -4112,7 +4112,7 @@ dpp_build_conf_obj_legacy(struct dpp_authentication *auth, int ap,
|
|||
if (!buf)
|
||||
return NULL;
|
||||
|
||||
wpabuf_put_str(buf, "\"cred\":{\"akm\":\"psk\",");
|
||||
wpabuf_printf(buf, "\"cred\":{\"akm\":\"%s\",", dpp_akm_str(conf->akm));
|
||||
if (conf->passphrase) {
|
||||
char pass[63 * 6 + 1];
|
||||
|
||||
|
@ -4165,7 +4165,7 @@ dpp_build_conf_obj(struct dpp_authentication *auth, int ap)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (conf->dpp)
|
||||
if (conf->akm == DPP_AKM_DPP)
|
||||
return dpp_build_conf_obj_dpp(auth, ap, conf);
|
||||
return dpp_build_conf_obj_legacy(auth, ap, conf);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue