]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
SAE: Add sae_h2e and sae_pk to wpa_supplicant STATUS command
authorJouni Malinen <jouni@codeaurora.org>
Sat, 6 Jun 2020 09:09:47 +0000 (12:09 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 6 Jun 2020 12:18:13 +0000 (15:18 +0300)
This provides additional information on which options were used during
SAE authentication.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/ctrl_iface.c

index e727dc5bbae774797b179a142b0cc693bb9d54b4..79b5e80545fca44a6c28b304210d996d32b5714f 100644 (file)
@@ -2283,8 +2283,12 @@ static int wpa_supplicant_ctrl_iface_status(struct wpa_supplicant *wpa_s,
            !wpa_s->ap_iface &&
 #endif /* CONFIG_AP */
            wpa_s->sme.sae.state == SAE_ACCEPTED) {
-               ret = os_snprintf(pos, end - pos, "sae_group=%d\n",
-                                 wpa_s->sme.sae.group);
+               ret = os_snprintf(pos, end - pos, "sae_group=%d\n"
+                                 "sae_h2e=%d\n"
+                                 "sae_pk=%d\n",
+                                 wpa_s->sme.sae.group,
+                                 wpa_s->sme.sae.h2e,
+                                 wpa_s->sme.sae.pk);
                if (os_snprintf_error(end - pos, ret))
                        return pos - buf;
                pos += ret;