Home
last modified time | relevance | path

Searched refs:wpa_auth (Results 1 – 24 of 24) sorted by relevance

/freebsd/contrib/wpa/src/ap/
H A Dwpa_auth.c54 static void wpa_group_sm_step(struct wpa_authenticator *wpa_auth,
57 static int wpa_gtk_update(struct wpa_authenticator *wpa_auth,
59 static int wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth,
66 static void wpa_group_free(struct wpa_authenticator *wpa_auth,
68 static void wpa_group_get(struct wpa_authenticator *wpa_auth,
70 static void wpa_group_put(struct wpa_authenticator *wpa_auth,
74 static void wpa_group_update_gtk(struct wpa_authenticator *wpa_auth,
93 return sm->wpa_auth->mld_addr; in wpa_auth_get_aa()
95 return sm->wpa_auth->addr; in wpa_auth_get_aa()
115 if (!sm->wpa_auth) in wpa_gkeydone_sta()
[all …]
H A Dwpa_auth_ft.c631 static int wpa_ft_rrb_send(struct wpa_authenticator *wpa_auth, const u8 *dst, in wpa_ft_rrb_send() argument
634 if (wpa_auth->cb->send_ether == NULL) in wpa_ft_rrb_send()
637 return wpa_auth->cb->send_ether(wpa_auth->cb_ctx, dst, ETH_P_RRB, in wpa_ft_rrb_send()
642 static int wpa_ft_rrb_oui_send(struct wpa_authenticator *wpa_auth, in wpa_ft_rrb_oui_send() argument
646 if (!wpa_auth->cb->send_oui) in wpa_ft_rrb_oui_send()
650 return wpa_auth->cb->send_oui(wpa_auth->cb_ctx, dst, oui_suffix, data, in wpa_ft_rrb_oui_send()
655 static int wpa_ft_action_send(struct wpa_authenticator *wpa_auth, in wpa_ft_action_send() argument
658 if (wpa_auth->cb->send_ft_action == NULL) in wpa_ft_action_send()
660 return wpa_auth->cb->send_ft_action(wpa_auth->cb_ctx, dst, in wpa_ft_action_send()
665 static const u8 * wpa_ft_get_psk(struct wpa_authenticator *wpa_auth, in wpa_ft_get_psk() argument
[all …]
H A Dwpa_auth_ie.c509 int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth) in wpa_auth_gen_wpa_ie() argument
515 if (wpa_auth->conf.own_ie_override_len) { in wpa_auth_gen_wpa_ie()
517 wpa_auth->conf.own_ie_override, in wpa_auth_gen_wpa_ie()
518 wpa_auth->conf.own_ie_override_len); in wpa_auth_gen_wpa_ie()
519 os_free(wpa_auth->wpa_ie); in wpa_auth_gen_wpa_ie()
520 wpa_auth->wpa_ie = in wpa_auth_gen_wpa_ie()
521 os_malloc(wpa_auth->conf.own_ie_override_len); in wpa_auth_gen_wpa_ie()
522 if (wpa_auth->wpa_ie == NULL) in wpa_auth_gen_wpa_ie()
524 os_memcpy(wpa_auth->wpa_ie, wpa_auth->conf.own_ie_override, in wpa_auth_gen_wpa_ie()
525 wpa_auth->conf.own_ie_override_len); in wpa_auth_gen_wpa_ie()
[all …]
H A Dwpa_auth.h412 int wpa_init_keys(struct wpa_authenticator *wpa_auth);
413 void wpa_deinit(struct wpa_authenticator *wpa_auth);
414 int wpa_reconfig(struct wpa_authenticator *wpa_auth,
426 wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth,
433 int wpa_validate_osen(struct wpa_authenticator *wpa_auth,
440 wpa_auth_sta_init(struct wpa_authenticator *wpa_auth, const u8 *addr,
442 int wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth,
446 void wpa_receive(struct wpa_authenticator *wpa_auth,
456 void wpa_gtk_rekey(struct wpa_authenticator *wpa_auth);
457 int wpa_get_mib(struct wpa_authenticator *wpa_auth, char *buf, size_t buflen);
[all …]
H A Dwpa_auth_i.h20 struct wpa_authenticator *wpa_auth; member
183 struct wpa_authenticator *wpa_auth; member
307 void wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr,
309 void wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr,
312 void __wpa_send_eapol(struct wpa_authenticator *wpa_auth,
317 int wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth,
320 int wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth,
323 void wpa_auth_store_ptksa(struct wpa_authenticator *wpa_auth,
H A Dvlan_init.c51 if (hapd->wpa_auth) in vlan_if_add()
52 ret = wpa_auth_ensure_group(hapd->wpa_auth, vlan->vlan_id); in vlan_if_add()
59 if (wpa_auth_release_group(hapd->wpa_auth, vlan->vlan_id)) in vlan_if_add()
74 ret = wpa_auth_release_group(hapd->wpa_auth, vlan->vlan_id); in vlan_if_remove()
H A Dwpa_auth_glue.c611 if (iface->bss[i]->wpa_auth && in wpa_auth_iface_iter()
612 data->cb(iface->bss[i]->wpa_auth, data->cb_ctx)) in wpa_auth_iface_iter()
651 if (hapd->wpa_auth) { in hostapd_wpa_ft_rrb_rx_later()
652 wpa_ft_rrb_rx(hapd->wpa_auth, data->addr, in hostapd_wpa_ft_rrb_rx_later()
680 !hapd->wpa_auth || in hostapd_wpa_auth_ft_iter()
829 if (hapd->wpa_auth && oui_ctx) { in hostapd_oui_deliver_later()
1120 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, sta->addr, NULL); in hostapd_wpa_auth_add_sta()
1423 wpa_ft_rrb_rx(hapd->wpa_auth, ethhdr->h_source, buf + sizeof(*ethhdr), in hostapd_rrb_receive()
1439 wpa_ft_rrb_oui_rx(hapd->wpa_auth, src_addr, dst_addr, oui_suffix, buf, in hostapd_rrb_oui_receive()
1562 wpa_auth_ml_get_key_info(hapd->wpa_auth, in hostapd_wpa_auth_get_ml_key_info()
[all …]
H A Dtkip_countermeasures.c41 wpa_auth_countermeasures_start(hapd->wpa_auth); in ieee80211_tkip_countermeasures_start()
44 wpa_gtk_rekey(hapd->wpa_auth); in ieee80211_tkip_countermeasures_start()
H A Dwpa_auth_ie.h14 int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth);
H A DMakefile53 wpa_auth.o \
H A Dhostapd.c121 if (hapd->wpa_auth) in hostapd_reconfig_encryption()
165 if ((hapd->conf->wpa || hapd->conf->osen) && hapd->wpa_auth == NULL) { in hostapd_reload_bss()
167 if (hapd->wpa_auth) in hostapd_reload_bss()
168 wpa_init_keys(hapd->wpa_auth); in hostapd_reload_bss()
173 wpa_ie = wpa_auth_get_wpa_ie(hapd->wpa_auth, &wpa_ie_len); in hostapd_reload_bss()
177 } else if (hapd->wpa_auth) { in hostapd_reload_bss()
178 wpa_deinit(hapd->wpa_auth); in hostapd_reload_bss()
179 hapd->wpa_auth = NULL; in hostapd_reload_bss()
1155 if (!hapd->wpa_auth) in hostapd_das_disconnect_pmksa()
1157 return wpa_auth_radius_das_disconnect_pmksa(hapd->wpa_auth, attr); in hostapd_das_disconnect_pmksa()
[all …]
H A Ddrv_callbacks.c508 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in hostapd_notif_assoc()
525 res = wpa_validate_wpa_ie(hapd->wpa_auth, sta->wpa_sm, in hostapd_notif_assoc()
670 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in hostapd_notif_assoc()
677 if (wpa_validate_osen(hapd->wpa_auth, sta->wpa_sm, in hostapd_notif_assoc()
1604 if (rx_auth->auth_type == WLAN_AUTH_FT && hapd->wpa_auth) { in hostapd_notif_auth()
1607 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in hostapd_notif_auth()
2290 if (!hapd || !hapd->wpa_auth) { in hostapd_notif_update_dh_ie()
2696 if (hapd->wpa_auth) in wpa_supplicant_event()
2697 wpa_auth_reconfig_group_keys(hapd->wpa_auth); in wpa_supplicant_event()
H A Dieee802_11.c973 wpa_auth_pmksa_add_sae(hapd->wpa_auth, sta->addr, in sae_accept_sta()
1139 wpa_auth_pmksa_remove(hapd->wpa_auth, sta->addr); in sae_sm_step()
1365 wpa_auth_pmksa_remove(hapd->wpa_auth, sta->addr); in handle_auth_sae()
1929 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, sta->addr, in handle_auth_fils()
1938 res = wpa_validate_wpa_ie(hapd->wpa_auth, sta->wpa_sm, in handle_auth_fils()
1969 pmksa = wpa_auth_pmksa_get(hapd->wpa_auth, sta->addr, in handle_auth_fils()
1973 pmksa = wpa_auth_pmksa_get_fils_cache_id(hapd->wpa_auth, in handle_auth_fils()
2076 ie = wpa_auth_get_wpa_ie(hapd->wpa_auth, &ielen); in prepare_auth_resp_fils()
2142 res = wpa_auth_write_fte(hapd->wpa_auth, sta->wpa_sm, in prepare_auth_resp_fils()
2215 hapd->wpa_auth, sta->addr, in prepare_auth_resp_fils()
[all …]
H A Dpreauth_auth.c208 if (wpa_auth_pmksa_add_preauth(hapd->wpa_auth, key, len, in rsn_preauth_finished()
H A Dctrl_iface_ap.c1159 return wpa_auth_pmksa_list(hapd->wpa_auth, buf, len); in hostapd_ctrl_iface_pmksa_list()
1165 wpa_auth_pmksa_flush(hapd->wpa_auth); in hostapd_ctrl_iface_pmksa_flush()
1212 return wpa_auth_pmksa_add2(hapd->wpa_auth, spa, pmk, pmk_len, in hostapd_ctrl_iface_pmksa_add()
1223 return wpa_auth_pmksa_list_mesh(hapd->wpa_auth, addr, buf, len); in hostapd_ctrl_iface_pmksa_list_mesh()
H A Dhostapd.h214 struct wpa_authenticator *wpa_auth; member
H A Dbeacon.c313 ies = wpa_auth_get_wpa_ie(hapd->wpa_auth, &ies_len); in hostapd_wpa_ie()
327 ies = wpa_auth_get_wpa_ie(hapd->wpa_auth, &ies_len); in hostapd_vendor_wpa_ie()
1963 if (wpa_auth_write_fd_rsn_info(hapd->wpa_auth, fd_rsn_info)) { in hostapd_gen_fils_discovery()
H A Dwnm_ap.c890 wpa_auth_pmksa_remove(hapd->wpa_auth, sta->addr); in set_disassoc_timer()
H A Ddpp_hostapd.c2032 if (!hapd->wpa_auth || in hapd_dpp_connector_available()
2143 if (wpa_auth_pmksa_add2(hapd->wpa_auth, src, intro.pmk, intro.pmk_len, in hostapd_dpp_rx_peer_disc_req()
2917 if (wpa_auth_pmksa_add2(hapd->wpa_auth, src, intro.pmk, intro.pmk_len, in hostapd_dpp_rx_priv_peer_intro_update()
H A Dieee802_1x.c1183 wpa_receive(hapd->wpa_auth, sta->wpa_sm, (u8 *) hdr, in ieee802_1x_receive()
2730 wpa_auth_eapol_key_tx_status(hapd->wpa_auth, in ieee802_1x_eapol_tx_status()
/freebsd/contrib/wpa/wpa_supplicant/
H A Dmesh_rsn.c272 bss->wpa_auth = mesh_rsn->auth; in mesh_rsn_auth_init()
280 ret = wpa_auth_pmksa_add_entry(bss->wpa_auth, in mesh_rsn_auth_init()
391 pmksa = wpa_auth_pmksa_get(hapd->wpa_auth, sta->addr, NULL); in mesh_rsn_auth_sae_sta()
394 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in mesh_rsn_auth_sae_sta()
406 wpa_auth_pmksa_set_to_sm(pmksa, sta->wpa_sm, hapd->wpa_auth, in mesh_rsn_auth_sae_sta()
666 if (!wpa_auth_pmksa_get(hapd->wpa_auth, sta->addr, NULL)) { in mesh_rsn_process_ampe()
H A Dmesh_mpm.c533 wpa_auth_pmksa_remove(hapd->wpa_auth, sta->addr); in plink_timer()
1256 wpa_auth_pmksa_get(hapd->wpa_auth, mgmt->sa, NULL))) in mesh_mpm_action_rx()
/freebsd/usr.sbin/wpa/src/ap/
H A DMakefile42 wpa_auth.c \
/freebsd/contrib/wpa/hostapd/
H A Dctrl_iface.c1326 wpa_auth_set_transition_disable(hapd->wpa_auth, in hostapd_ctrl_iface_set()
1332 wpa_auth_set_ft_rsnxe_used(hapd->wpa_auth, in hostapd_ctrl_iface_set()
1336 hapd->wpa_auth, WPA_AUTH_OCV_OVERRIDE_EAPOL_M3, in hostapd_ctrl_iface_set()
1340 hapd->wpa_auth, WPA_AUTH_OCV_OVERRIDE_EAPOL_G1, in hostapd_ctrl_iface_set()
1344 hapd->wpa_auth, WPA_AUTH_OCV_OVERRIDE_FT_ASSOC, in hostapd_ctrl_iface_set()
1348 hapd->wpa_auth, in hostapd_ctrl_iface_set()
2381 return wpa_auth_rekey_ptk(hapd->wpa_auth, sta->wpa_sm); in hostapd_ctrl_rekey_ptk()
2390 pmksa = wpa_auth_pmksa_get(hapd->wpa_auth, addr, NULL); in hostapd_ctrl_get_pmksa_pmk()
4011 res = wpa_get_mib(hapd->wpa_auth, reply + reply_len, in hostapd_ctrl_iface_receive_process()
4253 if (wpa_auth_rekey_gtk(hapd->wpa_auth) < 0) in hostapd_ctrl_iface_receive_process()