DPP: Accept DPP_CONFIGURATION_SIGN without double space before parameters
Make this command more convenient to use by not requiring two space characters between the command and the first parameter. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
5b82cdbe8b
commit
53d5de6f1d
2 changed files with 2 additions and 2 deletions
|
@ -3229,7 +3229,7 @@ static int hostapd_ctrl_iface_receive_process(struct hostapd_data *hapd,
|
|||
if (hostapd_dpp_configurator_remove(hapd, buf + 24) < 0)
|
||||
reply_len = -1;
|
||||
} else if (os_strncmp(buf, "DPP_CONFIGURATOR_SIGN ", 22) == 0) {
|
||||
if (hostapd_dpp_configurator_sign(hapd, buf + 22) < 0)
|
||||
if (hostapd_dpp_configurator_sign(hapd, buf + 21) < 0)
|
||||
reply_len = -1;
|
||||
} else if (os_strncmp(buf, "DPP_CONFIGURATOR_GET_KEY ", 25) == 0) {
|
||||
reply_len = hostapd_dpp_configurator_get_key(hapd,
|
||||
|
|
|
@ -10610,7 +10610,7 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
|
|||
if (wpas_dpp_configurator_remove(wpa_s, buf + 24) < 0)
|
||||
reply_len = -1;
|
||||
} else if (os_strncmp(buf, "DPP_CONFIGURATOR_SIGN ", 22) == 0) {
|
||||
if (wpas_dpp_configurator_sign(wpa_s, buf + 22) < 0)
|
||||
if (wpas_dpp_configurator_sign(wpa_s, buf + 21) < 0)
|
||||
reply_len = -1;
|
||||
} else if (os_strncmp(buf, "DPP_CONFIGURATOR_GET_KEY ", 25) == 0) {
|
||||
reply_len = wpas_dpp_configurator_get_key(wpa_s, atoi(buf + 25),
|
||||
|
|
Loading…
Reference in a new issue