Home
last modified time | relevance | path

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

12

/external/wpa_supplicant_8/src/eapol_auth/
Deapol_auth_sm.c30 sm->eapol->cb.set_port_authorized(sm->eapol->conf.ctx, sm->sta, 1)
32 sm->eapol->cb.set_port_authorized(sm->eapol->conf.ctx, sm->sta, 0)
38 #define abortAuth() sm->eapol->cb.abort_auth(sm->eapol->conf.ctx, sm->sta)
39 #define txKey() sm->eapol->cb.tx_key(sm->eapol->conf.ctx, sm->sta)
48 static void eapol_auth_logger(struct eapol_authenticator *eapol, in eapol_auth_logger() argument
52 if (eapol->cb.logger == NULL) in eapol_auth_logger()
54 eapol->cb.logger(eapol->conf.ctx, addr, level, txt); in eapol_auth_logger()
58 static void eapol_auth_vlogger(struct eapol_authenticator *eapol, in eapol_auth_vlogger() argument
66 if (eapol->cb.logger == NULL) in eapol_auth_vlogger()
78 eapol_auth_logger(eapol, addr, level, format); in eapol_auth_vlogger()
[all …]
Deapol_auth_sm.h79 void eapol_auth_deinit(struct eapol_authenticator *eapol);
81 eapol_auth_alloc(struct eapol_authenticator *eapol, const u8 *addr,
Deapol_auth_sm_i.h173 struct eapol_authenticator *eapol; member
/external/wpa_supplicant_8/src/ap/
Dpmksa_cache_auth.c126 struct eapol_state_machine *eapol) in pmksa_cache_from_eapol_data() argument
128 if (eapol == NULL) in pmksa_cache_from_eapol_data()
131 if (eapol->identity) { in pmksa_cache_from_eapol_data()
132 entry->identity = os_malloc(eapol->identity_len); in pmksa_cache_from_eapol_data()
134 entry->identity_len = eapol->identity_len; in pmksa_cache_from_eapol_data()
135 os_memcpy(entry->identity, eapol->identity, in pmksa_cache_from_eapol_data()
136 eapol->identity_len); in pmksa_cache_from_eapol_data()
140 if (eapol->radius_cui) in pmksa_cache_from_eapol_data()
141 entry->cui = wpabuf_dup(eapol->radius_cui); in pmksa_cache_from_eapol_data()
144 radius_copy_class(&entry->radius_class, &eapol->radius_class); in pmksa_cache_from_eapol_data()
[all …]
Dpmksa_cache_auth.h51 struct eapol_state_machine *eapol, int akmp);
57 struct eapol_state_machine *eapol);
Dieee802_1x.c195 struct eapol_authenticator *eapol = hapd->eapol_auth; in ieee802_1x_tx_key() local
211 if (eapol->default_wep_key) { in ieee802_1x_tx_key()
212 ieee802_1x_tx_key_one(hapd, sta, eapol->default_wep_key_idx, 1, in ieee802_1x_tx_key()
213 eapol->default_wep_key, in ieee802_1x_tx_key()
1723 struct eapol_authenticator *eapol = hapd->eapol_auth; in ieee802_1x_rekey_broadcast() local
1728 os_free(eapol->default_wep_key); in ieee802_1x_rekey_broadcast()
1729 eapol->default_wep_key = os_malloc(hapd->conf->default_wep_key_len); in ieee802_1x_rekey_broadcast()
1730 if (eapol->default_wep_key == NULL || in ieee802_1x_rekey_broadcast()
1731 random_get_bytes(eapol->default_wep_key, in ieee802_1x_rekey_broadcast()
1734 os_free(eapol->default_wep_key); in ieee802_1x_rekey_broadcast()
[all …]
Dwpa_auth.h274 int session_timeout, struct eapol_state_machine *eapol);
278 struct eapol_state_machine *eapol);
Dwpa_auth.c3051 int session_timeout, struct eapol_state_machine *eapol) in wpa_auth_pmksa_add() argument
3059 eapol, sm->wpa_key_mgmt)) in wpa_auth_pmksa_add()
3069 struct eapol_state_machine *eapol) in wpa_auth_pmksa_add_preauth() argument
3075 sta_addr, session_timeout, eapol, in wpa_auth_pmksa_add_preauth()
/external/wpa_supplicant_8/wpa_supplicant/
Deapol_test.c352 if (eapol_sm_get_key(e->wpa_s->eapol, pmk, PMK_LEN) == 0) { in eapol_test_compare_pmk()
361 eapol_sm_get_key(e->wpa_s->eapol, pmk, 16) == 0) { in eapol_test_compare_pmk()
379 sess_id = eapol_sm_get_session_id(e->wpa_s->eapol, &sess_id_len); in eapol_test_compare_pmk()
405 static void eapol_sm_cb(struct eapol_sm *eapol, enum eapol_supp_result result, in eapol_sm_cb() argument
576 wpa_s->eapol = eapol_sm_init(ctx); in test_eapol()
577 if (wpa_s->eapol == NULL) { in test_eapol()
590 eapol_sm_notify_config(wpa_s->eapol, &ssid->eap, &eapol_conf); in test_eapol()
591 eapol_sm_register_scard_ctx(wpa_s->eapol, wpa_s->scard); in test_eapol()
594 eapol_sm_notify_portValid(wpa_s->eapol, FALSE); in test_eapol()
596 eapol_sm_notify_portEnabled(wpa_s->eapol, TRUE); in test_eapol()
[all …]
Dwpa_supplicant.c265 eapol_sm_notify_portControl(wpa_s->eapol, ForceAuthorized); in wpa_supplicant_initiate_eapol()
266 eapol_sm_notify_eap_success(wpa_s->eapol, TRUE); in wpa_supplicant_initiate_eapol()
267 eapol_sm_notify_eap_fail(wpa_s->eapol, FALSE); in wpa_supplicant_initiate_eapol()
272 eapol_sm_notify_eap_success(wpa_s->eapol, FALSE); in wpa_supplicant_initiate_eapol()
273 eapol_sm_notify_eap_fail(wpa_s->eapol, FALSE); in wpa_supplicant_initiate_eapol()
277 eapol_sm_notify_portControl(wpa_s->eapol, ForceAuthorized); in wpa_supplicant_initiate_eapol()
279 eapol_sm_notify_portControl(wpa_s->eapol, Auto); in wpa_supplicant_initiate_eapol()
304 eapol_sm_notify_config(wpa_s->eapol, &ssid->eap, &eapol_conf); in wpa_supplicant_initiate_eapol()
389 eapol_sm_register_scard_ctx(wpa_s->eapol, NULL); in wpa_supplicant_cleanup()
410 eapol_sm_deinit(wpa_s->eapol); in wpa_supplicant_cleanup()
[all …]
Dwpas_glue.c252 static void wpa_supplicant_eapol_cb(struct eapol_sm *eapol, in wpa_supplicant_eapol_cb() argument
296 res = eapol_sm_get_key(eapol, buf, 2 * PMK_LEN); in wpa_supplicant_eapol_cb()
305 res = eapol_sm_get_key(eapol, pmk, PMK_LEN); in wpa_supplicant_eapol_cb()
311 res = eapol_sm_get_key(eapol, pmk, 16); in wpa_supplicant_eapol_cb()
877 wpa_s->eapol = eapol_sm_init(ctx); in wpa_supplicant_init_eapol()
878 if (wpa_s->eapol == NULL) { in wpa_supplicant_init_eapol()
Devents.c152 eapol_sm_invalidate_cached_session(wpa_s->eapol); in wpa_supplicant_select_config()
220 eapol_sm_notify_portEnabled(wpa_s->eapol, FALSE); in wpa_supplicant_mark_disassoc()
221 eapol_sm_notify_portValid(wpa_s->eapol, FALSE); in wpa_supplicant_mark_disassoc()
223 eapol_sm_notify_eap_success(wpa_s->eapol, FALSE); in wpa_supplicant_mark_disassoc()
226 eapol_sm_notify_config(wpa_s->eapol, NULL, NULL); in wpa_supplicant_mark_disassoc()
246 eapol_sm_notify_pmkid_attempt(wpa_s->eapol, 1); in wpa_find_assoc_pmkid()
360 eapol_sm_register_scard_ctx(wpa_s->eapol, wpa_s->scard); in wpa_supplicant_scard_init()
1962 eapol_sm_notify_portEnabled(wpa_s->eapol, FALSE);
1963 eapol_sm_notify_portValid(wpa_s->eapol, FALSE);
1966 eapol_sm_notify_eap_success(wpa_s->eapol, FALSE);
[all …]
Dwpas_kay.c255 session_id = eapol_sm_get_session_id(wpa_s->eapol, &id_len); in ieee802_1x_auth_get_session_id()
283 sm = wpa_s->eapol; in ieee802_1x_auth_get_msk()
Dctrl_iface.c291 eapol_sm_configure(wpa_s->eapol, in wpa_supplicant_ctrl_iface_set()
294 eapol_sm_configure(wpa_s->eapol, in wpa_supplicant_ctrl_iface_set()
297 eapol_sm_configure(wpa_s->eapol, in wpa_supplicant_ctrl_iface_set()
300 eapol_sm_configure(wpa_s->eapol, in wpa_supplicant_ctrl_iface_set()
1755 res = eapol_sm_get_status(wpa_s->eapol, pos, end - pos, in wpa_supplicant_ctrl_iface_status()
2485 eapol_sm_invalidate_cached_session(wpa_s->eapol); in wpa_supplicant_ctrl_iface_remove_network()
2491 eapol_sm_notify_config(wpa_s->eapol, NULL, NULL); in wpa_supplicant_ctrl_iface_remove_network()
2531 eapol_sm_invalidate_cached_session(wpa_s->eapol); in wpa_supplicant_ctrl_iface_remove_network()
2536 eapol_sm_notify_config(wpa_s->eapol, NULL, NULL); in wpa_supplicant_ctrl_iface_remove_network()
2580 eapol_sm_invalidate_cached_session(wpa_s->eapol); in wpa_supplicant_ctrl_iface_update_network()
[all …]
Dctrl_iface_udp.c320 eapol_sm_notify_ctrl_attached(wpa_s->eapol);
Dap.c639 eapol_sm_notify_config(wpa_s->eapol, NULL, NULL); in wpa_supplicant_create_ap()
663 eapol_sm_notify_config(wpa_s->eapol, NULL, NULL); in wpa_supplicant_ap_deinit()
Dwpa_supplicant_i.h489 struct eapol_sm *eapol; member
/external/wpa_supplicant_8/wpa_supplicant/tests/
Dlink_test.c67 struct eapol_state_machine *eapol) in pmksa_cache_to_eapol_data() argument
/external/wpa_supplicant_8/src/rsn_supp/
Dpreauth.c73 static void rsn_preauth_eapol_cb(struct eapol_sm *eapol, in rsn_preauth_eapol_cb() argument
83 res = eapol_sm_get_key(eapol, pmk, PMK_LEN); in rsn_preauth_eapol_cb()
89 res = eapol_sm_get_key(eapol, pmk, 16); in rsn_preauth_eapol_cb()
Dwpa.c69 eapol_sm_notify_tx_eapol_key(sm->eapol); in wpa_eapol_key_send()
170 eapol_sm_notify_cached(sm->eapol); in wpa_supplicant_get_pmk()
174 } else if (wpa_key_mgmt_wpa_ieee8021x(sm->key_mgmt) && sm->eapol) { in wpa_supplicant_get_pmk()
177 res = eapol_sm_get_key(sm->eapol, sm->pmk, PMK_LEN); in wpa_supplicant_get_pmk()
183 res = eapol_sm_get_key(sm->eapol, sm->pmk, 16); in wpa_supplicant_get_pmk()
188 if (eapol_sm_get_key(sm->eapol, buf, 2 * PMK_LEN) == 0) in wpa_supplicant_get_pmk()
508 eapol_sm_notify_portValid(sm->eapol, TRUE); in wpa_supplicant_key_neg_complete()
510 eapol_sm_notify_eap_success(sm->eapol, TRUE); in wpa_supplicant_key_neg_complete()
1157 eapol_sm_notify_portValid(sm->eapol, TRUE); in wpa_supplicant_process_3_of_4()
1682 eapol_sm_notify_lower_layer_success(sm->eapol, 0); in wpa_sm_rx_eapol()
[all …]
Dwpa.h116 void wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol);
200 static inline void wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol) in wpa_sm_set_eapol() argument
Dwpa_i.h33 struct eapol_sm *eapol; /* EAPOL state machine from upper level code */ member
Dpmksa_cache.c75 eapol_sm_request_reauth(pmksa->sm->eapol); in pmksa_cache_reauth()
/external/wpa_supplicant_8/src/eapol_supp/
Deapol_supp_sm.h105 void (*cb)(struct eapol_sm *eapol, enum eapol_supp_result result,
/external/wpa_supplicant_8/wpa_supplicant/dbus/
Ddbus_old_handlers.c1247 eapol_sm_deinit(wpa_s->eapol); in wpas_dbus_iface_set_smartcard_modules()
1248 wpa_s->eapol = NULL; in wpas_dbus_iface_set_smartcard_modules()
1250 wpa_sm_set_eapol(wpa_s->wpa, wpa_s->eapol); in wpas_dbus_iface_set_smartcard_modules()

12