DPP: Apply testing configuration option to signing of own config
Previous implementation had missed this case of setting configurator parameters. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
b856b94395
commit
e22c23382f
2 changed files with 2 additions and 0 deletions
|
@ -1904,6 +1904,7 @@ int hostapd_dpp_configurator_sign(struct hostapd_data *hapd, const char *cmd)
|
|||
return -1;
|
||||
|
||||
curve = get_param(cmd, " curve=");
|
||||
hostapd_dpp_set_testing_options(hapd, auth);
|
||||
if (hostapd_dpp_set_configurator(hapd, auth, cmd) == 0 &&
|
||||
dpp_configurator_own_config(auth, curve, 1) == 0) {
|
||||
hostapd_dpp_handle_config_obj(hapd, auth);
|
||||
|
|
|
@ -2298,6 +2298,7 @@ int wpas_dpp_configurator_sign(struct wpa_supplicant *wpa_s, const char *cmd)
|
|||
return -1;
|
||||
|
||||
curve = get_param(cmd, " curve=");
|
||||
wpas_dpp_set_testing_options(wpa_s, auth);
|
||||
if (wpas_dpp_set_configurator(wpa_s, auth, cmd) == 0 &&
|
||||
dpp_configurator_own_config(auth, curve, 0) == 0) {
|
||||
wpas_dpp_handle_config_obj(wpa_s, auth);
|
||||
|
|
Loading…
Reference in a new issue