/external/wpa_supplicant_8/hostapd/src/ap/ |
H A D | wpa_auth.c | 23 #include "wpa_auth.h" 37 static void wpa_group_sm_step(struct wpa_authenticator *wpa_auth, 40 static int wpa_gtk_update(struct wpa_authenticator *wpa_auth, 42 static int wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth, 58 struct wpa_authenticator *wpa_auth, const u8 *addr) 60 if (wpa_auth->cb.mic_failure_report) 61 return wpa_auth->cb.mic_failure_report(wpa_auth->cb.ctx, addr); 66 static inline void wpa_auth_set_eapol(struct wpa_authenticator *wpa_auth, argument 70 if (wpa_auth 57 wpa_auth_mic_failure_report( struct wpa_authenticator *wpa_auth, const u8 *addr) argument 75 wpa_auth_get_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, wpa_eapol_variable var) argument 84 wpa_auth_get_psk(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *prev_psk) argument 93 wpa_auth_get_msk(struct wpa_authenticator *wpa_auth, const u8 *addr, u8 *msk, size_t *len) argument 102 wpa_auth_set_key(struct wpa_authenticator *wpa_auth, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len) argument 114 wpa_auth_get_seqnum(struct wpa_authenticator *wpa_auth, const u8 *addr, int idx, u8 *seq) argument 124 wpa_auth_send_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *data, size_t data_len, int encrypt) argument 134 wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_state_machine *sm, void *ctx), void *cb_ctx) argument 144 wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_authenticator *a, void *ctx), void *cb_ctx) argument 154 wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *txt) argument 163 wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *fmt, ...) argument 188 wpa_sta_disconnect(struct wpa_authenticator *wpa_auth, const u8 *addr) argument 216 struct wpa_authenticator *wpa_auth = eloop_ctx; local 236 struct wpa_authenticator *wpa_auth = eloop_ctx; local 257 struct wpa_authenticator *wpa_auth = eloop_ctx; local 277 struct wpa_authenticator *wpa_auth = ctx; local 282 wpa_group_init_gmk_and_counter(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 314 wpa_group_init(struct wpa_authenticator *wpa_auth, int vlan_id, int delay_init) argument 372 struct wpa_authenticator *wpa_auth; local 428 wpa_init_keys(struct wpa_authenticator *wpa_auth) argument 445 wpa_deinit(struct wpa_authenticator *wpa_auth) argument 482 wpa_reconfig(struct wpa_authenticator *wpa_auth, struct wpa_auth_config *conf) argument 511 wpa_auth_sta_init(struct wpa_authenticator *wpa_auth, const u8 *addr) argument 527 wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm) argument 657 ft_check_msg_2_of_4(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_ie_parse *kde) argument 706 wpa_receive_error_report(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int group) argument 739 wpa_receive(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, u8 *data, size_t data_len) argument 1199 struct wpa_authenticator *wpa_auth = eloop_ctx; local 1209 __wpa_send_eapol(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int key_info, const u8 *key_rsc, const u8 *nonce, const u8 *kde, size_t kde_len, int keyidx, int encr, int force_version) argument 1360 wpa_send_eapol(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int key_info, const u8 *key_rsc, const u8 *nonce, const u8 *kde, size_t kde_len, int keyidx, int encr) argument 1567 wpa_group_ensure_init(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2100 struct wpa_authenticator *wpa_auth = sm->wpa_auth; local 2343 wpa_gtk_update(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2375 wpa_group_gtk_init(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2510 wpa_group_setkeys(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2545 wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2569 wpa_group_setkeysdone(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2584 wpa_group_sm_step(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2660 wpa_gtk_rekey(struct wpa_authenticator *wpa_auth) argument 2695 wpa_get_mib(struct wpa_authenticator *wpa_auth, char *buf, size_t buflen) argument 2836 wpa_auth_countermeasures_start(struct wpa_authenticator *wpa_auth) argument 2895 wpa_auth_get_wpa_ie(struct wpa_authenticator *wpa_auth, size_t *len) argument 2920 wpa_auth_pmksa_add_preauth(struct wpa_authenticator *wpa_auth, const u8 *pmk, size_t len, const u8 *sta_addr, int session_timeout, struct eapol_state_machine *eapol) argument 2938 wpa_auth_add_group(struct wpa_authenticator *wpa_auth, int vlan_id) argument 2989 wpa_auth_eapol_key_tx_status(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int ack) argument [all...] |
H A D | peerkey_auth.c | 16 #include "wpa_auth.h" 25 struct wpa_authenticator *wpa_auth = eloop_ctx; 50 static void wpa_smk_send_error(struct wpa_authenticator *wpa_auth, argument 59 wpa_auth_logger(wpa_auth, sm->addr, LOGGER_DEBUG, 74 __wpa_send_eapol(wpa_auth, sm, 81 void wpa_smk_m1(struct wpa_authenticator *wpa_auth, argument 106 if (wpa_auth_for_each_sta(wpa_auth, wpa_stsl_select_sta, &search) == 111 wpa_smk_send_error(wpa_auth, sm, kde.mac_addr, STK_MUI_SMK, 113 /* FIX: wpa_stsl_remove(wpa_auth, neg); */ 133 wpa_auth_logger(wpa_auth, searc 145 wpa_send_smk_m4(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key, struct wpa_eapol_ie_parse *kde, const u8 *smk) argument 198 wpa_send_smk_m5(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key, struct wpa_eapol_ie_parse *kde, const u8 *smk, const u8 *peer) argument 255 wpa_smk_m3(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key) argument 326 wpa_smk_error(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key) argument 369 wpa_stsl_remove(struct wpa_authenticator *wpa_auth, struct wpa_stsl_negotiation *neg) argument [all...] |
H A D | wpa_auth_ie.c | 16 #include "wpa_auth.h" 298 int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth) argument 305 if (wpa_auth->conf.wpa & WPA_PROTO_RSN) { 306 res = wpa_write_rsn_ie(&wpa_auth->conf, 313 if (wpa_key_mgmt_ft(wpa_auth->conf.wpa_key_mgmt)) { 314 res = wpa_write_mdie(&wpa_auth->conf, pos, 321 if (wpa_auth->conf.wpa & WPA_PROTO_WPA) { 322 res = wpa_write_wpa_ie(&wpa_auth->conf, 329 os_free(wpa_auth->wpa_ie); 330 wpa_auth 376 wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, const u8 *wpa_ie, size_t wpa_ie_len, const u8 *mdie, size_t mdie_len) argument [all...] |
H A D | wpa_auth_ft.c | 19 #include "wpa_auth.h" 25 static int wpa_ft_rrb_send(struct wpa_authenticator *wpa_auth, const u8 *dst, argument 28 if (wpa_auth->cb.send_ether == NULL) 31 return wpa_auth->cb.send_ether(wpa_auth->cb.ctx, dst, ETH_P_RRB, 36 static int wpa_ft_action_send(struct wpa_authenticator *wpa_auth, argument 39 if (wpa_auth->cb.send_ft_action == NULL) 41 return wpa_auth->cb.send_ft_action(wpa_auth->cb.ctx, dst, 47 wpa_ft_add_sta(struct wpa_authenticator *wpa_auth, cons argument 55 wpa_ft_add_tspec(struct wpa_authenticator *wpa_auth, const u8 *sta_addr, u8 *tspec_ie, size_t tspec_ielen) argument 196 wpa_ft_store_pmk_r0(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r0, const u8 *pmk_r0_name, int pairwise) argument 221 wpa_ft_fetch_pmk_r0(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r0_name, u8 *pmk_r0, int *pairwise) argument 246 wpa_ft_store_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r1, const u8 *pmk_r1_name, int pairwise) argument 271 wpa_ft_fetch_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r1_name, u8 *pmk_r1, int *pairwise) argument 296 wpa_ft_pull_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *s1kh_id, const u8 *r0kh_id, size_t r0kh_id_len, const u8 *pmk_r0_name) argument 388 wpa_auth_get_seqnum(struct wpa_authenticator *wpa_auth, const u8 *addr, int idx, u8 *seq) argument 739 wpa_auth_set_key(struct wpa_authenticator *wpa_auth, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len) argument 1183 wpa_ft_rrb_rx_request(struct wpa_authenticator *wpa_auth, const u8 *current_ap, const u8 *sta_addr, const u8 *body, size_t len) argument 1245 wpa_ft_rrb_rx_pull(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument 1329 wpa_ft_rrb_rx_resp(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument 1395 wpa_ft_rrb_rx_push(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument 1469 wpa_ft_rrb_rx(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument 1589 wpa_ft_generate_pmk_r1(struct wpa_authenticator *wpa_auth, struct wpa_ft_pmk_r0_sa *pmk_r0, struct ft_remote_r1kh *r1kh, const u8 *s1kh_id, int pairwise) argument 1625 wpa_ft_push_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *addr) argument [all...] |
H A D | wpa_auth.h | 209 int wpa_init_keys(struct wpa_authenticator *wpa_auth); 210 void wpa_deinit(struct wpa_authenticator *wpa_auth); 211 int wpa_reconfig(struct wpa_authenticator *wpa_auth, 221 int wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth, 227 wpa_auth_sta_init(struct wpa_authenticator *wpa_auth, const u8 *addr); 228 int wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth, 232 void wpa_receive(struct wpa_authenticator *wpa_auth, 242 void wpa_gtk_rekey(struct wpa_authenticator *wpa_auth); 243 int wpa_get_mib(struct wpa_authenticator *wpa_auth, char *buf, size_t buflen); 245 void wpa_auth_countermeasures_start(struct wpa_authenticator *wpa_auth); [all...] |
H A D | wpa_auth_i.h | 25 struct wpa_authenticator *wpa_auth; member in struct:wpa_state_machine 191 void wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr, 193 void wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr, 195 void __wpa_send_eapol(struct wpa_authenticator *wpa_auth, 200 int wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth, 203 int wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth, 208 int wpa_stsl_remove(struct wpa_authenticator *wpa_auth, 210 void wpa_smk_error(struct wpa_authenticator *wpa_auth, 212 void wpa_smk_m1(struct wpa_authenticator *wpa_auth, 214 void wpa_smk_m3(struct wpa_authenticator *wpa_auth, [all...] |
H A D | tkip_countermeasures.c | 18 #include "wpa_auth.h" 41 wpa_auth_countermeasures_start(hapd->wpa_auth); 44 wpa_gtk_rekey(hapd->wpa_auth);
|
H A D | wpa_auth_ie.h | 48 int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth);
|
H A D | wpa_auth_glue.c | 26 #include "wpa_auth.h" 311 if (iface->bss[i]->wpa_auth && 312 data->cb(iface->bss[i]->wpa_auth, data->cb_ctx)) 362 wpa_ft_rrb_rx(hapd->wpa_auth, 469 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, sta->addr); 490 wpa_ft_rrb_rx(hapd->wpa_auth, ethhdr->h_source, buf + sizeof(*ethhdr), 537 hapd->wpa_auth = wpa_init(hapd->own_addr, &_conf, &cb); 538 if (hapd->wpa_auth == NULL) { 549 wpa_ie = wpa_auth_get_wpa_ie(hapd->wpa_auth, &wpa_ie_len); 587 wpa_reconfig(hapd->wpa_auth, [all...] |
/external/wpa_supplicant_8/src/ap/ |
H A D | wpa_auth.c | 23 #include "wpa_auth.h" 37 static void wpa_group_sm_step(struct wpa_authenticator *wpa_auth, 40 static int wpa_gtk_update(struct wpa_authenticator *wpa_auth, 42 static int wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth, 58 struct wpa_authenticator *wpa_auth, const u8 *addr) 60 if (wpa_auth->cb.mic_failure_report) 61 return wpa_auth->cb.mic_failure_report(wpa_auth->cb.ctx, addr); 66 static inline void wpa_auth_set_eapol(struct wpa_authenticator *wpa_auth, argument 70 if (wpa_auth 57 wpa_auth_mic_failure_report( struct wpa_authenticator *wpa_auth, const u8 *addr) argument 75 wpa_auth_get_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, wpa_eapol_variable var) argument 84 wpa_auth_get_psk(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *prev_psk) argument 93 wpa_auth_get_msk(struct wpa_authenticator *wpa_auth, const u8 *addr, u8 *msk, size_t *len) argument 102 wpa_auth_set_key(struct wpa_authenticator *wpa_auth, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len) argument 114 wpa_auth_get_seqnum(struct wpa_authenticator *wpa_auth, const u8 *addr, int idx, u8 *seq) argument 124 wpa_auth_send_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *data, size_t data_len, int encrypt) argument 134 wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_state_machine *sm, void *ctx), void *cb_ctx) argument 144 wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_authenticator *a, void *ctx), void *cb_ctx) argument 154 wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *txt) argument 163 wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *fmt, ...) argument 188 wpa_sta_disconnect(struct wpa_authenticator *wpa_auth, const u8 *addr) argument 216 struct wpa_authenticator *wpa_auth = eloop_ctx; local 236 struct wpa_authenticator *wpa_auth = eloop_ctx; local 257 struct wpa_authenticator *wpa_auth = eloop_ctx; local 277 struct wpa_authenticator *wpa_auth = ctx; local 282 wpa_group_init_gmk_and_counter(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 314 wpa_group_init(struct wpa_authenticator *wpa_auth, int vlan_id, int delay_init) argument 372 struct wpa_authenticator *wpa_auth; local 428 wpa_init_keys(struct wpa_authenticator *wpa_auth) argument 445 wpa_deinit(struct wpa_authenticator *wpa_auth) argument 482 wpa_reconfig(struct wpa_authenticator *wpa_auth, struct wpa_auth_config *conf) argument 511 wpa_auth_sta_init(struct wpa_authenticator *wpa_auth, const u8 *addr) argument 527 wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm) argument 657 ft_check_msg_2_of_4(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_ie_parse *kde) argument 706 wpa_receive_error_report(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int group) argument 739 wpa_receive(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, u8 *data, size_t data_len) argument 1199 struct wpa_authenticator *wpa_auth = eloop_ctx; local 1209 __wpa_send_eapol(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int key_info, const u8 *key_rsc, const u8 *nonce, const u8 *kde, size_t kde_len, int keyidx, int encr, int force_version) argument 1360 wpa_send_eapol(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int key_info, const u8 *key_rsc, const u8 *nonce, const u8 *kde, size_t kde_len, int keyidx, int encr) argument 1567 wpa_group_ensure_init(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2100 struct wpa_authenticator *wpa_auth = sm->wpa_auth; local 2343 wpa_gtk_update(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2375 wpa_group_gtk_init(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2510 wpa_group_setkeys(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2545 wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2569 wpa_group_setkeysdone(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2584 wpa_group_sm_step(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2660 wpa_gtk_rekey(struct wpa_authenticator *wpa_auth) argument 2695 wpa_get_mib(struct wpa_authenticator *wpa_auth, char *buf, size_t buflen) argument 2836 wpa_auth_countermeasures_start(struct wpa_authenticator *wpa_auth) argument 2895 wpa_auth_get_wpa_ie(struct wpa_authenticator *wpa_auth, size_t *len) argument 2920 wpa_auth_pmksa_add_preauth(struct wpa_authenticator *wpa_auth, const u8 *pmk, size_t len, const u8 *sta_addr, int session_timeout, struct eapol_state_machine *eapol) argument 2938 wpa_auth_add_group(struct wpa_authenticator *wpa_auth, int vlan_id) argument 2989 wpa_auth_eapol_key_tx_status(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int ack) argument [all...] |
H A D | peerkey_auth.c | 16 #include "wpa_auth.h" 25 struct wpa_authenticator *wpa_auth = eloop_ctx; 50 static void wpa_smk_send_error(struct wpa_authenticator *wpa_auth, argument 59 wpa_auth_logger(wpa_auth, sm->addr, LOGGER_DEBUG, 74 __wpa_send_eapol(wpa_auth, sm, 81 void wpa_smk_m1(struct wpa_authenticator *wpa_auth, argument 106 if (wpa_auth_for_each_sta(wpa_auth, wpa_stsl_select_sta, &search) == 111 wpa_smk_send_error(wpa_auth, sm, kde.mac_addr, STK_MUI_SMK, 113 /* FIX: wpa_stsl_remove(wpa_auth, neg); */ 133 wpa_auth_logger(wpa_auth, searc 145 wpa_send_smk_m4(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key, struct wpa_eapol_ie_parse *kde, const u8 *smk) argument 198 wpa_send_smk_m5(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key, struct wpa_eapol_ie_parse *kde, const u8 *smk, const u8 *peer) argument 255 wpa_smk_m3(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key) argument 326 wpa_smk_error(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key) argument 369 wpa_stsl_remove(struct wpa_authenticator *wpa_auth, struct wpa_stsl_negotiation *neg) argument [all...] |
H A D | wpa_auth_ie.c | 16 #include "wpa_auth.h" 298 int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth) argument 305 if (wpa_auth->conf.wpa & WPA_PROTO_RSN) { 306 res = wpa_write_rsn_ie(&wpa_auth->conf, 313 if (wpa_key_mgmt_ft(wpa_auth->conf.wpa_key_mgmt)) { 314 res = wpa_write_mdie(&wpa_auth->conf, pos, 321 if (wpa_auth->conf.wpa & WPA_PROTO_WPA) { 322 res = wpa_write_wpa_ie(&wpa_auth->conf, 329 os_free(wpa_auth->wpa_ie); 330 wpa_auth 376 wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, const u8 *wpa_ie, size_t wpa_ie_len, const u8 *mdie, size_t mdie_len) argument [all...] |
H A D | wpa_auth_ft.c | 19 #include "wpa_auth.h" 25 static int wpa_ft_rrb_send(struct wpa_authenticator *wpa_auth, const u8 *dst, argument 28 if (wpa_auth->cb.send_ether == NULL) 31 return wpa_auth->cb.send_ether(wpa_auth->cb.ctx, dst, ETH_P_RRB, 36 static int wpa_ft_action_send(struct wpa_authenticator *wpa_auth, argument 39 if (wpa_auth->cb.send_ft_action == NULL) 41 return wpa_auth->cb.send_ft_action(wpa_auth->cb.ctx, dst, 47 wpa_ft_add_sta(struct wpa_authenticator *wpa_auth, cons argument 55 wpa_ft_add_tspec(struct wpa_authenticator *wpa_auth, const u8 *sta_addr, u8 *tspec_ie, size_t tspec_ielen) argument 196 wpa_ft_store_pmk_r0(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r0, const u8 *pmk_r0_name, int pairwise) argument 221 wpa_ft_fetch_pmk_r0(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r0_name, u8 *pmk_r0, int *pairwise) argument 246 wpa_ft_store_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r1, const u8 *pmk_r1_name, int pairwise) argument 271 wpa_ft_fetch_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r1_name, u8 *pmk_r1, int *pairwise) argument 296 wpa_ft_pull_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *s1kh_id, const u8 *r0kh_id, size_t r0kh_id_len, const u8 *pmk_r0_name) argument 388 wpa_auth_get_seqnum(struct wpa_authenticator *wpa_auth, const u8 *addr, int idx, u8 *seq) argument 739 wpa_auth_set_key(struct wpa_authenticator *wpa_auth, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len) argument 1183 wpa_ft_rrb_rx_request(struct wpa_authenticator *wpa_auth, const u8 *current_ap, const u8 *sta_addr, const u8 *body, size_t len) argument 1245 wpa_ft_rrb_rx_pull(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument 1329 wpa_ft_rrb_rx_resp(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument 1395 wpa_ft_rrb_rx_push(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument 1469 wpa_ft_rrb_rx(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument 1589 wpa_ft_generate_pmk_r1(struct wpa_authenticator *wpa_auth, struct wpa_ft_pmk_r0_sa *pmk_r0, struct ft_remote_r1kh *r1kh, const u8 *s1kh_id, int pairwise) argument 1625 wpa_ft_push_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *addr) argument [all...] |
H A D | wpa_auth.h | 209 int wpa_init_keys(struct wpa_authenticator *wpa_auth); 210 void wpa_deinit(struct wpa_authenticator *wpa_auth); 211 int wpa_reconfig(struct wpa_authenticator *wpa_auth, 221 int wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth, 227 wpa_auth_sta_init(struct wpa_authenticator *wpa_auth, const u8 *addr); 228 int wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth, 232 void wpa_receive(struct wpa_authenticator *wpa_auth, 242 void wpa_gtk_rekey(struct wpa_authenticator *wpa_auth); 243 int wpa_get_mib(struct wpa_authenticator *wpa_auth, char *buf, size_t buflen); 245 void wpa_auth_countermeasures_start(struct wpa_authenticator *wpa_auth); [all...] |
H A D | wpa_auth_i.h | 25 struct wpa_authenticator *wpa_auth; member in struct:wpa_state_machine 191 void wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr, 193 void wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr, 195 void __wpa_send_eapol(struct wpa_authenticator *wpa_auth, 200 int wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth, 203 int wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth, 208 int wpa_stsl_remove(struct wpa_authenticator *wpa_auth, 210 void wpa_smk_error(struct wpa_authenticator *wpa_auth, 212 void wpa_smk_m1(struct wpa_authenticator *wpa_auth, 214 void wpa_smk_m3(struct wpa_authenticator *wpa_auth, [all...] |
H A D | tkip_countermeasures.c | 18 #include "wpa_auth.h" 41 wpa_auth_countermeasures_start(hapd->wpa_auth); 44 wpa_gtk_rekey(hapd->wpa_auth);
|
H A D | wpa_auth_ie.h | 48 int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth);
|
/external/wpa_supplicant_8/wpa_supplicant/src/ap/ |
H A D | wpa_auth.c | 23 #include "wpa_auth.h" 37 static void wpa_group_sm_step(struct wpa_authenticator *wpa_auth, 40 static int wpa_gtk_update(struct wpa_authenticator *wpa_auth, 42 static int wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth, 58 struct wpa_authenticator *wpa_auth, const u8 *addr) 60 if (wpa_auth->cb.mic_failure_report) 61 return wpa_auth->cb.mic_failure_report(wpa_auth->cb.ctx, addr); 66 static inline void wpa_auth_set_eapol(struct wpa_authenticator *wpa_auth, argument 70 if (wpa_auth 57 wpa_auth_mic_failure_report( struct wpa_authenticator *wpa_auth, const u8 *addr) argument 75 wpa_auth_get_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, wpa_eapol_variable var) argument 84 wpa_auth_get_psk(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *prev_psk) argument 93 wpa_auth_get_msk(struct wpa_authenticator *wpa_auth, const u8 *addr, u8 *msk, size_t *len) argument 102 wpa_auth_set_key(struct wpa_authenticator *wpa_auth, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len) argument 114 wpa_auth_get_seqnum(struct wpa_authenticator *wpa_auth, const u8 *addr, int idx, u8 *seq) argument 124 wpa_auth_send_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *data, size_t data_len, int encrypt) argument 134 wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_state_machine *sm, void *ctx), void *cb_ctx) argument 144 wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_authenticator *a, void *ctx), void *cb_ctx) argument 154 wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *txt) argument 163 wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *fmt, ...) argument 188 wpa_sta_disconnect(struct wpa_authenticator *wpa_auth, const u8 *addr) argument 216 struct wpa_authenticator *wpa_auth = eloop_ctx; local 236 struct wpa_authenticator *wpa_auth = eloop_ctx; local 257 struct wpa_authenticator *wpa_auth = eloop_ctx; local 277 struct wpa_authenticator *wpa_auth = ctx; local 282 wpa_group_init_gmk_and_counter(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 314 wpa_group_init(struct wpa_authenticator *wpa_auth, int vlan_id, int delay_init) argument 372 struct wpa_authenticator *wpa_auth; local 428 wpa_init_keys(struct wpa_authenticator *wpa_auth) argument 445 wpa_deinit(struct wpa_authenticator *wpa_auth) argument 482 wpa_reconfig(struct wpa_authenticator *wpa_auth, struct wpa_auth_config *conf) argument 511 wpa_auth_sta_init(struct wpa_authenticator *wpa_auth, const u8 *addr) argument 527 wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm) argument 657 ft_check_msg_2_of_4(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_ie_parse *kde) argument 706 wpa_receive_error_report(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int group) argument 739 wpa_receive(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, u8 *data, size_t data_len) argument 1199 struct wpa_authenticator *wpa_auth = eloop_ctx; local 1209 __wpa_send_eapol(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int key_info, const u8 *key_rsc, const u8 *nonce, const u8 *kde, size_t kde_len, int keyidx, int encr, int force_version) argument 1360 wpa_send_eapol(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int key_info, const u8 *key_rsc, const u8 *nonce, const u8 *kde, size_t kde_len, int keyidx, int encr) argument 1567 wpa_group_ensure_init(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2100 struct wpa_authenticator *wpa_auth = sm->wpa_auth; local 2343 wpa_gtk_update(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2375 wpa_group_gtk_init(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2510 wpa_group_setkeys(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2545 wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2569 wpa_group_setkeysdone(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2584 wpa_group_sm_step(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument 2660 wpa_gtk_rekey(struct wpa_authenticator *wpa_auth) argument 2695 wpa_get_mib(struct wpa_authenticator *wpa_auth, char *buf, size_t buflen) argument 2836 wpa_auth_countermeasures_start(struct wpa_authenticator *wpa_auth) argument 2895 wpa_auth_get_wpa_ie(struct wpa_authenticator *wpa_auth, size_t *len) argument 2920 wpa_auth_pmksa_add_preauth(struct wpa_authenticator *wpa_auth, const u8 *pmk, size_t len, const u8 *sta_addr, int session_timeout, struct eapol_state_machine *eapol) argument 2938 wpa_auth_add_group(struct wpa_authenticator *wpa_auth, int vlan_id) argument 2989 wpa_auth_eapol_key_tx_status(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int ack) argument [all...] |
H A D | peerkey_auth.c | 16 #include "wpa_auth.h" 25 struct wpa_authenticator *wpa_auth = eloop_ctx; 50 static void wpa_smk_send_error(struct wpa_authenticator *wpa_auth, argument 59 wpa_auth_logger(wpa_auth, sm->addr, LOGGER_DEBUG, 74 __wpa_send_eapol(wpa_auth, sm, 81 void wpa_smk_m1(struct wpa_authenticator *wpa_auth, argument 106 if (wpa_auth_for_each_sta(wpa_auth, wpa_stsl_select_sta, &search) == 111 wpa_smk_send_error(wpa_auth, sm, kde.mac_addr, STK_MUI_SMK, 113 /* FIX: wpa_stsl_remove(wpa_auth, neg); */ 133 wpa_auth_logger(wpa_auth, searc 145 wpa_send_smk_m4(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key, struct wpa_eapol_ie_parse *kde, const u8 *smk) argument 198 wpa_send_smk_m5(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key, struct wpa_eapol_ie_parse *kde, const u8 *smk, const u8 *peer) argument 255 wpa_smk_m3(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key) argument 326 wpa_smk_error(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key) argument 369 wpa_stsl_remove(struct wpa_authenticator *wpa_auth, struct wpa_stsl_negotiation *neg) argument [all...] |
H A D | wpa_auth_ie.c | 16 #include "wpa_auth.h" 298 int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth) argument 305 if (wpa_auth->conf.wpa & WPA_PROTO_RSN) { 306 res = wpa_write_rsn_ie(&wpa_auth->conf, 313 if (wpa_key_mgmt_ft(wpa_auth->conf.wpa_key_mgmt)) { 314 res = wpa_write_mdie(&wpa_auth->conf, pos, 321 if (wpa_auth->conf.wpa & WPA_PROTO_WPA) { 322 res = wpa_write_wpa_ie(&wpa_auth->conf, 329 os_free(wpa_auth->wpa_ie); 330 wpa_auth 376 wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, const u8 *wpa_ie, size_t wpa_ie_len, const u8 *mdie, size_t mdie_len) argument [all...] |
H A D | wpa_auth_ft.c | 19 #include "wpa_auth.h" 25 static int wpa_ft_rrb_send(struct wpa_authenticator *wpa_auth, const u8 *dst, argument 28 if (wpa_auth->cb.send_ether == NULL) 31 return wpa_auth->cb.send_ether(wpa_auth->cb.ctx, dst, ETH_P_RRB, 36 static int wpa_ft_action_send(struct wpa_authenticator *wpa_auth, argument 39 if (wpa_auth->cb.send_ft_action == NULL) 41 return wpa_auth->cb.send_ft_action(wpa_auth->cb.ctx, dst, 47 wpa_ft_add_sta(struct wpa_authenticator *wpa_auth, cons argument 55 wpa_ft_add_tspec(struct wpa_authenticator *wpa_auth, const u8 *sta_addr, u8 *tspec_ie, size_t tspec_ielen) argument 196 wpa_ft_store_pmk_r0(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r0, const u8 *pmk_r0_name, int pairwise) argument 221 wpa_ft_fetch_pmk_r0(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r0_name, u8 *pmk_r0, int *pairwise) argument 246 wpa_ft_store_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r1, const u8 *pmk_r1_name, int pairwise) argument 271 wpa_ft_fetch_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r1_name, u8 *pmk_r1, int *pairwise) argument 296 wpa_ft_pull_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *s1kh_id, const u8 *r0kh_id, size_t r0kh_id_len, const u8 *pmk_r0_name) argument 388 wpa_auth_get_seqnum(struct wpa_authenticator *wpa_auth, const u8 *addr, int idx, u8 *seq) argument 739 wpa_auth_set_key(struct wpa_authenticator *wpa_auth, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len) argument 1183 wpa_ft_rrb_rx_request(struct wpa_authenticator *wpa_auth, const u8 *current_ap, const u8 *sta_addr, const u8 *body, size_t len) argument 1245 wpa_ft_rrb_rx_pull(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument 1329 wpa_ft_rrb_rx_resp(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument 1395 wpa_ft_rrb_rx_push(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument 1469 wpa_ft_rrb_rx(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument 1589 wpa_ft_generate_pmk_r1(struct wpa_authenticator *wpa_auth, struct wpa_ft_pmk_r0_sa *pmk_r0, struct ft_remote_r1kh *r1kh, const u8 *s1kh_id, int pairwise) argument 1625 wpa_ft_push_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *addr) argument [all...] |
H A D | wpa_auth.h | 209 int wpa_init_keys(struct wpa_authenticator *wpa_auth); 210 void wpa_deinit(struct wpa_authenticator *wpa_auth); 211 int wpa_reconfig(struct wpa_authenticator *wpa_auth, 221 int wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth, 227 wpa_auth_sta_init(struct wpa_authenticator *wpa_auth, const u8 *addr); 228 int wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth, 232 void wpa_receive(struct wpa_authenticator *wpa_auth, 242 void wpa_gtk_rekey(struct wpa_authenticator *wpa_auth); 243 int wpa_get_mib(struct wpa_authenticator *wpa_auth, char *buf, size_t buflen); 245 void wpa_auth_countermeasures_start(struct wpa_authenticator *wpa_auth); [all...] |
H A D | wpa_auth_i.h | 25 struct wpa_authenticator *wpa_auth; member in struct:wpa_state_machine 191 void wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr, 193 void wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr, 195 void __wpa_send_eapol(struct wpa_authenticator *wpa_auth, 200 int wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth, 203 int wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth, 208 int wpa_stsl_remove(struct wpa_authenticator *wpa_auth, 210 void wpa_smk_error(struct wpa_authenticator *wpa_auth, 212 void wpa_smk_m1(struct wpa_authenticator *wpa_auth, 214 void wpa_smk_m3(struct wpa_authenticator *wpa_auth, [all...] |
H A D | tkip_countermeasures.c | 18 #include "wpa_auth.h" 41 wpa_auth_countermeasures_start(hapd->wpa_auth); 44 wpa_gtk_rekey(hapd->wpa_auth);
|
H A D | wpa_auth_ie.h | 48 int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth);
|