/hostap-latest/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 | 68 void eapol_auth_deinit(struct eapol_authenticator *eapol); 70 eapol_auth_alloc(struct eapol_authenticator *eapol, const u8 *addr,
|
/hostap-latest/tests/ |
D | README | 37 external file for program input. ap-mgmt-fuzzer, eapol-fuzzer, 38 test-eapol, test-json, test-tls, and test-x509 are examples of such 64 CC=afl-gcc make test-eapol TEST_FUZZ=y 65 mkdir eapol-auth-examples 66 ./test-eapol auth write eapol-auth-examples/auth.msg 67 afl-fuzz -i eapol-auth-examples -o eapol-auth-findings -- $PWD/test-eapol auth read @@ 71 CC=afl-gcc make test-eapol TEST_FUZZ=y 72 mkdir eapol-supp-examples 73 ./test-eapol supp write eapol-supp-examples/supp.msg 74 afl-fuzz -i eapol-supp-examples -o eapol-supp-findings -- $PWD/test-eapol supp read @@ [all …]
|
/hostap-latest/src/ap/ |
D | pmksa_cache_auth.c | 145 struct eapol_state_machine *eapol) in pmksa_cache_from_eapol_data() argument 149 if (eapol == NULL) in pmksa_cache_from_eapol_data() 152 if (eapol->identity) { in pmksa_cache_from_eapol_data() 153 entry->identity = os_malloc(eapol->identity_len); in pmksa_cache_from_eapol_data() 155 entry->identity_len = eapol->identity_len; in pmksa_cache_from_eapol_data() 156 os_memcpy(entry->identity, eapol->identity, in pmksa_cache_from_eapol_data() 157 eapol->identity_len); in pmksa_cache_from_eapol_data() 161 if (eapol->radius_cui) in pmksa_cache_from_eapol_data() 162 entry->cui = wpabuf_dup(eapol->radius_cui); in pmksa_cache_from_eapol_data() 165 radius_copy_class(&entry->radius_class, &eapol->radius_class); in pmksa_cache_from_eapol_data() [all …]
|
D | pmksa_cache_auth.h | 59 struct eapol_state_machine *eapol, int akmp); 64 struct eapol_state_machine *eapol, int akmp); 73 struct eapol_state_machine *eapol);
|
D | ieee802_11_auth.c | 51 u8 *eapol; member 109 os_free(query->eapol); in hostapd_acl_query_free() 184 if (query->eapol && in hostapd_radius_acl_query() 188 query->eapol, query->eapol_len)) { in hostapd_radius_acl_query() 723 const u8 *eapol, size_t eapol_len) in hostapd_acl_req_radius_psk() argument 737 if (eapol) { in hostapd_acl_req_radius_psk() 738 query->eapol = os_memdup(eapol, eapol_len); in hostapd_acl_req_radius_psk()
|
D | ieee802_1x.c | 309 struct eapol_authenticator *eapol = hapd->eapol_auth; in ieee802_1x_tx_key() local 325 if (eapol->default_wep_key) { in ieee802_1x_tx_key() 326 ieee802_1x_tx_key_one(hapd, sta, eapol->default_wep_key_idx, 1, in ieee802_1x_tx_key() 327 eapol->default_wep_key, in ieee802_1x_tx_key() 2221 struct eapol_authenticator *eapol = hapd->eapol_auth; in ieee802_1x_rekey_broadcast() local 2226 os_free(eapol->default_wep_key); in ieee802_1x_rekey_broadcast() 2227 eapol->default_wep_key = os_malloc(hapd->conf->default_wep_key_len); in ieee802_1x_rekey_broadcast() 2228 if (!eapol->default_wep_key || in ieee802_1x_rekey_broadcast() 2229 random_get_bytes(eapol->default_wep_key, in ieee802_1x_rekey_broadcast() 2232 os_free(eapol->default_wep_key); in ieee802_1x_rekey_broadcast() [all …]
|
D | ieee802_11_auth.h | 41 const u8 *eapol, size_t eapol_len);
|
/hostap-latest/tests/fuzzing/eapol-supp/ |
D | eapol-supp.c | 23 struct eapol_sm *eapol; member 36 eapol_sm_notify_portEnabled(ctx->eapol, true); in test_send_eapol() 47 if (eapol_sm_rx_eapol(ctx->eapol, src, ctx->data, ctx->data_len, in test_send_eapol() 159 arg->eapol = eapol_sm_init(ctx); in init_eapol() 160 return arg->eapol ? 0 : -1; in init_eapol() 193 if (ctx.eapol) in LLVMFuzzerTestOneInput() 194 eapol_sm_deinit(ctx.eapol); in LLVMFuzzerTestOneInput()
|
D | Makefile | 1 ALL=eapol-supp 16 OBJS += eapol-supp.o 24 eapol-supp: $(OBJS) $(LIBS) 28 rm -f eapol-supp *~ *.o *.d ../*~ ../*.o ../*.d
|
D | .gitignore | 1 eapol-supp
|
/hostap-latest/tests/fuzzing/eapol-key-supp/ |
D | Makefile | 1 ALL=eapol-key-supp 18 OBJS += eapol-key-supp.o 26 eapol-key-supp: $(OBJS) $(LIBS) 30 rm -f eapol-key-supp *~ *.o *.d ../*~ ../*.o ../*.d
|
D | .gitignore | 1 eapol-key-supp
|
/hostap-latest/tests/fuzzing/eapol-key-auth/ |
D | Makefile | 1 ALL=eapol-key-auth 22 OBJS += eapol-key-auth.o 30 eapol-key-auth: $(OBJS) $(LIBS) 34 rm -f eapol-key-auth *~ *.o *.d ../*~ ../*.o ../*.d
|
D | .gitignore | 1 eapol-key-auth
|
/hostap-latest/wlantest/ |
D | rx_eapol.c | 93 const struct ieee802_1x_hdr *eapol; in rx_data_eapol_key_1_of_4() local 119 eapol = (const struct ieee802_1x_hdr *) data; in rx_data_eapol_key_1_of_4() 120 hdr = (const struct wpa_eapol_key *) (eapol + 1); in rx_data_eapol_key_1_of_4() 359 const struct ieee802_1x_hdr *eapol; in rx_data_eapol_key_2_of_4() local 386 eapol = (const struct ieee802_1x_hdr *) data; in rx_data_eapol_key_2_of_4() 387 hdr = (const struct wpa_eapol_key *) (eapol + 1); in rx_data_eapol_key_2_of_4() 935 const struct ieee802_1x_hdr *eapol; in rx_data_eapol_key_3_of_4() local 970 eapol = (const struct ieee802_1x_hdr *) data; in rx_data_eapol_key_3_of_4() 971 hdr = (const struct wpa_eapol_key *) (eapol + 1); in rx_data_eapol_key_3_of_4() 1035 u8 buf[24 + 8 + sizeof(*eapol) + sizeof(*hdr) + 64]; in rx_data_eapol_key_3_of_4() [all …]
|
/hostap-latest/wpa_supplicant/ |
D | eapol_test.c | 372 if (eapol_sm_get_key(e->wpa_s->eapol, pmk, PMK_LEN) == 0) { in eapol_test_compare_pmk() 381 eapol_sm_get_key(e->wpa_s->eapol, pmk, 16) == 0) { in eapol_test_compare_pmk() 399 sess_id = eapol_sm_get_session_id(e->wpa_s->eapol, &sess_id_len); in eapol_test_compare_pmk() 425 static void eapol_sm_cb(struct eapol_sm *eapol, enum eapol_supp_result result, in eapol_sm_cb() argument 614 wpa_s->eapol = eapol_sm_init(ctx); in test_eapol() 615 if (wpa_s->eapol == NULL) { in test_eapol() 647 eapol_sm_notify_config(wpa_s->eapol, &ssid->eap, &eapol_conf); in test_eapol() 648 eapol_sm_register_scard_ctx(wpa_s->eapol, wpa_s->scard); in test_eapol() 651 eapol_sm_notify_portValid(wpa_s->eapol, false); in test_eapol() 653 eapol_sm_notify_portEnabled(wpa_s->eapol, true); in test_eapol() [all …]
|
D | pasn_supplicant.c | 437 eapol_sm_notify_eap_success(pasn->eapol, false); in wpas_pasn_initiate_eapol() 438 eapol_sm_notify_eap_fail(pasn->eapol, false); in wpas_pasn_initiate_eapol() 439 eapol_sm_notify_portControl(pasn->eapol, Auto); in wpas_pasn_initiate_eapol() 445 eapol_sm_notify_config(pasn->eapol, &ssid->eap, &eapol_conf); in wpas_pasn_initiate_eapol() 619 pasn->eapol = wpa_s->eapol; in wpas_pasn_auth_start_cb()
|
D | wpa_supplicant.c | 326 eapol_sm_notify_portControl(wpa_s->eapol, ForceAuthorized); in wpa_supplicant_initiate_eapol() 327 eapol_sm_notify_eap_success(wpa_s->eapol, true); in wpa_supplicant_initiate_eapol() 328 eapol_sm_notify_eap_fail(wpa_s->eapol, false); in wpa_supplicant_initiate_eapol() 333 eapol_sm_notify_eap_success(wpa_s->eapol, false); in wpa_supplicant_initiate_eapol() 334 eapol_sm_notify_eap_fail(wpa_s->eapol, false); in wpa_supplicant_initiate_eapol() 338 eapol_sm_notify_portControl(wpa_s->eapol, ForceAuthorized); in wpa_supplicant_initiate_eapol() 340 eapol_sm_notify_portControl(wpa_s->eapol, Auto); in wpa_supplicant_initiate_eapol() 382 eapol_sm_notify_config(wpa_s->eapol, &ssid->eap, &eapol_conf); in wpa_supplicant_initiate_eapol() 538 eapol_sm_register_scard_ctx(wpa_s->eapol, NULL); in wpa_supplicant_cleanup() 580 eapol_sm_deinit(wpa_s->eapol); in wpa_supplicant_cleanup() [all …]
|
D | wpas_glue.c | 283 static void wpa_supplicant_eapol_cb(struct eapol_sm *eapol, in wpa_supplicant_eapol_cb() argument 339 res = eapol_sm_get_key(eapol, buf, 2 * PMK_LEN); in wpa_supplicant_eapol_cb() 348 res = eapol_sm_get_key(eapol, pmk, pmk_len); in wpa_supplicant_eapol_cb() 354 res = eapol_sm_get_key(eapol, pmk, 16); in wpa_supplicant_eapol_cb() 1021 wpa_s->mnc_len = eapol_sm_get_eap_proxy_imsi(wpa_s->eapol, -1, in wpa_supplicant_eap_proxy_cb() 1239 wpa_s->eapol = eapol_sm_init(ctx); in wpa_supplicant_init_eapol() 1240 if (wpa_s->eapol == NULL) { in wpa_supplicant_init_eapol()
|
D | wpas_kay.c | 281 sm = wpa_s->eapol; in ieee802_1x_auth_get_msk() 331 sid = eapol_sm_get_session_id(wpa_s->eapol, &sid_len); in ieee802_1x_notify_create_actor()
|
/hostap-latest/src/rsn_supp/ |
D | preauth.c | 84 static void rsn_preauth_eapol_cb(struct eapol_sm *eapol, in rsn_preauth_eapol_cb() argument 94 res = eapol_sm_get_key(eapol, pmk, PMK_LEN); in rsn_preauth_eapol_cb() 100 res = eapol_sm_get_key(eapol, pmk, 16); in rsn_preauth_eapol_cb()
|
/hostap-latest/tests/hwsim/ |
D | test_ap_psk.py | 1400 eapol = {} 1401 eapol['version'] = version 1402 eapol['type'] = type 1403 eapol['length'] = length 1404 eapol['payload'] = payload 1407 (eapol['descr_type'],) = struct.unpack('B', payload[0:1]) 1409 if eapol['descr_type'] == 2 or eapol['descr_type'] == 254: 1412 eapol['rsn_key_info'] = key_info 1413 eapol['rsn_key_len'] = key_len 1414 eapol['rsn_replay_counter'] = payload[4:12] [all …]
|
/hostap-latest/tests/fuzzing/pasn-resp/ |
D | pasn-resp.c | 30 struct eapol_state_machine *eapol, int akmp) in pmksa_cache_auth_add() argument
|
/hostap-latest/src/pasn/ |
D | pasn_initiator.c | 207 erp_msg = eapol_sm_build_erp_reauth_start(pasn->eapol); in wpas_pasn_fils_build_auth() 398 eapol_sm_process_erp_finish(pasn->eapol, wpabuf_head(fils_wd), in wpas_pasn_wd_fils_rx() 404 if (eapol_sm_failed(pasn->eapol)) { in wpas_pasn_wd_fils_rx() 410 ret = eapol_sm_get_key(pasn->eapol, rmsk, rmsk_len); in wpas_pasn_wd_fils_rx() 414 ret = eapol_sm_get_key(pasn->eapol, rmsk, rmsk_len); in wpas_pasn_wd_fils_rx()
|