Home
last modified time | relevance | path

Searched refs:eapol_sm (Results 1 – 25 of 25) sorted by relevance

/freebsd/contrib/wpa/src/eapol_supp/
H A Deapol_supp_sm.h72 struct eapol_sm;
109 void (*cb)(struct eapol_sm *eapol, enum eapol_supp_result result,
330 struct eapol_sm *eapol_sm_init(struct eapol_ctx *ctx);
331 void eapol_sm_deinit(struct eapol_sm *sm);
332 void eapol_sm_step(struct eapol_sm *sm);
333 int eapol_sm_get_status(struct eapol_sm *sm, char *buf, size_t buflen,
335 int eapol_sm_get_mib(struct eapol_sm *sm, char *buf, size_t buflen);
336 void eapol_sm_configure(struct eapol_sm *sm, int heldPeriod, int authPeriod,
338 int eapol_sm_rx_eapol(struct eapol_sm *sm, const u8 *src, const u8 *buf,
340 void eapol_sm_notify_tx_eapol_key(struct eapol_sm *sm);
[all …]
H A Deapol_supp_sm.c23 #define STATE_MACHINE_DATA struct eapol_sm
32 struct eapol_sm { struct
152 static void eapol_sm_txLogoff(struct eapol_sm *sm); argument
153 static void eapol_sm_txStart(struct eapol_sm *sm);
154 static void eapol_sm_processKey(struct eapol_sm *sm);
155 static void eapol_sm_getSuppRsp(struct eapol_sm *sm);
156 static void eapol_sm_txSuppRsp(struct eapol_sm *sm);
157 static void eapol_sm_abortSupp(struct eapol_sm *sm);
158 static void eapol_sm_abort_cached(struct eapol_sm *sm);
160 static void eapol_sm_set_port_authorized(struct eapol_sm *sm);
[all …]
/freebsd/contrib/wpa/src/ap/
H A Dieee802_1x.c218 struct eapol_state_machine *sm = sta->eapol_sm; in ieee802_1x_tx_key_one()
301 if (sta->eapol_sm) in ieee802_1x_tx_key_one()
302 sta->eapol_sm->dot1xAuthEapolFramesTx++; in ieee802_1x_tx_key_one()
310 struct eapol_state_machine *sm = sta->eapol_sm; in ieee802_1x_tx_key()
558 sta->eapol_sm && sta->eapol_sm->acct_multi_session_id) { in add_common_radius_sta_attr()
561 sta->eapol_sm->acct_multi_session_id); in add_common_radius_sta_attr()
748 struct eapol_state_machine *sm = sta->eapol_sm; in ieee802_1x_encapsulate_radius()
925 struct eapol_state_machine *sm = sta->eapol_sm; in handle_eap_response()
959 struct eapol_state_machine *sm = sta->eapol_sm; in handle_eap_initiate()
1163 if (sta->eapol_sm) in ieee802_1x_receive()
[all …]
H A Dwpa_auth_glue.c294 ieee802_1x_notify_port_enabled(sta->eapol_sm, value); in hostapd_wpa_auth_set_eapol()
297 ieee802_1x_notify_port_valid(sta->eapol_sm, value); in hostapd_wpa_auth_set_eapol()
303 if (sta->eapol_sm) in hostapd_wpa_auth_set_eapol()
304 sta->eapol_sm->portControl = Auto; in hostapd_wpa_auth_set_eapol()
307 if (sta->eapol_sm) in hostapd_wpa_auth_set_eapol()
308 sta->eapol_sm->keyRun = value; in hostapd_wpa_auth_set_eapol()
311 if (sta->eapol_sm) in hostapd_wpa_auth_set_eapol()
312 sta->eapol_sm->eap_if->eapKeyAvailable = value; in hostapd_wpa_auth_set_eapol()
315 if (sta->eapol_sm) in hostapd_wpa_auth_set_eapol()
316 sta->eapol_sm->keyDone = value; in hostapd_wpa_auth_set_eapol()
[all …]
H A Dpreauth_auth.c80 if (sta->eapol_sm == NULL) { in rsn_preauth_receive()
84 sta->eapol_sm->radius_identifier = -1; in rsn_preauth_receive()
85 sta->eapol_sm->portValid = true; in rsn_preauth_receive()
86 sta->eapol_sm->flags |= EAPOL_SM_PREAUTH; in rsn_preauth_receive()
204 key = ieee802_1x_get_key(sta->eapol_sm, &len); in rsn_preauth_finished()
211 sta->eapol_sm) == 0) { in rsn_preauth_finished()
H A Daccounting.c72 val = ieee802_1x_get_identity(sta->eapol_sm, &len); in accounting_msg()
105 val = ieee802_1x_get_radius_class(sta->eapol_sm, &len, in accounting_msg()
117 b = ieee802_1x_get_radius_cui(sta->eapol_sm); in accounting_msg()
H A Dwpa_auth_kay.c362 if (!sta->eapol_sm) in ieee802_1x_auth_get_msk()
365 key = ieee802_1x_get_key(sta->eapol_sm, &keylen); in ieee802_1x_auth_get_msk()
413 sid = ieee802_1x_get_session_id(sta->eapol_sm, &sid_len); in ieee802_1x_notify_create_actor_hapd()
H A Dsta_info.h173 struct eapol_state_machine *eapol_sm; member
H A Dwps_hostapd.c1728 if (sta->eapol_sm && (sta->flags & WLAN_STA_WPS)) in hostapd_rx_req_put_wlan_response()
1739 if (!sta->eapol_sm) { in hostapd_rx_req_put_wlan_response()
1758 return eapol_auth_eap_pending_cb(sta->eapol_sm, sta->eapol_sm->eap); in hostapd_rx_req_put_wlan_response()
H A Dauthsrv.c33 if (eapol_auth_eap_pending_cb(sta->eapol_sm, ctx) == 0) in hostapd_sim_db_cb_sta()
H A Dsta_info.c671 ieee802_1x_notify_port_enabled(sta->eapol_sm, 0); in ap_handle_timer()
865 ieee802_1x_notify_port_enabled(sta->eapol_sm, 0); in ap_sta_remove()
1632 ieee802_1x_notify_port_enabled(sta->eapol_sm, 0); in ap_sta_disconnect()
H A Ddrv_callbacks.c89 ieee802_1x_notify_port_enabled(sta->eapol_sm, 1); in hostapd_notify_assoc_fils_finish()
891 ieee802_1x_notify_port_enabled(sta->eapol_sm, 1); in hostapd_notif_assoc()
920 ieee802_1x_notify_port_enabled(sta->eapol_sm, 0); in hostapd_remove_sta()
1602 ieee802_1x_notify_pre_auth(sta->eapol_sm, 0); in hostapd_notif_auth()
H A Dieee802_11.c2008 if (!sta->eapol_sm) { in handle_auth_fils()
2009 sta->eapol_sm = in handle_auth_fils()
2600 if (!sta->eapol_sm) in pasn_wd_handle_fils()
2601 sta->eapol_sm = ieee802_1x_alloc_eapol_sm(hapd, sta); in pasn_wd_handle_fils()
3195 ieee802_1x_notify_pre_auth(sta->eapol_sm, 0); in handle_auth()
4596 sta->eapol_sm = NULL; in ieee80211_ml_process_link()
5783 ieee802_1x_notify_port_enabled(sta->eapol_sm, 0); in hostapd_deauth_sta()
5804 ieee802_1x_notify_port_enabled(sta->eapol_sm, 0); in hostapd_disassoc_sta()
6622 if (sta->eapol_sm == NULL) { in handle_assoc_cb()
6669 ieee802_1x_notify_port_enabled(sta->eapol_sm, 1); in handle_assoc_cb()
H A Dhostapd.c1045 if (!sta->eapol_sm || in hostapd_das_find_sta()
1046 !sta->eapol_sm->acct_multi_session_id) { in hostapd_das_find_sta()
1052 sta->eapol_sm->acct_multi_session_id); in hostapd_das_find_sta()
1078 cui = ieee802_1x_get_radius_cui(sta->eapol_sm); in hostapd_das_find_sta()
1106 identity = ieee802_1x_get_identity(sta->eapol_sm, in hostapd_das_find_sta()
H A Dctrl_iface_ap.c527 if (sta->eapol_sm == NULL) in hostapd_ctrl_iface_sta()
529 return eapol_auth_dump_state(sta->eapol_sm, buf, in hostapd_ctrl_iface_sta()
/freebsd/contrib/wpa/src/rsn_supp/
H A Dwpa.h18 struct eapol_sm;
197 void wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol);
316 static inline void wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol) in wpa_sm_set_eapol()
H A Dwpa_i.h45 struct eapol_sm *eapol; /* EAPOL state machine from upper level code */
57 struct eapol_sm *preauth_eapol;
H A Dpreauth.c84 static void rsn_preauth_eapol_cb(struct eapol_sm *eapol, in rsn_preauth_eapol_cb()
H A Dwpa.c4620 void wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol) in wpa_sm_set_eapol()
/freebsd/contrib/wpa/src/pasn/
H A Dpasn_common.h109 struct eapol_sm *eapol;
/freebsd/contrib/wpa/wpa_supplicant/
H A Dwpas_kay.c278 struct eapol_sm *sm; in ieee802_1x_auth_get_msk()
H A Deapol_test.c425 static void eapol_sm_cb(struct eapol_sm *eapol, enum eapol_supp_result result, in eapol_sm_cb()
H A Dwpas_glue.c283 static void wpa_supplicant_eapol_cb(struct eapol_sm *eapol, in wpa_supplicant_eapol_cb()
H A Dwpa_supplicant_i.h815 struct eapol_sm *eapol;
/freebsd/contrib/wpa/hostapd/
H A Dctrl_iface.c3091 if (!sta || !sta->eapol_sm) in hostapd_ctrl_iface_eapol_reauth()
3094 eapol_auth_reauthenticate(sta->eapol_sm); in hostapd_ctrl_iface_eapol_reauth()
3115 if (!sta || !sta->eapol_sm) in hostapd_ctrl_iface_eapol_set()
3118 return eapol_auth_set_conf(sta->eapol_sm, param, pos); in hostapd_ctrl_iface_eapol_set()