/third_party/wpa_supplicant/wpa_supplicant-2.9/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) 49 static void eapol_auth_logger(struct eapol_authenticator *eapol, in eapol_auth_logger() argument 53 if (eapol->cb.logger == NULL) in eapol_auth_logger() 55 eapol->cb.logger(eapol->conf.ctx, addr, level, txt); in eapol_auth_logger() 59 static void eapol_auth_vlogger(struct eapol_authenticator *eapol, in eapol_auth_vlogger() argument 67 if (eapol->cb.logger == NULL) in eapol_auth_vlogger() 79 eapol_auth_logger(eapol, addr, level, format); in eapol_auth_vlogger() [all …]
|
D | eapol_auth_sm.h | 91 void eapol_auth_deinit(struct eapol_authenticator *eapol); 93 eapol_auth_alloc(struct eapol_authenticator *eapol, const u8 *addr,
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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) 49 static void eapol_auth_logger(struct eapol_authenticator *eapol, in eapol_auth_logger() argument 53 if (eapol->cb.logger == NULL) in eapol_auth_logger() 55 eapol->cb.logger(eapol->conf.ctx, addr, level, txt); in eapol_auth_logger() 60 static void eapol_auth_vlogger(struct eapol_authenticator *eapol, in eapol_auth_vlogger() argument 68 if (eapol->cb.logger == NULL) in eapol_auth_vlogger() 80 eapol_auth_logger(eapol, addr, level, format); in eapol_auth_vlogger() [all …]
|
D | eapol_auth_sm.h | 67 void eapol_auth_deinit(struct eapol_authenticator *eapol); 69 eapol_auth_alloc(struct eapol_authenticator *eapol, const u8 *addr,
|
D | eapol_auth_sm_i.h | 167 struct eapol_authenticator *eapol; member
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
D | pmksa_cache_auth.c | 142 struct eapol_state_machine *eapol) in pmksa_cache_from_eapol_data() argument 146 if (eapol == NULL) in pmksa_cache_from_eapol_data() 149 if (eapol->identity) { in pmksa_cache_from_eapol_data() 150 entry->identity = os_malloc(eapol->identity_len); in pmksa_cache_from_eapol_data() 152 entry->identity_len = eapol->identity_len; in pmksa_cache_from_eapol_data() 153 os_memcpy(entry->identity, eapol->identity, in pmksa_cache_from_eapol_data() 154 eapol->identity_len); in pmksa_cache_from_eapol_data() 158 if (eapol->radius_cui) in pmksa_cache_from_eapol_data() 159 entry->cui = wpabuf_dup(eapol->radius_cui); in pmksa_cache_from_eapol_data() 162 radius_copy_class(&entry->radius_class, &eapol->radius_class); in pmksa_cache_from_eapol_data() [all …]
|
D | pmksa_cache_auth.h | 55 struct eapol_state_machine *eapol, int akmp); 60 struct eapol_state_machine *eapol, int akmp); 69 struct eapol_state_machine *eapol);
|
D | ieee802_1x.c | 244 struct eapol_authenticator *eapol = hapd->eapol_auth; in ieee802_1x_tx_key() local 260 if (eapol->default_wep_key) { in ieee802_1x_tx_key() 261 ieee802_1x_tx_key_one(hapd, sta, eapol->default_wep_key_idx, 1, in ieee802_1x_tx_key() 262 eapol->default_wep_key, in ieee802_1x_tx_key() 2109 struct eapol_authenticator *eapol = hapd->eapol_auth; in ieee802_1x_rekey_broadcast() local 2114 os_free(eapol->default_wep_key); in ieee802_1x_rekey_broadcast() 2115 eapol->default_wep_key = os_malloc(hapd->conf->default_wep_key_len); in ieee802_1x_rekey_broadcast() 2116 if (eapol->default_wep_key == NULL || in ieee802_1x_rekey_broadcast() 2117 random_get_bytes(eapol->default_wep_key, in ieee802_1x_rekey_broadcast() 2120 os_free(eapol->default_wep_key); in ieee802_1x_rekey_broadcast() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
D | pmksa_cache_auth.c | 142 struct eapol_state_machine *eapol) in pmksa_cache_from_eapol_data() argument 146 if (eapol == NULL) in pmksa_cache_from_eapol_data() 149 if (eapol->identity) { in pmksa_cache_from_eapol_data() 150 entry->identity = os_malloc(eapol->identity_len); in pmksa_cache_from_eapol_data() 152 entry->identity_len = eapol->identity_len; in pmksa_cache_from_eapol_data() 153 os_memcpy(entry->identity, eapol->identity, in pmksa_cache_from_eapol_data() 154 eapol->identity_len); in pmksa_cache_from_eapol_data() 158 if (eapol->radius_cui) in pmksa_cache_from_eapol_data() 159 entry->cui = wpabuf_dup(eapol->radius_cui); in pmksa_cache_from_eapol_data() 162 radius_copy_class(&entry->radius_class, &eapol->radius_class); in pmksa_cache_from_eapol_data() [all …]
|
D | pmksa_cache_auth.h | 55 struct eapol_state_machine *eapol, int akmp); 60 struct eapol_state_machine *eapol, int akmp); 69 struct eapol_state_machine *eapol);
|
D | ieee802_1x.c | 244 struct eapol_authenticator *eapol = hapd->eapol_auth; in ieee802_1x_tx_key() local 260 if (eapol->default_wep_key) { in ieee802_1x_tx_key() 261 ieee802_1x_tx_key_one(hapd, sta, eapol->default_wep_key_idx, 1, in ieee802_1x_tx_key() 262 eapol->default_wep_key, in ieee802_1x_tx_key() 2124 struct eapol_authenticator *eapol = hapd->eapol_auth; in ieee802_1x_rekey_broadcast() local 2129 os_free(eapol->default_wep_key); in ieee802_1x_rekey_broadcast() 2130 eapol->default_wep_key = os_malloc(hapd->conf->default_wep_key_len); in ieee802_1x_rekey_broadcast() 2131 if (!eapol->default_wep_key || in ieee802_1x_rekey_broadcast() 2132 random_get_bytes(eapol->default_wep_key, in ieee802_1x_rekey_broadcast() 2135 os_free(eapol->default_wep_key); in ieee802_1x_rekey_broadcast() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
D | eapol_test.c | 368 if (eapol_sm_get_key(e->wpa_s->eapol, pmk, PMK_LEN) == 0) { in eapol_test_compare_pmk() 377 eapol_sm_get_key(e->wpa_s->eapol, pmk, 16) == 0) { in eapol_test_compare_pmk() 395 sess_id = eapol_sm_get_session_id(e->wpa_s->eapol, &sess_id_len); in eapol_test_compare_pmk() 421 static void eapol_sm_cb(struct eapol_sm *eapol, enum eapol_supp_result result, in eapol_sm_cb() argument 610 wpa_s->eapol = eapol_sm_init(ctx); in test_eapol() 611 if (wpa_s->eapol == NULL) { in test_eapol() 643 eapol_sm_notify_config(wpa_s->eapol, &ssid->eap, &eapol_conf); in test_eapol() 644 eapol_sm_register_scard_ctx(wpa_s->eapol, wpa_s->scard); in test_eapol() 647 eapol_sm_notify_portValid(wpa_s->eapol, FALSE); in test_eapol() 649 eapol_sm_notify_portEnabled(wpa_s->eapol, TRUE); in test_eapol() [all …]
|
D | wpas_glue.c | 274 static void wpa_supplicant_eapol_cb(struct eapol_sm *eapol, in wpa_supplicant_eapol_cb() argument 318 res = eapol_sm_get_key(eapol, buf, 2 * PMK_LEN); in wpa_supplicant_eapol_cb() 327 res = eapol_sm_get_key(eapol, pmk, PMK_LEN); in wpa_supplicant_eapol_cb() 333 res = eapol_sm_get_key(eapol, pmk, 16); in wpa_supplicant_eapol_cb() 948 wpa_s->mnc_len = eapol_sm_get_eap_proxy_imsi(wpa_s->eapol, -1, in wpa_supplicant_eap_proxy_cb() 1130 wpa_s->eapol = eapol_sm_init(ctx); in wpa_supplicant_init_eapol() 1131 if (wpa_s->eapol == NULL) { in wpa_supplicant_init_eapol()
|
D | wpa_supplicant.c | 317 eapol_sm_notify_portControl(wpa_s->eapol, ForceAuthorized); in wpa_supplicant_initiate_eapol() 318 eapol_sm_notify_eap_success(wpa_s->eapol, TRUE); in wpa_supplicant_initiate_eapol() 319 eapol_sm_notify_eap_fail(wpa_s->eapol, FALSE); in wpa_supplicant_initiate_eapol() 324 eapol_sm_notify_eap_success(wpa_s->eapol, FALSE); in wpa_supplicant_initiate_eapol() 325 eapol_sm_notify_eap_fail(wpa_s->eapol, FALSE); in wpa_supplicant_initiate_eapol() 329 eapol_sm_notify_portControl(wpa_s->eapol, ForceAuthorized); in wpa_supplicant_initiate_eapol() 331 eapol_sm_notify_portControl(wpa_s->eapol, Auto); in wpa_supplicant_initiate_eapol() 373 eapol_sm_notify_config(wpa_s->eapol, &ssid->eap, &eapol_conf); in wpa_supplicant_initiate_eapol() 489 eapol_sm_register_scard_ctx(wpa_s->eapol, NULL); in wpa_supplicant_cleanup() 522 eapol_sm_deinit(wpa_s->eapol); in wpa_supplicant_cleanup() [all …]
|
D | events.c | 237 eapol_sm_invalidate_cached_session(wpa_s->eapol); in wpa_supplicant_select_config() 315 eapol_sm_notify_portEnabled(wpa_s->eapol, FALSE); in wpa_supplicant_mark_disassoc() 316 eapol_sm_notify_portValid(wpa_s->eapol, FALSE); in wpa_supplicant_mark_disassoc() 320 eapol_sm_notify_eap_success(wpa_s->eapol, FALSE); in wpa_supplicant_mark_disassoc() 323 eapol_sm_notify_config(wpa_s->eapol, NULL, NULL); in wpa_supplicant_mark_disassoc() 356 eapol_sm_notify_pmkid_attempt(wpa_s->eapol); in wpa_find_assoc_pmkid() 470 eapol_sm_register_scard_ctx(wpa_s->eapol, wpa_s->scard); in wpa_supplicant_scard_init() 2834 eapol_sm_notify_portEnabled(wpa_s->eapol, FALSE); in wpa_supplicant_event_assoc() 2835 eapol_sm_notify_portValid(wpa_s->eapol, FALSE); in wpa_supplicant_event_assoc() 2841 eapol_sm_notify_eap_success(wpa_s->eapol, FALSE); in wpa_supplicant_event_assoc() [all …]
|
D | wpas_kay.c | 272 session_id = eapol_sm_get_session_id(wpa_s->eapol, &id_len); in ieee802_1x_auth_get_session_id() 300 sm = wpa_s->eapol; in ieee802_1x_auth_get_msk()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
D | eapol_test.c | 368 if (eapol_sm_get_key(e->wpa_s->eapol, pmk, PMK_LEN) == 0) { in eapol_test_compare_pmk() 377 eapol_sm_get_key(e->wpa_s->eapol, pmk, 16) == 0) { in eapol_test_compare_pmk() 395 sess_id = eapol_sm_get_session_id(e->wpa_s->eapol, &sess_id_len); in eapol_test_compare_pmk() 421 static void eapol_sm_cb(struct eapol_sm *eapol, enum eapol_supp_result result, in eapol_sm_cb() argument 610 wpa_s->eapol = eapol_sm_init(ctx); in test_eapol() 611 if (wpa_s->eapol == NULL) { in test_eapol() 643 eapol_sm_notify_config(wpa_s->eapol, &ssid->eap, &eapol_conf); in test_eapol() 644 eapol_sm_register_scard_ctx(wpa_s->eapol, wpa_s->scard); in test_eapol() 647 eapol_sm_notify_portValid(wpa_s->eapol, false); in test_eapol() 649 eapol_sm_notify_portEnabled(wpa_s->eapol, true); in test_eapol() [all …]
|
D | pasn_supplicant.c | 298 erp_msg = eapol_sm_build_erp_reauth_start(wpa_s->eapol); in wpas_pasn_fils_build_auth() 381 eapol_sm_notify_eap_success(wpa_s->eapol, false); in wpas_pasn_initiate_eapol() 382 eapol_sm_notify_eap_fail(wpa_s->eapol, false); in wpas_pasn_initiate_eapol() 383 eapol_sm_notify_portControl(wpa_s->eapol, Auto); in wpas_pasn_initiate_eapol() 389 eapol_sm_notify_config(wpa_s->eapol, &ssid->eap, &eapol_conf); in wpas_pasn_initiate_eapol() 535 eapol_sm_process_erp_finish(wpa_s->eapol, wpabuf_head(fils_wd), in wpas_pasn_wd_fils_rx() 541 if (eapol_sm_failed(wpa_s->eapol)) { in wpas_pasn_wd_fils_rx() 547 ret = eapol_sm_get_key(wpa_s->eapol, rmsk, rmsk_len); in wpas_pasn_wd_fils_rx() 551 ret = eapol_sm_get_key(wpa_s->eapol, rmsk, rmsk_len); in wpas_pasn_wd_fils_rx()
|
D | wpa_supplicant.c | 327 eapol_sm_notify_portControl(wpa_s->eapol, ForceAuthorized); in wpa_supplicant_initiate_eapol() 328 eapol_sm_notify_eap_success(wpa_s->eapol, true); in wpa_supplicant_initiate_eapol() 329 eapol_sm_notify_eap_fail(wpa_s->eapol, false); in wpa_supplicant_initiate_eapol() 334 eapol_sm_notify_eap_success(wpa_s->eapol, false); in wpa_supplicant_initiate_eapol() 335 eapol_sm_notify_eap_fail(wpa_s->eapol, false); in wpa_supplicant_initiate_eapol() 339 eapol_sm_notify_portControl(wpa_s->eapol, ForceAuthorized); in wpa_supplicant_initiate_eapol() 341 eapol_sm_notify_portControl(wpa_s->eapol, Auto); in wpa_supplicant_initiate_eapol() 383 eapol_sm_notify_config(wpa_s->eapol, &ssid->eap, &eapol_conf); in wpa_supplicant_initiate_eapol() 535 eapol_sm_register_scard_ctx(wpa_s->eapol, NULL); in wpa_supplicant_cleanup() 577 eapol_sm_deinit(wpa_s->eapol); in wpa_supplicant_cleanup() [all …]
|
D | wpas_glue.c | 287 static void wpa_supplicant_eapol_cb(struct eapol_sm *eapol, in wpa_supplicant_eapol_cb() argument 331 res = eapol_sm_get_key(eapol, buf, 2 * PMK_LEN); in wpa_supplicant_eapol_cb() 340 res = eapol_sm_get_key(eapol, pmk, PMK_LEN); in wpa_supplicant_eapol_cb() 346 res = eapol_sm_get_key(eapol, pmk, 16); in wpa_supplicant_eapol_cb() 1003 wpa_s->mnc_len = eapol_sm_get_eap_proxy_imsi(wpa_s->eapol, -1, in wpa_supplicant_eap_proxy_cb() 1203 wpa_s->eapol = eapol_sm_init(ctx); in wpa_supplicant_init_eapol() 1204 if (wpa_s->eapol == NULL) { in wpa_supplicant_init_eapol()
|
D | events.c | 248 eapol_sm_invalidate_cached_session(wpa_s->eapol); in wpa_supplicant_select_config() 326 eapol_sm_notify_portEnabled(wpa_s->eapol, false); in wpa_supplicant_mark_disassoc() 327 eapol_sm_notify_portValid(wpa_s->eapol, false); in wpa_supplicant_mark_disassoc() 331 eapol_sm_notify_eap_success(wpa_s->eapol, false); in wpa_supplicant_mark_disassoc() 335 eapol_sm_notify_config(wpa_s->eapol, NULL, NULL); in wpa_supplicant_mark_disassoc() 377 eapol_sm_notify_pmkid_attempt(wpa_s->eapol); in wpa_find_assoc_pmkid() 491 eapol_sm_register_scard_ctx(wpa_s->eapol, wpa_s->scard); in wpa_supplicant_scard_init() 3381 eapol_sm_notify_portEnabled(wpa_s->eapol, false); in wpa_supplicant_event_assoc() 3382 eapol_sm_notify_portValid(wpa_s->eapol, false); in wpa_supplicant_event_assoc() 3388 eapol_sm_notify_eap_success(wpa_s->eapol, false); in wpa_supplicant_event_assoc() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/rsn_supp/ |
D | preauth.c | 73 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()
|
D | wpa.c | 162 eapol_sm_notify_tx_eapol_key(sm->eapol); in wpa_eapol_key_send() 290 eapol_sm_notify_cached(sm->eapol); in wpa_supplicant_get_pmk() 306 } else if (wpa_key_mgmt_wpa_ieee8021x(sm->key_mgmt) && sm->eapol) { in wpa_supplicant_get_pmk() 316 res = eapol_sm_get_key(sm->eapol, sm->pmk, pmk_len); in wpa_supplicant_get_pmk() 323 res = eapol_sm_get_key(sm->eapol, sm->pmk, 16); in wpa_supplicant_get_pmk() 329 eapol_sm_get_key(sm->eapol, buf, 2 * PMK_LEN) == 0) { in wpa_supplicant_get_pmk() 742 eapol_sm_notify_portValid(sm->eapol, TRUE); in wpa_supplicant_key_neg_complete() 746 eapol_sm_notify_eap_success(sm->eapol, TRUE); in wpa_supplicant_key_neg_complete() 1543 eapol_sm_notify_portValid(sm->eapol, TRUE); in wpa_supplicant_process_3_of_4() 2293 eapol_sm_notify_lower_layer_success(sm->eapol, 0); in wpa_sm_rx_eapol() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/rsn_supp/ |
D | preauth.c | 82 static void rsn_preauth_eapol_cb(struct eapol_sm *eapol, 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.c | 164 eapol_sm_notify_tx_eapol_key(sm->eapol); in wpa_eapol_key_send() 300 eapol_sm_notify_cached(sm->eapol); in wpa_supplicant_get_pmk() 316 } else if (wpa_key_mgmt_wpa_ieee8021x(sm->key_mgmt) && sm->eapol) { in wpa_supplicant_get_pmk() 326 res = eapol_sm_get_key(sm->eapol, sm->pmk, pmk_len); in wpa_supplicant_get_pmk() 333 res = eapol_sm_get_key(sm->eapol, sm->pmk, 16); in wpa_supplicant_get_pmk() 339 eapol_sm_get_key(sm->eapol, buf, 2 * PMK_LEN) == 0) { in wpa_supplicant_get_pmk() 456 eapol_sm_notify_eap_fail(sm->eapol, true); in wpa_supplicant_get_pmk() 457 eapol_sm_notify_eap_fail(sm->eapol, false); in wpa_supplicant_get_pmk() 866 eapol_sm_notify_portValid(sm->eapol, true); in wpa_supplicant_key_neg_complete() 870 eapol_sm_notify_eap_success(sm->eapol, true); in wpa_supplicant_key_neg_complete() [all …]
|