/hostap-3.6.0/src/rsn_supp/ |
D | wpa_ft.c | 197 u8 rsnxe[10]; in wpa_ft_gen_req_ies() local 404 res = wpa_gen_rsnxe(sm, rsnxe, sizeof(rsnxe)); in wpa_ft_gen_req_ies() 433 ric_ies_len, rsnxe_len ? rsnxe : NULL, rsnxe_len, in wpa_ft_gen_req_ies() 1103 if (parse.rsnxe) in wpa_ft_validate_reassoc_resp() 1125 parse.rsnxe ? parse.rsnxe - 2 : NULL, in wpa_ft_validate_reassoc_resp() 1126 parse.rsnxe ? parse.rsnxe_len + 2 : 0, in wpa_ft_validate_reassoc_resp() 1174 if ((sm->ap_rsnxe && !parse.rsnxe && own_rsnxe_used) || in wpa_ft_validate_reassoc_resp() 1175 (!sm->ap_rsnxe && parse.rsnxe) || in wpa_ft_validate_reassoc_resp() 1176 (sm->ap_rsnxe && parse.rsnxe && in wpa_ft_validate_reassoc_resp() 1178 os_memcmp(sm->ap_rsnxe, parse.rsnxe - 2, in wpa_ft_validate_reassoc_resp() [all …]
|
D | wpa_ie.c | 354 int wpa_gen_rsnxe(struct wpa_sm *sm, u8 *rsnxe, size_t rsnxe_len) in wpa_gen_rsnxe() argument 356 u8 *pos = rsnxe; in wpa_gen_rsnxe() 390 return pos - rsnxe; in wpa_gen_rsnxe()
|
D | wpa_ie.h | 15 int wpa_gen_rsnxe(struct wpa_sm *sm, u8 *rsnxe, size_t rsnxe_len);
|
D | wpa.h | 160 int wpa_sm_set_assoc_rsnxe_default(struct wpa_sm *sm, u8 *rsnxe, 307 static inline int wpa_sm_set_assoc_rsnxe_default(struct wpa_sm *sm, u8 *rsnxe, in wpa_sm_set_assoc_rsnxe_default() argument 314 static inline int wpa_sm_set_assoc_rsnxe(struct wpa_sm *sm, const u8 *rsnxe, in wpa_sm_set_assoc_rsnxe() argument
|
D | wpa.c | 1580 ((sm->ap_rsnxe && !ie->rsnxe) || in wpa_supplicant_validate_ie() 1581 (!sm->ap_rsnxe && ie->rsnxe) || in wpa_supplicant_validate_ie() 1582 (sm->ap_rsnxe && ie->rsnxe && in wpa_supplicant_validate_ie() 1584 os_memcmp(sm->ap_rsnxe, ie->rsnxe, sm->ap_rsnxe_len) != 0)))) { in wpa_supplicant_validate_ie() 1590 ie->rsnxe, ie->rsnxe_len); in wpa_supplicant_validate_ie() 3594 int wpa_sm_set_assoc_rsnxe_default(struct wpa_sm *sm, u8 *rsnxe, in wpa_sm_set_assoc_rsnxe_default() argument 3602 res = wpa_gen_rsnxe(sm, rsnxe, *rsnxe_len); in wpa_sm_set_assoc_rsnxe_default() 3607 wpa_hexdump(MSG_DEBUG, "RSN: Set own RSNXE default", rsnxe, *rsnxe_len); in wpa_sm_set_assoc_rsnxe_default() 3618 sm->assoc_rsnxe = os_memdup(rsnxe, *rsnxe_len); in wpa_sm_set_assoc_rsnxe_default()
|
/hostap-3.6.0/src/ap/ |
D | wpa_auth_ie.c | 589 const u8 *rsnxe, size_t rsnxe_len, in wpa_validate_wpa_ie() argument 1022 if (rsnxe && rsnxe_len) { in wpa_validate_wpa_ie() 1023 if (!sm->rsnxe || sm->rsnxe_len < rsnxe_len) { in wpa_validate_wpa_ie() 1024 os_free(sm->rsnxe); in wpa_validate_wpa_ie() 1025 sm->rsnxe = os_malloc(rsnxe_len); in wpa_validate_wpa_ie() 1026 if (!sm->rsnxe) in wpa_validate_wpa_ie() 1029 os_memcpy(sm->rsnxe, rsnxe, rsnxe_len); in wpa_validate_wpa_ie() 1032 os_free(sm->rsnxe); in wpa_validate_wpa_ie() 1033 sm->rsnxe = NULL; in wpa_validate_wpa_ie()
|
D | wpa_auth_ft.c | 2514 u8 rsnxe_buf[10], *rsnxe = rsnxe_buf; in wpa_sm_write_assoc_resp_ies() local 2749 res = wpa_write_rsnxe(&sm->wpa_auth->conf, rsnxe, in wpa_sm_write_assoc_resp_ies() 2760 rsnxe = sm->wpa_auth->conf.rsnxe_override_ft; in wpa_sm_write_assoc_resp_ies() 2779 rsnxe_len ? rsnxe : NULL, rsnxe_len, in wpa_sm_write_assoc_resp_ies() 3202 ieee802_11_rsnx_capab(sm->rsnxe, WLAN_RSNX_CAPAB_SECURE_LTF))) in wpa_ft_process_auth_req() 3458 if (parse.rsnxe) in wpa_ft_validate_reassoc() 3479 parse.rsnxe ? parse.rsnxe - 2 : NULL, in wpa_ft_validate_reassoc() 3480 parse.rsnxe ? parse.rsnxe_len + 2 : 0, in wpa_ft_validate_reassoc() 3500 parse.rsnxe ? parse.rsnxe - 2 : NULL, in wpa_ft_validate_reassoc() 3501 parse.rsnxe ? parse.rsnxe_len + 2 : 0); in wpa_ft_validate_reassoc() [all …]
|
D | wpa_auth_i.h | 108 u8 *rsnxe; member
|
D | drv_callbacks.c | 360 elems.rsnxe ? elems.rsnxe - 2 : NULL, in hostapd_notif_assoc() 361 elems.rsnxe ? elems.rsnxe_len + 2 : 0, in hostapd_notif_assoc() 462 ieee802_11_rsnx_capab_len(elems.rsnxe, elems.rsnxe_len, in hostapd_notif_assoc() 541 !elems.rsnxe); in hostapd_notif_assoc()
|
D | wpa_auth.c | 756 os_free(sm->rsnxe); in wpa_free_sta_sm() 2302 ieee802_11_rsnx_capab(sm->rsnxe, WLAN_RSNX_CAPAB_SECURE_LTF))) in wpa_derive_ptk() 2356 ieee802_11_rsnx_capab(sm->rsnxe, WLAN_RSNX_CAPAB_SECURE_LTF))) in fils_auth_pmk_to_ptk() 3073 if ((!sm->rsnxe && kde.rsnxe) || in SM_STATE() 3074 (sm->rsnxe && !kde.rsnxe) || in SM_STATE() 3075 (sm->rsnxe && kde.rsnxe && in SM_STATE() 3077 os_memcmp(sm->rsnxe, kde.rsnxe, sm->rsnxe_len) != 0))) { in SM_STATE() 3081 sm->rsnxe, sm->rsnxe_len); in SM_STATE() 3083 kde.rsnxe, kde.rsnxe_len); in SM_STATE()
|
D | wpa_auth.h | 371 const u8 *rsnxe, size_t rsnxe_len,
|
D | ieee802_11.c | 1908 elems.rsnxe ? elems.rsnxe - 2 : NULL, in handle_auth_fils() 1909 elems.rsnxe ? elems.rsnxe_len + 2 : 0, in handle_auth_fils() 3166 ieee802_11_rsnx_capab_len(elems.rsnxe, elems.rsnxe_len, in handle_auth_pasn_1() 4645 elems.rsnxe ? elems.rsnxe - 2 : NULL, in check_assoc_ies() 4646 elems.rsnxe ? elems.rsnxe_len + 2 : 0, in check_assoc_ies() 4708 ieee802_11_rsnx_capab_len(elems.rsnxe, elems.rsnxe_len, in check_assoc_ies()
|
/hostap-3.6.0/src/common/ |
D | ieee802_11_common.c | 428 elems->rsnxe = pos; in ieee802_11_parse_elems() 2440 bool ieee802_11_rsnx_capab_len(const u8 *rsnxe, size_t rsnxe_len, in ieee802_11_rsnx_capab_len() argument 2447 if (!rsnxe || rsnxe_len == 0) in ieee802_11_rsnx_capab_len() 2449 end = rsnxe + rsnxe_len; in ieee802_11_rsnx_capab_len() 2450 flen = (rsnxe[0] & 0x0f) + 1; in ieee802_11_rsnx_capab_len() 2451 if (rsnxe + flen > end) in ieee802_11_rsnx_capab_len() 2456 capabs |= rsnxe[i] << (8 * i); in ieee802_11_rsnx_capab_len() 2462 bool ieee802_11_rsnx_capab(const u8 *rsnxe, unsigned int capab) in ieee802_11_rsnx_capab() argument 2464 return ieee802_11_rsnx_capab_len(rsnxe ? rsnxe + 2 : NULL, in ieee802_11_rsnx_capab() 2465 rsnxe ? rsnxe[1] : 0, capab); in ieee802_11_rsnx_capab()
|
D | ieee802_11_common.h | 59 const u8 *rsnxe; member 274 bool ieee802_11_rsnx_capab_len(const u8 *rsnxe, size_t rsnxe_len, 276 bool ieee802_11_rsnx_capab(const u8 *rsnxe, unsigned int capab);
|
D | wpa_common.h | 417 const u8 *rsnxe, size_t rsnxe_len, 518 const u8 *rsnxe; member 586 const u8 *rsnxe; member
|
D | wpa_common.c | 825 const u8 *rsnxe, size_t rsnxe_len, in wpa_ft_mic() argument 896 if (rsnxe) { in wpa_ft_mic() 897 addr[num_elem] = rsnxe; in wpa_ft_mic() 1051 parse->rsnxe = pos; in wpa_ft_parse_ies() 1136 if (parse->rsnxe) in wpa_ft_parse_ies() 3175 ie->rsnxe = pos; in wpa_parse_kde_ies() 3178 ie->rsnxe, ie->rsnxe_len); in wpa_parse_kde_ies()
|
/hostap-3.6.0/wlantest/ |
D | rx_mgmt.c | 1005 if (parse.rsnxe) in rx_mgmt_reassoc_req() 1026 parse.rsnxe ? parse.rsnxe - 2 : NULL, in rx_mgmt_reassoc_req() 1027 parse.rsnxe ? parse.rsnxe_len + 2 : 0, in rx_mgmt_reassoc_req() 1050 parse.rsnxe ? parse.rsnxe - 2 : NULL, in rx_mgmt_reassoc_req() 1051 parse.rsnxe ? parse.rsnxe_len + 2 : 0); in rx_mgmt_reassoc_req() 1505 if (parse.rsnxe) in rx_mgmt_reassoc_resp() 1530 parse.rsnxe ? parse.rsnxe - 2 : NULL, in rx_mgmt_reassoc_resp() 1531 parse.rsnxe ? parse.rsnxe_len + 2 : 0, in rx_mgmt_reassoc_resp() 1554 parse.rsnxe ? parse.rsnxe - 2 : NULL, in rx_mgmt_reassoc_resp() 1555 parse.rsnxe ? parse.rsnxe_len + 2 : 0); in rx_mgmt_reassoc_resp()
|
/hostap-3.6.0/wpa_supplicant/ |
D | pasn_supplicant.c | 1168 const u8 *rsne, *rsnxe; in wpas_pasn_auth_start_cb() local 1202 rsnxe = wpa_bss_get_ie(bss, WLAN_EID_RSNX); in wpas_pasn_auth_start_cb() 1206 rsnxe, rsnxe ? *(rsnxe + 1) + 2 : 0, in wpas_pasn_auth_start_cb()
|
D | sme.c | 147 const u8 *rsnxe; in sme_auth_build_sae_commit() local 149 rsnxe = wpa_bss_get_ie(bss, WLAN_EID_RSNX); in sme_auth_build_sae_commit() 150 if (rsnxe && rsnxe[1] >= 1) in sme_auth_build_sae_commit() 151 rsnxe_capa = rsnxe[2]; in sme_auth_build_sae_commit() 665 wpa_s->rsnxe, wpa_s->rsnxe_len); in sme_send_authentication() 2108 if (elems.rsnxe) in sme_associate() 2109 wpa_sm_set_assoc_rsnxe(wpa_s->wpa, elems.rsnxe - 2, in sme_associate()
|
D | wpa_supplicant_i.h | 825 u8 rsnxe[20]; member
|
D | ctrl_iface.c | 2996 const u8 *ie, *ie2, *osen_ie, *p2p, *mesh, *owe, *rsnxe; in wpa_supplicant_ctrl_iface_scan_result() local 3023 rsnxe = wpa_bss_get_ie(bss, WLAN_EID_RSNX); in wpa_supplicant_ctrl_iface_scan_result() 3024 if (ieee802_11_rsnx_capab(rsnxe, WLAN_RSNX_CAPAB_SAE_H2E)) { in wpa_supplicant_ctrl_iface_scan_result() 3030 if (ieee802_11_rsnx_capab(rsnxe, WLAN_RSNX_CAPAB_SAE_PK)) { in wpa_supplicant_ctrl_iface_scan_result() 4956 const u8 *ie, *ie2, *osen_ie, *mesh, *owe, *rsnxe; in print_bss_info() local 5076 rsnxe = wpa_bss_get_ie(bss, WLAN_EID_RSNX); in print_bss_info() 5077 if (ieee802_11_rsnx_capab(rsnxe, WLAN_RSNX_CAPAB_SAE_H2E)) { in print_bss_info() 5083 if (ieee802_11_rsnx_capab(rsnxe, WLAN_RSNX_CAPAB_SAE_PK)) { in print_bss_info()
|
D | wpa_supplicant.c | 1765 wpa_s->rsnxe_len = sizeof(wpa_s->rsnxe); in wpa_supplicant_set_suites() 1766 if (wpa_sm_set_assoc_rsnxe_default(wpa_s->wpa, wpa_s->rsnxe, in wpa_supplicant_set_suites() 3378 os_memcpy(wpa_ie + wpa_ie_len, wpa_s->rsnxe, wpa_s->rsnxe_len); in wpas_populate_assoc_ies()
|
/hostap-3.6.0/tests/hwsim/ |
D | test_sae.py | 2337 for rsnxe in ["F40100", "F400", ""]: 2338 dev[0].set("rsnxe_override_eapol", rsnxe) 2366 rsnxe = "F40100" 2367 dev[0].set("rsnxe_override_eapol", rsnxe) 2402 for rsnxe in ["F40100", "F400", ""]: 2403 dev[0].set("rsnxe_override_assoc", rsnxe) 2434 def run_sae_h2e_rsnxe_mismatch_ap(dev, apdev, rsnxe): argument 2439 params['rsnxe_override_eapol'] = rsnxe
|