]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP2: Indicate if PFS was used in control interface STATUS
authorJouni Malinen <jouni@codeaurora.org>
Fri, 1 May 2020 14:36:59 +0000 (17:36 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 3 May 2020 21:37:44 +0000 (00:37 +0300)
The new "dpp_pfs=1" entry can be used to determine whether PFS was used
during derivation of PTK when DPP AKM is negotiated for an association.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/rsn_supp/wpa.c

index 6077aa60ae726156d9211d01c767949bc5d83ef3..605d40863c22c888a612d2ac5bebb06e08eaa421 100644 (file)
@@ -3292,6 +3292,15 @@ int wpa_sm_get_status(struct wpa_sm *sm, char *buf, size_t buflen,
                return pos - buf;
        pos += ret;
 
+#ifdef CONFIG_DPP2
+       if (sm->key_mgmt == WPA_KEY_MGMT_DPP && sm->dpp_z) {
+               ret = os_snprintf(pos, end - pos, "dpp_pfs=1\n");
+               if (os_snprintf_error(end - pos, ret))
+                       return pos - buf;
+               pos += ret;
+       }
+#endif /* CONFIG_DPP2 */
+
        if (sm->mfp != NO_MGMT_FRAME_PROTECTION && sm->ap_rsn_ie) {
                struct wpa_ie_data rsn;
                if (wpa_parse_wpa_ie_rsn(sm->ap_rsn_ie, sm->ap_rsn_ie_len, &rsn)