mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-31 01:04:03 -05:00
DPP2: Parse DPP KDE in EAPOL-Key Key Data field
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
143e3d8bc5
commit
68422fedbf
@ -2801,6 +2801,15 @@ static int wpa_parse_generic(const u8 *pos, struct wpa_eapol_ie_parse *ie)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pos[1] >= RSN_SELECTOR_LEN + 2 &&
|
||||||
|
RSN_SELECTOR_GET(pos + 2) == WFA_KEY_DATA_DPP) {
|
||||||
|
ie->dpp_kde = pos + 2 + RSN_SELECTOR_LEN;
|
||||||
|
ie->dpp_kde_len = pos[1] - RSN_SELECTOR_LEN;
|
||||||
|
wpa_hexdump(MSG_DEBUG, "WPA: DPP KDE in EAPOL-Key",
|
||||||
|
pos, pos[1] + 2);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -533,6 +533,8 @@ struct wpa_eapol_ie_parse {
|
|||||||
const u8 *ip_addr_alloc;
|
const u8 *ip_addr_alloc;
|
||||||
const u8 *transition_disable;
|
const u8 *transition_disable;
|
||||||
size_t transition_disable_len;
|
size_t transition_disable_len;
|
||||||
|
const u8 *dpp_kde;
|
||||||
|
size_t dpp_kde_len;
|
||||||
const u8 *oci;
|
const u8 *oci;
|
||||||
size_t oci_len;
|
size_t oci_len;
|
||||||
const u8 *osen;
|
const u8 *osen;
|
||||||
|
Loading…
Reference in New Issue
Block a user