]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Apply testing configuration option to signing of own config
authorJouni Malinen <j@w1.fi>
Sat, 1 Dec 2018 22:26:21 +0000 (00:26 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 1 Dec 2018 22:26:21 +0000 (00:26 +0200)
Previous implementation had missed this case of setting configurator
parameters.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/dpp_hostapd.c
wpa_supplicant/dpp_supplicant.c

index 9e2ce55af083e62f7903f5eebcec4518a1c6386e..149f389f789f1f4adbb3b0e9da1da824e2741da8 100644 (file)
@@ -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);
index 6226ce8bc9580a70d337bc0c2d87895b9e4f0cb8..4f38fb0967b3b63975be81260b1bf66daa509cfa 100644 (file)
@@ -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);