/external/wpa_supplicant_8/src/eapol_auth/ |
D | eapol_auth_sm.c | 30 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 …]
|
D | eapol_auth_sm.h | 76 void eapol_auth_deinit(struct eapol_authenticator *eapol); 78 eapol_auth_alloc(struct eapol_authenticator *eapol, const u8 *addr,
|
D | eapol_auth_sm_i.h | 172 struct eapol_authenticator *eapol; member
|
/external/wpa_supplicant_8/src/ap/ |
D | pmksa_cache_auth.c | 125 struct eapol_state_machine *eapol) in pmksa_cache_from_eapol_data() argument 127 if (eapol == NULL) in pmksa_cache_from_eapol_data() 130 if (eapol->identity) { in pmksa_cache_from_eapol_data() 131 entry->identity = os_malloc(eapol->identity_len); in pmksa_cache_from_eapol_data() 133 entry->identity_len = eapol->identity_len; in pmksa_cache_from_eapol_data() 134 os_memcpy(entry->identity, eapol->identity, in pmksa_cache_from_eapol_data() 135 eapol->identity_len); in pmksa_cache_from_eapol_data() 140 radius_copy_class(&entry->radius_class, &eapol->radius_class); in pmksa_cache_from_eapol_data() 143 entry->eap_type_authsrv = eapol->eap_type_authsrv; in pmksa_cache_from_eapol_data() 144 entry->vlan_id = ((struct sta_info *) eapol->sta)->vlan_id; in pmksa_cache_from_eapol_data() [all …]
|
D | pmksa_cache_auth.h | 50 struct eapol_state_machine *eapol, int akmp); 56 struct eapol_state_machine *eapol);
|
D | ieee802_1x.c | 288 struct eapol_authenticator *eapol = hapd->eapol_auth; in ieee802_1x_tx_key() local 314 if (eapol->default_wep_key) { in ieee802_1x_tx_key() 315 ieee802_1x_tx_key_one(hapd, sta, eapol->default_wep_key_idx, 1, in ieee802_1x_tx_key() 316 eapol->default_wep_key, in ieee802_1x_tx_key() 1428 struct eapol_authenticator *eapol = hapd->eapol_auth; in ieee802_1x_rekey_broadcast() local 1433 os_free(eapol->default_wep_key); in ieee802_1x_rekey_broadcast() 1434 eapol->default_wep_key = os_malloc(hapd->conf->default_wep_key_len); in ieee802_1x_rekey_broadcast() 1435 if (eapol->default_wep_key == NULL || in ieee802_1x_rekey_broadcast() 1436 random_get_bytes(eapol->default_wep_key, in ieee802_1x_rekey_broadcast() 1439 os_free(eapol->default_wep_key); in ieee802_1x_rekey_broadcast() [all …]
|
D | wpa_auth.h | 254 int session_timeout, struct eapol_state_machine *eapol); 258 struct eapol_state_machine *eapol);
|
/external/wpa_supplicant_6/wpa_supplicant/ |
D | eapol_test.c | 340 if (eapol_sm_get_key(e->wpa_s->eapol, pmk, PMK_LEN) == 0) { in eapol_test_compare_pmk() 349 eapol_sm_get_key(e->wpa_s->eapol, pmk, 16) == 0) { in eapol_test_compare_pmk() 371 static void eapol_sm_cb(struct eapol_sm *eapol, int success, void *ctx) in eapol_sm_cb() argument 413 wpa_s->eapol = eapol_sm_init(ctx); in test_eapol() 414 if (wpa_s->eapol == NULL) { in test_eapol() 426 eapol_sm_notify_config(wpa_s->eapol, &ssid->eap, &eapol_conf); in test_eapol() 427 eapol_sm_register_scard_ctx(wpa_s->eapol, wpa_s->scard); in test_eapol() 430 eapol_sm_notify_portValid(wpa_s->eapol, FALSE); in test_eapol() 432 eapol_sm_notify_portEnabled(wpa_s->eapol, TRUE); in test_eapol() 451 eapol_sm_deinit(wpa_s->eapol); in test_eapol_clean() [all …]
|
D | events.c | 74 eapol_sm_invalidate_cached_session(wpa_s->eapol); in wpa_supplicant_select_config() 103 eapol_sm_notify_portEnabled(wpa_s->eapol, FALSE); in wpa_supplicant_mark_disassoc() 104 eapol_sm_notify_portValid(wpa_s->eapol, FALSE); in wpa_supplicant_mark_disassoc() 106 eapol_sm_notify_eap_success(wpa_s->eapol, FALSE); in wpa_supplicant_mark_disassoc() 126 eapol_sm_notify_pmkid_attempt(wpa_s->eapol, 1); in wpa_find_assoc_pmkid() 239 eapol_sm_register_scard_ctx(wpa_s->eapol, wpa_s->scard); in wpa_supplicant_scard_init() 883 eapol_sm_notify_portEnabled(wpa_s->eapol, FALSE); in wpa_supplicant_event_assoc() 884 eapol_sm_notify_portValid(wpa_s->eapol, FALSE); in wpa_supplicant_event_assoc() 887 eapol_sm_notify_eap_success(wpa_s->eapol, FALSE); in wpa_supplicant_event_assoc() 889 eapol_sm_notify_portEnabled(wpa_s->eapol, TRUE); in wpa_supplicant_event_assoc() [all …]
|
D | wpa_supplicant.c | 253 eapol_sm_notify_eap_success(wpa_s->eapol, FALSE); in wpa_supplicant_initiate_eapol() 254 eapol_sm_notify_eap_fail(wpa_s->eapol, FALSE); in wpa_supplicant_initiate_eapol() 258 eapol_sm_notify_portControl(wpa_s->eapol, ForceAuthorized); in wpa_supplicant_initiate_eapol() 260 eapol_sm_notify_portControl(wpa_s->eapol, Auto); in wpa_supplicant_initiate_eapol() 285 eapol_sm_notify_config(wpa_s->eapol, &ssid->eap, &eapol_conf); in wpa_supplicant_initiate_eapol() 348 eapol_sm_register_scard_ctx(wpa_s->eapol, NULL); in wpa_supplicant_cleanup() 369 eapol_sm_deinit(wpa_s->eapol); in wpa_supplicant_cleanup() 370 wpa_s->eapol = NULL; in wpa_supplicant_cleanup() 580 eapol_sm_invalidate_cached_session(wpa_s->eapol); in wpa_supplicant_reload_configuration() 591 eapol_sm_notify_eap_success(wpa_s->eapol, FALSE); in wpa_supplicant_reload_configuration() [all …]
|
D | wpas_glue.c | 222 static void wpa_supplicant_eapol_cb(struct eapol_sm *eapol, int success, in wpa_supplicant_eapol_cb() argument 254 res = eapol_sm_get_key(eapol, pmk, PMK_LEN); in wpa_supplicant_eapol_cb() 260 res = eapol_sm_get_key(eapol, pmk, 16); in wpa_supplicant_eapol_cb() 565 wpa_s->eapol = eapol_sm_init(ctx); in wpa_supplicant_init_eapol() 566 if (wpa_s->eapol == NULL) { in wpa_supplicant_init_eapol()
|
D | ctrl_iface.c | 53 eapol_sm_configure(wpa_s->eapol, in wpa_supplicant_ctrl_iface_set() 56 eapol_sm_configure(wpa_s->eapol, in wpa_supplicant_ctrl_iface_set() 59 eapol_sm_configure(wpa_s->eapol, in wpa_supplicant_ctrl_iface_set() 62 eapol_sm_configure(wpa_s->eapol, in wpa_supplicant_ctrl_iface_set() 379 res = eapol_sm_get_status(wpa_s->eapol, pos, end - pos, in wpa_supplicant_ctrl_iface_status() 1036 eapol_sm_invalidate_cached_session(wpa_s->eapol); in wpa_supplicant_ctrl_iface_remove_network() 1059 eapol_sm_invalidate_cached_session(wpa_s->eapol); in wpa_supplicant_ctrl_iface_remove_network() 1114 eapol_sm_invalidate_cached_session(wpa_s->eapol); in wpa_supplicant_ctrl_iface_set_network() 1676 res = eapol_sm_get_mib(wpa_s->eapol, reply + reply_len, in wpa_supplicant_ctrl_iface_process() 1692 eapol_sm_notify_logoff(wpa_s->eapol, FALSE); in wpa_supplicant_ctrl_iface_process() [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | eapol_test.c | 338 if (eapol_sm_get_key(e->wpa_s->eapol, pmk, PMK_LEN) == 0) { in eapol_test_compare_pmk() 347 eapol_sm_get_key(e->wpa_s->eapol, pmk, 16) == 0) { in eapol_test_compare_pmk() 369 static void eapol_sm_cb(struct eapol_sm *eapol, int success, void *ctx) in eapol_sm_cb() argument 458 wpa_s->eapol = eapol_sm_init(ctx); in test_eapol() 459 if (wpa_s->eapol == NULL) { in test_eapol() 471 eapol_sm_notify_config(wpa_s->eapol, &ssid->eap, &eapol_conf); in test_eapol() 472 eapol_sm_register_scard_ctx(wpa_s->eapol, wpa_s->scard); in test_eapol() 475 eapol_sm_notify_portValid(wpa_s->eapol, FALSE); in test_eapol() 477 eapol_sm_notify_portEnabled(wpa_s->eapol, TRUE); in test_eapol() 494 eapol_sm_deinit(wpa_s->eapol); in test_eapol_clean() [all …]
|
D | wpa_supplicant.c | 255 eapol_sm_notify_portControl(wpa_s->eapol, ForceAuthorized); in wpa_supplicant_initiate_eapol() 256 eapol_sm_notify_eap_success(wpa_s->eapol, TRUE); in wpa_supplicant_initiate_eapol() 257 eapol_sm_notify_eap_fail(wpa_s->eapol, FALSE); in wpa_supplicant_initiate_eapol() 262 eapol_sm_notify_eap_success(wpa_s->eapol, FALSE); in wpa_supplicant_initiate_eapol() 263 eapol_sm_notify_eap_fail(wpa_s->eapol, FALSE); in wpa_supplicant_initiate_eapol() 267 eapol_sm_notify_portControl(wpa_s->eapol, ForceAuthorized); in wpa_supplicant_initiate_eapol() 269 eapol_sm_notify_portControl(wpa_s->eapol, Auto); in wpa_supplicant_initiate_eapol() 293 eapol_sm_notify_config(wpa_s->eapol, &ssid->eap, &eapol_conf); in wpa_supplicant_initiate_eapol() 373 eapol_sm_register_scard_ctx(wpa_s->eapol, NULL); in wpa_supplicant_cleanup() 391 eapol_sm_deinit(wpa_s->eapol); in wpa_supplicant_cleanup() [all …]
|
D | wpas_glue.c | 219 static void wpa_supplicant_eapol_cb(struct eapol_sm *eapol, int success, in wpa_supplicant_eapol_cb() argument 256 res = eapol_sm_get_key(eapol, buf, 2 * PMK_LEN); in wpa_supplicant_eapol_cb() 265 res = eapol_sm_get_key(eapol, pmk, PMK_LEN); in wpa_supplicant_eapol_cb() 271 res = eapol_sm_get_key(eapol, pmk, 16); in wpa_supplicant_eapol_cb() 755 wpa_s->eapol = eapol_sm_init(ctx); in wpa_supplicant_init_eapol() 756 if (wpa_s->eapol == NULL) { in wpa_supplicant_init_eapol()
|
D | events.c | 77 eapol_sm_invalidate_cached_session(wpa_s->eapol); in wpa_supplicant_select_config() 140 eapol_sm_notify_portEnabled(wpa_s->eapol, FALSE); in wpa_supplicant_mark_disassoc() 141 eapol_sm_notify_portValid(wpa_s->eapol, FALSE); in wpa_supplicant_mark_disassoc() 143 eapol_sm_notify_eap_success(wpa_s->eapol, FALSE); in wpa_supplicant_mark_disassoc() 163 eapol_sm_notify_pmkid_attempt(wpa_s->eapol, 1); in wpa_find_assoc_pmkid() 279 eapol_sm_register_scard_ctx(wpa_s->eapol, wpa_s->scard); in wpa_supplicant_scard_init() 1531 eapol_sm_notify_portEnabled(wpa_s->eapol, FALSE); 1532 eapol_sm_notify_portValid(wpa_s->eapol, FALSE); 1535 eapol_sm_notify_eap_success(wpa_s->eapol, FALSE); 1537 eapol_sm_notify_portEnabled(wpa_s->eapol, TRUE); [all …]
|
D | ctrl_iface.c | 130 eapol_sm_configure(wpa_s->eapol, in wpa_supplicant_ctrl_iface_set() 133 eapol_sm_configure(wpa_s->eapol, in wpa_supplicant_ctrl_iface_set() 136 eapol_sm_configure(wpa_s->eapol, in wpa_supplicant_ctrl_iface_set() 139 eapol_sm_configure(wpa_s->eapol, in wpa_supplicant_ctrl_iface_set() 1002 res = eapol_sm_get_status(wpa_s->eapol, pos, end - pos, in wpa_supplicant_ctrl_iface_status() 1692 eapol_sm_invalidate_cached_session(wpa_s->eapol); in wpa_supplicant_ctrl_iface_remove_network() 1695 eapol_sm_notify_config(wpa_s->eapol, NULL, NULL); in wpa_supplicant_ctrl_iface_remove_network() 1720 eapol_sm_invalidate_cached_session(wpa_s->eapol); in wpa_supplicant_ctrl_iface_remove_network() 1725 eapol_sm_notify_config(wpa_s->eapol, NULL, NULL); in wpa_supplicant_ctrl_iface_remove_network() 1778 eapol_sm_invalidate_cached_session(wpa_s->eapol); in wpa_supplicant_ctrl_iface_set_network() [all …]
|
/external/wpa_supplicant_6/wpa_supplicant/src/rsn_supp/ |
D | wpa.c | 126 eapol_sm_notify_tx_eapol_key(sm->eapol); in wpa_eapol_key_send() 219 eapol_sm_notify_cached(sm->eapol); in wpa_supplicant_get_pmk() 223 } else if (wpa_key_mgmt_wpa_ieee8021x(sm->key_mgmt) && sm->eapol) { in wpa_supplicant_get_pmk() 226 res = eapol_sm_get_key(sm->eapol, sm->pmk, PMK_LEN); in wpa_supplicant_get_pmk() 232 res = eapol_sm_get_key(sm->eapol, sm->pmk, 16); in wpa_supplicant_get_pmk() 237 if (eapol_sm_get_key(sm->eapol, buf, 2 * PMK_LEN) == 0) in wpa_supplicant_get_pmk() 476 eapol_sm_notify_portValid(sm->eapol, TRUE); in wpa_supplicant_key_neg_complete() 478 eapol_sm_notify_eap_success(sm->eapol, TRUE); in wpa_supplicant_key_neg_complete() 1027 eapol_sm_notify_portValid(sm->eapol, TRUE); in wpa_supplicant_process_3_of_4() 1491 eapol_sm_notify_lower_layer_success(sm->eapol, 0); in wpa_sm_rx_eapol() [all …]
|
D | preauth.c | 83 static void rsn_preauth_eapol_cb(struct eapol_sm *eapol, int success, in rsn_preauth_eapol_cb() argument 92 res = eapol_sm_get_key(eapol, pmk, PMK_LEN); in rsn_preauth_eapol_cb() 98 res = eapol_sm_get_key(eapol, pmk, 16); in rsn_preauth_eapol_cb()
|
D | wpa.h | 105 void wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol); 181 static inline void wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol) in wpa_sm_set_eapol() argument
|
/external/wpa_supplicant_8/src/rsn_supp/ |
D | wpa.c | 69 eapol_sm_notify_tx_eapol_key(sm->eapol); in wpa_eapol_key_send() 166 eapol_sm_notify_cached(sm->eapol); in wpa_supplicant_get_pmk() 170 } else if (wpa_key_mgmt_wpa_ieee8021x(sm->key_mgmt) && sm->eapol) { in wpa_supplicant_get_pmk() 173 res = eapol_sm_get_key(sm->eapol, sm->pmk, PMK_LEN); in wpa_supplicant_get_pmk() 179 res = eapol_sm_get_key(sm->eapol, sm->pmk, 16); in wpa_supplicant_get_pmk() 184 if (eapol_sm_get_key(sm->eapol, buf, 2 * PMK_LEN) == 0) in wpa_supplicant_get_pmk() 469 eapol_sm_notify_portValid(sm->eapol, TRUE); in wpa_supplicant_key_neg_complete() 471 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() 1658 eapol_sm_notify_lower_layer_success(sm->eapol, 0); in wpa_sm_rx_eapol() [all …]
|
D | preauth.c | 73 static void rsn_preauth_eapol_cb(struct eapol_sm *eapol, int success, in rsn_preauth_eapol_cb() argument 82 res = eapol_sm_get_key(eapol, pmk, PMK_LEN); in rsn_preauth_eapol_cb() 88 res = eapol_sm_get_key(eapol, pmk, 16); in rsn_preauth_eapol_cb()
|
D | wpa.h | 107 void wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol); 190 static inline void wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol) in wpa_sm_set_eapol() argument
|
/external/wpa_supplicant_6/wpa_supplicant/tests/ |
D | link_test.c | 67 struct eapol_state_machine *eapol) in pmksa_cache_to_eapol_data() argument
|
/external/wpa_supplicant_8/wpa_supplicant/tests/ |
D | link_test.c | 67 struct eapol_state_machine *eapol) in pmksa_cache_to_eapol_data() argument
|