Searched refs:wpa_auth (Results 1 - 25 of 55) sorted by relevance

123

/external/wpa_supplicant_8/hostapd/src/ap/
H A Dwpa_auth.c24 #include "wpa_auth.h"
38 static void wpa_group_sm_step(struct wpa_authenticator *wpa_auth,
41 static int wpa_gtk_update(struct wpa_authenticator *wpa_auth,
43 static int wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth,
59 struct wpa_authenticator *wpa_auth, const u8 *addr)
61 if (wpa_auth->cb.mic_failure_report)
62 return wpa_auth->cb.mic_failure_report(wpa_auth->cb.ctx, addr);
67 static inline void wpa_auth_set_eapol(struct wpa_authenticator *wpa_auth, argument
71 if (wpa_auth
58 wpa_auth_mic_failure_report( struct wpa_authenticator *wpa_auth, const u8 *addr) argument
76 wpa_auth_get_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, wpa_eapol_variable var) argument
85 wpa_auth_get_psk(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *p2p_dev_addr, const u8 *prev_psk) argument
97 wpa_auth_get_msk(struct wpa_authenticator *wpa_auth, const u8 *addr, u8 *msk, size_t *len) argument
106 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
118 wpa_auth_get_seqnum(struct wpa_authenticator *wpa_auth, const u8 *addr, int idx, u8 *seq) argument
128 wpa_auth_send_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *data, size_t data_len, int encrypt) argument
138 wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_state_machine *sm, void *ctx), void *cb_ctx) argument
148 wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_authenticator *a, void *ctx), void *cb_ctx) argument
158 wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *txt) argument
167 wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *fmt, ...) argument
192 wpa_sta_disconnect(struct wpa_authenticator *wpa_auth, const u8 *addr) argument
222 struct wpa_authenticator *wpa_auth = eloop_ctx; local
242 struct wpa_authenticator *wpa_auth = eloop_ctx; local
263 struct wpa_authenticator *wpa_auth = eloop_ctx; local
283 struct wpa_authenticator *wpa_auth = ctx; local
288 wpa_group_init_gmk_and_counter(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
320 wpa_group_init(struct wpa_authenticator *wpa_auth, int vlan_id, int delay_init) argument
378 struct wpa_authenticator *wpa_auth; local
445 wpa_init_keys(struct wpa_authenticator *wpa_auth) argument
464 wpa_deinit(struct wpa_authenticator *wpa_auth) argument
506 wpa_reconfig(struct wpa_authenticator *wpa_auth, struct wpa_auth_config *conf) argument
535 wpa_auth_sta_init(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *p2p_dev_addr) argument
557 wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm) argument
703 ft_check_msg_2_of_4(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_ie_parse *kde) argument
752 wpa_receive_error_report(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int group) argument
785 wpa_receive(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, u8 *data, size_t data_len) argument
1269 struct wpa_authenticator *wpa_auth = eloop_ctx; local
1279 __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
1445 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
1652 wpa_group_ensure_init(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2208 struct wpa_authenticator *wpa_auth = sm->wpa_auth; local
2452 wpa_gtk_update(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2485 wpa_group_gtk_init(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2622 wpa_group_setkeys(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2657 wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2701 wpa_group_fatal_failure(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2711 wpa_group_setkeysdone(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2728 wpa_group_sm_step(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2806 wpa_gtk_rekey(struct wpa_authenticator *wpa_auth) argument
2841 wpa_get_mib(struct wpa_authenticator *wpa_auth, char *buf, size_t buflen) argument
2982 wpa_auth_countermeasures_start(struct wpa_authenticator *wpa_auth) argument
3041 wpa_auth_get_wpa_ie(struct wpa_authenticator *wpa_auth, size_t *len) argument
3066 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
3083 wpa_auth_pmksa_remove(struct wpa_authenticator *wpa_auth, const u8 *sta_addr) argument
3100 wpa_auth_add_group(struct wpa_authenticator *wpa_auth, int vlan_id) argument
3154 wpa_auth_eapol_key_tx_status(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int ack) argument
[all...]
H A Dpeerkey_auth.c16 #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 Dwpa_auth_ft.c20 #include "wpa_auth.h"
32 static int wpa_ft_rrb_send(struct wpa_authenticator *wpa_auth, const u8 *dst, argument
35 if (wpa_auth->cb.send_ether == NULL)
38 return wpa_auth->cb.send_ether(wpa_auth->cb.ctx, dst, ETH_P_RRB,
43 static int wpa_ft_action_send(struct wpa_authenticator *wpa_auth, argument
46 if (wpa_auth->cb.send_ft_action == NULL)
48 return wpa_auth->cb.send_ft_action(wpa_auth->cb.ctx, dst,
54 wpa_ft_add_sta(struct wpa_authenticator *wpa_auth, cons argument
62 wpa_ft_add_tspec(struct wpa_authenticator *wpa_auth, const u8 *sta_addr, u8 *tspec_ie, size_t tspec_ielen) argument
203 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
228 wpa_ft_fetch_pmk_r0(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r0_name, u8 *pmk_r0, int *pairwise) argument
253 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
278 wpa_ft_fetch_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r1_name, u8 *pmk_r1, int *pairwise) argument
408 wpa_auth_get_seqnum(struct wpa_authenticator *wpa_auth, const u8 *addr, int idx, u8 *seq) argument
758 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
1222 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
1264 struct wpa_authenticator *wpa_auth = sm->wpa_auth; local
1309 wpa_ft_rrb_rx_pull(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1441 wpa_ft_rrb_rx_resp(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1506 wpa_ft_rrb_rx_push(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1581 wpa_ft_rrb_rx(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1706 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
1744 wpa_ft_push_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *addr) argument
[all...]
H A Dwpa_auth.h221 int wpa_init_keys(struct wpa_authenticator *wpa_auth);
222 void wpa_deinit(struct wpa_authenticator *wpa_auth);
223 int wpa_reconfig(struct wpa_authenticator *wpa_auth,
233 int wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth,
237 int wpa_validate_osen(struct wpa_authenticator *wpa_auth,
242 wpa_auth_sta_init(struct wpa_authenticator *wpa_auth, const u8 *addr,
244 int wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth,
248 void wpa_receive(struct wpa_authenticator *wpa_auth,
258 void wpa_gtk_rekey(struct wpa_authenticator *wpa_auth);
259 int wpa_get_mib(struct wpa_authenticator *wpa_auth, cha
[all...]
H A Dwpa_auth_ie.c16 #include "wpa_auth.h"
365 int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth) argument
372 if (wpa_auth->conf.wpa == WPA_PROTO_OSEN) {
373 pos = wpa_write_osen(&wpa_auth->conf, pos);
375 if (wpa_auth->conf.wpa & WPA_PROTO_RSN) {
376 res = wpa_write_rsn_ie(&wpa_auth->conf,
383 if (wpa_key_mgmt_ft(wpa_auth->conf.wpa_key_mgmt)) {
384 res = wpa_write_mdie(&wpa_auth->conf, pos,
391 if (wpa_auth->conf.wpa & WPA_PROTO_WPA) {
392 res = wpa_write_wpa_ie(&wpa_auth
446 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
701 wpa_validate_osen(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, const u8 *osen_ie, size_t osen_ie_len) argument
[all...]
H A Dwpa_auth_i.h25 struct wpa_authenticator *wpa_auth; member in struct:wpa_state_machine
210 void wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr,
212 void wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr,
214 void __wpa_send_eapol(struct wpa_authenticator *wpa_auth,
219 int wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth,
222 int wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth,
227 int wpa_stsl_remove(struct wpa_authenticator *wpa_auth,
229 void wpa_smk_error(struct wpa_authenticator *wpa_auth,
231 void wpa_smk_m1(struct wpa_authenticator *wpa_auth,
233 void wpa_smk_m3(struct wpa_authenticator *wpa_auth,
[all...]
H A Dtkip_countermeasures.c18 #include "wpa_auth.h"
41 wpa_auth_countermeasures_start(hapd->wpa_auth);
44 wpa_gtk_rekey(hapd->wpa_auth);
H A Dwpa_auth_glue.c25 #include "wpa_auth.h"
336 if (iface->bss[i]->wpa_auth &&
337 data->cb(iface->bss[i]->wpa_auth, data->cb_ctx))
387 wpa_ft_rrb_rx(hapd->wpa_auth,
494 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, sta->addr, NULL);
515 wpa_ft_rrb_rx(hapd->wpa_auth, ethhdr->h_source, buf + sizeof(*ethhdr),
562 hapd->wpa_auth = wpa_init(hapd->own_addr, &_conf, &cb);
563 if (hapd->wpa_auth == NULL) {
574 wpa_ie = wpa_auth_get_wpa_ie(hapd->wpa_auth, &wpa_ie_len);
612 wpa_reconfig(hapd->wpa_auth,
[all...]
H A Dwpa_auth_ie.h55 int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth);
/external/wpa_supplicant_8/src/ap/
H A Dwpa_auth.c24 #include "wpa_auth.h"
38 static void wpa_group_sm_step(struct wpa_authenticator *wpa_auth,
41 static int wpa_gtk_update(struct wpa_authenticator *wpa_auth,
43 static int wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth,
59 struct wpa_authenticator *wpa_auth, const u8 *addr)
61 if (wpa_auth->cb.mic_failure_report)
62 return wpa_auth->cb.mic_failure_report(wpa_auth->cb.ctx, addr);
67 static inline void wpa_auth_set_eapol(struct wpa_authenticator *wpa_auth, argument
71 if (wpa_auth
58 wpa_auth_mic_failure_report( struct wpa_authenticator *wpa_auth, const u8 *addr) argument
76 wpa_auth_get_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, wpa_eapol_variable var) argument
85 wpa_auth_get_psk(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *p2p_dev_addr, const u8 *prev_psk) argument
97 wpa_auth_get_msk(struct wpa_authenticator *wpa_auth, const u8 *addr, u8 *msk, size_t *len) argument
106 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
118 wpa_auth_get_seqnum(struct wpa_authenticator *wpa_auth, const u8 *addr, int idx, u8 *seq) argument
128 wpa_auth_send_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *data, size_t data_len, int encrypt) argument
138 wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_state_machine *sm, void *ctx), void *cb_ctx) argument
148 wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_authenticator *a, void *ctx), void *cb_ctx) argument
158 wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *txt) argument
167 wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *fmt, ...) argument
192 wpa_sta_disconnect(struct wpa_authenticator *wpa_auth, const u8 *addr) argument
222 struct wpa_authenticator *wpa_auth = eloop_ctx; local
242 struct wpa_authenticator *wpa_auth = eloop_ctx; local
263 struct wpa_authenticator *wpa_auth = eloop_ctx; local
283 struct wpa_authenticator *wpa_auth = ctx; local
288 wpa_group_init_gmk_and_counter(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
320 wpa_group_init(struct wpa_authenticator *wpa_auth, int vlan_id, int delay_init) argument
378 struct wpa_authenticator *wpa_auth; local
445 wpa_init_keys(struct wpa_authenticator *wpa_auth) argument
464 wpa_deinit(struct wpa_authenticator *wpa_auth) argument
506 wpa_reconfig(struct wpa_authenticator *wpa_auth, struct wpa_auth_config *conf) argument
535 wpa_auth_sta_init(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *p2p_dev_addr) argument
557 wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm) argument
703 ft_check_msg_2_of_4(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_ie_parse *kde) argument
752 wpa_receive_error_report(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int group) argument
785 wpa_receive(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, u8 *data, size_t data_len) argument
1269 struct wpa_authenticator *wpa_auth = eloop_ctx; local
1279 __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
1445 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
1652 wpa_group_ensure_init(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2208 struct wpa_authenticator *wpa_auth = sm->wpa_auth; local
2452 wpa_gtk_update(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2485 wpa_group_gtk_init(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2622 wpa_group_setkeys(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2657 wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2701 wpa_group_fatal_failure(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2711 wpa_group_setkeysdone(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2728 wpa_group_sm_step(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2806 wpa_gtk_rekey(struct wpa_authenticator *wpa_auth) argument
2841 wpa_get_mib(struct wpa_authenticator *wpa_auth, char *buf, size_t buflen) argument
2982 wpa_auth_countermeasures_start(struct wpa_authenticator *wpa_auth) argument
3041 wpa_auth_get_wpa_ie(struct wpa_authenticator *wpa_auth, size_t *len) argument
3066 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
3083 wpa_auth_pmksa_remove(struct wpa_authenticator *wpa_auth, const u8 *sta_addr) argument
3100 wpa_auth_add_group(struct wpa_authenticator *wpa_auth, int vlan_id) argument
3154 wpa_auth_eapol_key_tx_status(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int ack) argument
[all...]
H A Dpeerkey_auth.c16 #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 Dwpa_auth_ft.c20 #include "wpa_auth.h"
32 static int wpa_ft_rrb_send(struct wpa_authenticator *wpa_auth, const u8 *dst, argument
35 if (wpa_auth->cb.send_ether == NULL)
38 return wpa_auth->cb.send_ether(wpa_auth->cb.ctx, dst, ETH_P_RRB,
43 static int wpa_ft_action_send(struct wpa_authenticator *wpa_auth, argument
46 if (wpa_auth->cb.send_ft_action == NULL)
48 return wpa_auth->cb.send_ft_action(wpa_auth->cb.ctx, dst,
54 wpa_ft_add_sta(struct wpa_authenticator *wpa_auth, cons argument
62 wpa_ft_add_tspec(struct wpa_authenticator *wpa_auth, const u8 *sta_addr, u8 *tspec_ie, size_t tspec_ielen) argument
203 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
228 wpa_ft_fetch_pmk_r0(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r0_name, u8 *pmk_r0, int *pairwise) argument
253 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
278 wpa_ft_fetch_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r1_name, u8 *pmk_r1, int *pairwise) argument
408 wpa_auth_get_seqnum(struct wpa_authenticator *wpa_auth, const u8 *addr, int idx, u8 *seq) argument
758 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
1222 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
1264 struct wpa_authenticator *wpa_auth = sm->wpa_auth; local
1309 wpa_ft_rrb_rx_pull(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1441 wpa_ft_rrb_rx_resp(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1506 wpa_ft_rrb_rx_push(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1581 wpa_ft_rrb_rx(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1706 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
1744 wpa_ft_push_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *addr) argument
[all...]
H A Dwpa_auth.h221 int wpa_init_keys(struct wpa_authenticator *wpa_auth);
222 void wpa_deinit(struct wpa_authenticator *wpa_auth);
223 int wpa_reconfig(struct wpa_authenticator *wpa_auth,
233 int wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth,
237 int wpa_validate_osen(struct wpa_authenticator *wpa_auth,
242 wpa_auth_sta_init(struct wpa_authenticator *wpa_auth, const u8 *addr,
244 int wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth,
248 void wpa_receive(struct wpa_authenticator *wpa_auth,
258 void wpa_gtk_rekey(struct wpa_authenticator *wpa_auth);
259 int wpa_get_mib(struct wpa_authenticator *wpa_auth, cha
[all...]
H A Dwpa_auth_ie.c16 #include "wpa_auth.h"
365 int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth) argument
372 if (wpa_auth->conf.wpa == WPA_PROTO_OSEN) {
373 pos = wpa_write_osen(&wpa_auth->conf, pos);
375 if (wpa_auth->conf.wpa & WPA_PROTO_RSN) {
376 res = wpa_write_rsn_ie(&wpa_auth->conf,
383 if (wpa_key_mgmt_ft(wpa_auth->conf.wpa_key_mgmt)) {
384 res = wpa_write_mdie(&wpa_auth->conf, pos,
391 if (wpa_auth->conf.wpa & WPA_PROTO_WPA) {
392 res = wpa_write_wpa_ie(&wpa_auth
446 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
701 wpa_validate_osen(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, const u8 *osen_ie, size_t osen_ie_len) argument
[all...]
H A Dwpa_auth_i.h25 struct wpa_authenticator *wpa_auth; member in struct:wpa_state_machine
210 void wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr,
212 void wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr,
214 void __wpa_send_eapol(struct wpa_authenticator *wpa_auth,
219 int wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth,
222 int wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth,
227 int wpa_stsl_remove(struct wpa_authenticator *wpa_auth,
229 void wpa_smk_error(struct wpa_authenticator *wpa_auth,
231 void wpa_smk_m1(struct wpa_authenticator *wpa_auth,
233 void wpa_smk_m3(struct wpa_authenticator *wpa_auth,
[all...]
H A Dtkip_countermeasures.c18 #include "wpa_auth.h"
41 wpa_auth_countermeasures_start(hapd->wpa_auth);
44 wpa_gtk_rekey(hapd->wpa_auth);
H A Dwpa_auth_glue.c25 #include "wpa_auth.h"
336 if (iface->bss[i]->wpa_auth &&
337 data->cb(iface->bss[i]->wpa_auth, data->cb_ctx))
387 wpa_ft_rrb_rx(hapd->wpa_auth,
494 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, sta->addr, NULL);
515 wpa_ft_rrb_rx(hapd->wpa_auth, ethhdr->h_source, buf + sizeof(*ethhdr),
562 hapd->wpa_auth = wpa_init(hapd->own_addr, &_conf, &cb);
563 if (hapd->wpa_auth == NULL) {
574 wpa_ie = wpa_auth_get_wpa_ie(hapd->wpa_auth, &wpa_ie_len);
612 wpa_reconfig(hapd->wpa_auth,
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/ap/
H A Dwpa_auth.c24 #include "wpa_auth.h"
38 static void wpa_group_sm_step(struct wpa_authenticator *wpa_auth,
41 static int wpa_gtk_update(struct wpa_authenticator *wpa_auth,
43 static int wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth,
59 struct wpa_authenticator *wpa_auth, const u8 *addr)
61 if (wpa_auth->cb.mic_failure_report)
62 return wpa_auth->cb.mic_failure_report(wpa_auth->cb.ctx, addr);
67 static inline void wpa_auth_set_eapol(struct wpa_authenticator *wpa_auth, argument
71 if (wpa_auth
58 wpa_auth_mic_failure_report( struct wpa_authenticator *wpa_auth, const u8 *addr) argument
76 wpa_auth_get_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, wpa_eapol_variable var) argument
85 wpa_auth_get_psk(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *p2p_dev_addr, const u8 *prev_psk) argument
97 wpa_auth_get_msk(struct wpa_authenticator *wpa_auth, const u8 *addr, u8 *msk, size_t *len) argument
106 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
118 wpa_auth_get_seqnum(struct wpa_authenticator *wpa_auth, const u8 *addr, int idx, u8 *seq) argument
128 wpa_auth_send_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *data, size_t data_len, int encrypt) argument
138 wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_state_machine *sm, void *ctx), void *cb_ctx) argument
148 wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_authenticator *a, void *ctx), void *cb_ctx) argument
158 wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *txt) argument
167 wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *fmt, ...) argument
192 wpa_sta_disconnect(struct wpa_authenticator *wpa_auth, const u8 *addr) argument
222 struct wpa_authenticator *wpa_auth = eloop_ctx; local
242 struct wpa_authenticator *wpa_auth = eloop_ctx; local
263 struct wpa_authenticator *wpa_auth = eloop_ctx; local
283 struct wpa_authenticator *wpa_auth = ctx; local
288 wpa_group_init_gmk_and_counter(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
320 wpa_group_init(struct wpa_authenticator *wpa_auth, int vlan_id, int delay_init) argument
378 struct wpa_authenticator *wpa_auth; local
445 wpa_init_keys(struct wpa_authenticator *wpa_auth) argument
464 wpa_deinit(struct wpa_authenticator *wpa_auth) argument
506 wpa_reconfig(struct wpa_authenticator *wpa_auth, struct wpa_auth_config *conf) argument
535 wpa_auth_sta_init(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *p2p_dev_addr) argument
557 wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm) argument
703 ft_check_msg_2_of_4(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_ie_parse *kde) argument
752 wpa_receive_error_report(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int group) argument
785 wpa_receive(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, u8 *data, size_t data_len) argument
1269 struct wpa_authenticator *wpa_auth = eloop_ctx; local
1279 __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
1445 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
1652 wpa_group_ensure_init(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2208 struct wpa_authenticator *wpa_auth = sm->wpa_auth; local
2452 wpa_gtk_update(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2485 wpa_group_gtk_init(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2622 wpa_group_setkeys(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2657 wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2701 wpa_group_fatal_failure(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2711 wpa_group_setkeysdone(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2728 wpa_group_sm_step(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2806 wpa_gtk_rekey(struct wpa_authenticator *wpa_auth) argument
2841 wpa_get_mib(struct wpa_authenticator *wpa_auth, char *buf, size_t buflen) argument
2982 wpa_auth_countermeasures_start(struct wpa_authenticator *wpa_auth) argument
3041 wpa_auth_get_wpa_ie(struct wpa_authenticator *wpa_auth, size_t *len) argument
3066 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
3083 wpa_auth_pmksa_remove(struct wpa_authenticator *wpa_auth, const u8 *sta_addr) argument
3100 wpa_auth_add_group(struct wpa_authenticator *wpa_auth, int vlan_id) argument
3154 wpa_auth_eapol_key_tx_status(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int ack) argument
[all...]
H A Dpeerkey_auth.c16 #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 Dwpa_auth_ft.c20 #include "wpa_auth.h"
32 static int wpa_ft_rrb_send(struct wpa_authenticator *wpa_auth, const u8 *dst, argument
35 if (wpa_auth->cb.send_ether == NULL)
38 return wpa_auth->cb.send_ether(wpa_auth->cb.ctx, dst, ETH_P_RRB,
43 static int wpa_ft_action_send(struct wpa_authenticator *wpa_auth, argument
46 if (wpa_auth->cb.send_ft_action == NULL)
48 return wpa_auth->cb.send_ft_action(wpa_auth->cb.ctx, dst,
54 wpa_ft_add_sta(struct wpa_authenticator *wpa_auth, cons argument
62 wpa_ft_add_tspec(struct wpa_authenticator *wpa_auth, const u8 *sta_addr, u8 *tspec_ie, size_t tspec_ielen) argument
203 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
228 wpa_ft_fetch_pmk_r0(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r0_name, u8 *pmk_r0, int *pairwise) argument
253 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
278 wpa_ft_fetch_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r1_name, u8 *pmk_r1, int *pairwise) argument
408 wpa_auth_get_seqnum(struct wpa_authenticator *wpa_auth, const u8 *addr, int idx, u8 *seq) argument
758 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
1222 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
1264 struct wpa_authenticator *wpa_auth = sm->wpa_auth; local
1309 wpa_ft_rrb_rx_pull(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1441 wpa_ft_rrb_rx_resp(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1506 wpa_ft_rrb_rx_push(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1581 wpa_ft_rrb_rx(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1706 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
1744 wpa_ft_push_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *addr) argument
[all...]
H A Dwpa_auth.h221 int wpa_init_keys(struct wpa_authenticator *wpa_auth);
222 void wpa_deinit(struct wpa_authenticator *wpa_auth);
223 int wpa_reconfig(struct wpa_authenticator *wpa_auth,
233 int wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth,
237 int wpa_validate_osen(struct wpa_authenticator *wpa_auth,
242 wpa_auth_sta_init(struct wpa_authenticator *wpa_auth, const u8 *addr,
244 int wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth,
248 void wpa_receive(struct wpa_authenticator *wpa_auth,
258 void wpa_gtk_rekey(struct wpa_authenticator *wpa_auth);
259 int wpa_get_mib(struct wpa_authenticator *wpa_auth, cha
[all...]
H A Dwpa_auth_ie.c16 #include "wpa_auth.h"
365 int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth) argument
372 if (wpa_auth->conf.wpa == WPA_PROTO_OSEN) {
373 pos = wpa_write_osen(&wpa_auth->conf, pos);
375 if (wpa_auth->conf.wpa & WPA_PROTO_RSN) {
376 res = wpa_write_rsn_ie(&wpa_auth->conf,
383 if (wpa_key_mgmt_ft(wpa_auth->conf.wpa_key_mgmt)) {
384 res = wpa_write_mdie(&wpa_auth->conf, pos,
391 if (wpa_auth->conf.wpa & WPA_PROTO_WPA) {
392 res = wpa_write_wpa_ie(&wpa_auth
446 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
701 wpa_validate_osen(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, const u8 *osen_ie, size_t osen_ie_len) argument
[all...]
H A Dwpa_auth_i.h25 struct wpa_authenticator *wpa_auth; member in struct:wpa_state_machine
210 void wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr,
212 void wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr,
214 void __wpa_send_eapol(struct wpa_authenticator *wpa_auth,
219 int wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth,
222 int wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth,
227 int wpa_stsl_remove(struct wpa_authenticator *wpa_auth,
229 void wpa_smk_error(struct wpa_authenticator *wpa_auth,
231 void wpa_smk_m1(struct wpa_authenticator *wpa_auth,
233 void wpa_smk_m3(struct wpa_authenticator *wpa_auth,
[all...]
H A Dtkip_countermeasures.c18 #include "wpa_auth.h"
41 wpa_auth_countermeasures_start(hapd->wpa_auth);
44 wpa_gtk_rekey(hapd->wpa_auth);
H A Dwpa_auth_glue.c25 #include "wpa_auth.h"
336 if (iface->bss[i]->wpa_auth &&
337 data->cb(iface->bss[i]->wpa_auth, data->cb_ctx))
387 wpa_ft_rrb_rx(hapd->wpa_auth,
494 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, sta->addr, NULL);
515 wpa_ft_rrb_rx(hapd->wpa_auth, ethhdr->h_source, buf + sizeof(*ethhdr),
562 hapd->wpa_auth = wpa_init(hapd->own_addr, &_conf, &cb);
563 if (hapd->wpa_auth == NULL) {
574 wpa_ie = wpa_auth_get_wpa_ie(hapd->wpa_auth, &wpa_ie_len);
612 wpa_reconfig(hapd->wpa_auth,
[all...]

Completed in 1857 milliseconds

123