Home
last modified time | relevance | path

Searched refs:sm (Results 1 - 25 of 254) sorted by relevance

1234567891011

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/pae/
H A Dieee802_1x_cp.c95 static int changed_cipher(struct ieee802_1x_cp_sm *sm) in changed_cipher() argument
97 return sm->confidentiality_offset != sm->cipher_offset || in changed_cipher()
98 sm->current_cipher_suite != sm->cipher_suite; in changed_cipher()
102 static int changed_connect(struct ieee802_1x_cp_sm *sm) in changed_connect() argument
104 return sm->connect != SECURE || sm->chgd_server || changed_cipher(sm); in changed_connect()
112 sm in SM_STATE()
448 struct ieee802_1x_cp_sm *sm; ieee802_1x_cp_sm_init() local
501 ieee802_1x_cp_step_run(struct ieee802_1x_cp_sm *sm) ieee802_1x_cp_step_run() argument
517 struct ieee802_1x_cp_sm *sm = eloop_ctx; ieee802_1x_cp_step_cb() local
525 ieee802_1x_cp_sm_deinit(struct ieee802_1x_cp_sm *sm) ieee802_1x_cp_sm_deinit() argument
545 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_connect_pending() local
556 struct ieee802_1x_cp_sm *sm = (struct ieee802_1x_cp_sm *)cp_ctx; ieee802_1x_cp_connect_unauthenticated() local
567 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_connect_authenticated() local
578 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_connect_secure() local
589 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_signal_chgdserver() local
600 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_set_electedself() local
610 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_set_ciphersuite() local
620 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_set_offset() local
630 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_signal_newsak() local
641 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_set_distributedki() local
651 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_set_distributedan() local
661 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_set_usingreceivesas() local
671 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_set_allreceiving() local
681 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_set_servertransmitting() local
691 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_set_usingtransmitas() local
710 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_sm_step() local
719 struct ieee802_1x_cp_sm *sm = eloop_ctx; ieee802_1x_cp_retire_when_timeout() local
728 struct ieee802_1x_cp_sm *sm = eloop_ctx; ieee802_1x_cp_transmit_when_timeout() local
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/pae/
H A Dieee802_1x_cp.c95 static int changed_cipher(struct ieee802_1x_cp_sm *sm) in changed_cipher() argument
97 return sm->confidentiality_offset != sm->cipher_offset || in changed_cipher()
98 sm->current_cipher_suite != sm->cipher_suite; in changed_cipher()
102 static int changed_connect(struct ieee802_1x_cp_sm *sm) in changed_connect() argument
104 return sm->connect != SECURE || sm->chgd_server || changed_cipher(sm); in changed_connect()
112 sm in SM_STATE()
437 struct ieee802_1x_cp_sm *sm; ieee802_1x_cp_sm_init() local
490 ieee802_1x_cp_step_run(struct ieee802_1x_cp_sm *sm) ieee802_1x_cp_step_run() argument
506 struct ieee802_1x_cp_sm *sm = eloop_ctx; ieee802_1x_cp_step_cb() local
514 ieee802_1x_cp_sm_deinit(struct ieee802_1x_cp_sm *sm) ieee802_1x_cp_sm_deinit() argument
534 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_connect_pending() local
545 struct ieee802_1x_cp_sm *sm = (struct ieee802_1x_cp_sm *)cp_ctx; ieee802_1x_cp_connect_unauthenticated() local
556 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_connect_authenticated() local
567 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_connect_secure() local
578 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_signal_chgdserver() local
589 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_set_electedself() local
599 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_set_ciphersuite() local
609 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_set_offset() local
619 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_signal_newsak() local
630 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_set_distributedki() local
640 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_set_distributedan() local
650 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_set_usingreceivesas() local
660 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_set_allreceiving() local
670 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_set_servertransmitting() local
680 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_set_usingtransmitas() local
699 struct ieee802_1x_cp_sm *sm = cp_ctx; ieee802_1x_cp_sm_step() local
708 struct ieee802_1x_cp_sm *sm = eloop_ctx; ieee802_1x_cp_retire_when_timeout() local
717 struct ieee802_1x_cp_sm *sm = eloop_ctx; ieee802_1x_cp_transmit_when_timeout() local
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/
H A Deap_server.c30 static int eap_sm_calculateTimeout(struct eap_sm *sm, int retransCount,
33 static void eap_sm_parseEapResp(struct eap_sm *sm, const struct wpabuf *resp);
35 static struct wpabuf * eap_sm_buildSuccess(struct eap_sm *sm, u8 id);
36 static struct wpabuf * eap_sm_buildFailure(struct eap_sm *sm, u8 id);
37 static int eap_sm_nextId(struct eap_sm *sm, int id);
38 static void eap_sm_Policy_update(struct eap_sm *sm, const u8 *nak_list,
40 static EapType eap_sm_Policy_getNextMethod(struct eap_sm *sm, int *vendor);
41 static int eap_sm_Policy_getDecision(struct eap_sm *sm);
42 static Boolean eap_sm_Policy_doPickUp(struct eap_sm *sm, EapType method);
45 static int eap_get_erp_send_reauth_start(struct eap_sm *sm) in eap_get_erp_send_reauth_start() argument
53 eap_get_erp_domain(struct eap_sm *sm) eap_get_erp_domain() argument
63 eap_erp_get_key(struct eap_sm *sm, const char *keyname) eap_erp_get_key() argument
72 eap_erp_add_key(struct eap_sm *sm, struct eap_server_erp_key *erp) eap_erp_add_key() argument
82 eap_sm_buildInitiateReauthStart(struct eap_sm *sm, u8 id) eap_sm_buildInitiateReauthStart() argument
159 eap_user_get(struct eap_sm *sm, const u8 *identity, size_t identity_len, int phase2) eap_user_get() argument
188 eap_log_msg(struct eap_sm *sm, const char *fmt, ...) eap_log_msg() argument
412 eap_server_erp_init(struct eap_sm *sm) eap_server_erp_init() argument
696 erp_send_finish_reauth(struct eap_sm *sm, struct eap_server_erp_key *erp, u8 id, u8 flags, u16 seq, const char *nai) erp_send_finish_reauth() argument
1412 eap_sm_calculateTimeout(struct eap_sm *sm, int retransCount, int eapSRTT, int eapRTTVAR, int methodTimeout) eap_sm_calculateTimeout() argument
1470 eap_sm_parseEapResp(struct eap_sm *sm, const struct wpabuf *resp) eap_sm_parseEapResp() argument
1543 eap_sm_buildSuccess(struct eap_sm *sm, u8 id) eap_sm_buildSuccess() argument
1561 eap_sm_buildFailure(struct eap_sm *sm, u8 id) eap_sm_buildFailure() argument
1579 eap_sm_nextId(struct eap_sm *sm, int id) eap_sm_nextId() argument
1601 eap_sm_process_nak(struct eap_sm *sm, const u8 *nak_list, size_t len) eap_sm_process_nak() argument
1655 eap_sm_Policy_update(struct eap_sm *sm, const u8 *nak_list, size_t len) eap_sm_Policy_update() argument
1672 eap_sm_Policy_getNextMethod(struct eap_sm *sm, int *vendor) eap_sm_Policy_getNextMethod() argument
1704 eap_sm_Policy_getDecision(struct eap_sm *sm) eap_sm_Policy_getDecision() argument
1786 eap_sm_Policy_doPickUp(struct eap_sm *sm, EapType method) eap_sm_Policy_doPickUp() argument
1801 eap_server_sm_step(struct eap_sm *sm) eap_server_sm_step() argument
1839 struct eap_sm *sm; eap_server_sm_init() local
1910 eap_server_sm_deinit(struct eap_sm *sm) eap_server_sm_deinit() argument
1944 eap_sm_notify_cached(struct eap_sm *sm) eap_sm_notify_cached() argument
1959 eap_sm_pending_cb(struct eap_sm *sm) eap_sm_pending_cb() argument
1974 eap_sm_method_pending(struct eap_sm *sm) eap_sm_method_pending() argument
1988 eap_get_identity(struct eap_sm *sm, size_t *len) eap_get_identity() argument
2000 eap_get_serial_num(struct eap_sm *sm) eap_get_serial_num() argument
2011 eap_get_method(struct eap_sm *sm) eap_get_method() argument
2024 eap_get_imsi(struct eap_sm *sm) eap_get_imsi() argument
2032 eap_erp_update_identity(struct eap_sm *sm, const u8 *eap, size_t len) eap_erp_update_identity() argument
2075 eap_get_interface(struct eap_sm *sm) eap_get_interface() argument
2089 eap_server_clear_identity(struct eap_sm *sm) eap_server_clear_identity() argument
2097 eap_server_mschap_rx_callback(struct eap_sm *sm, const char *source, const u8 *username, size_t username_len, const u8 *challenge, const u8 *response) eap_server_mschap_rx_callback() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/
H A Deap_server.c28 static int eap_sm_calculateTimeout(struct eap_sm *sm, int retransCount,
31 static void eap_sm_parseEapResp(struct eap_sm *sm, const struct wpabuf *resp);
33 static struct wpabuf * eap_sm_buildSuccess(struct eap_sm *sm, u8 id);
34 static struct wpabuf * eap_sm_buildFailure(struct eap_sm *sm, u8 id);
35 static int eap_sm_nextId(struct eap_sm *sm, int id);
36 static void eap_sm_Policy_update(struct eap_sm *sm, const u8 *nak_list,
38 static enum eap_type eap_sm_Policy_getNextMethod(struct eap_sm *sm,
40 static int eap_sm_Policy_getDecision(struct eap_sm *sm);
41 static bool eap_sm_Policy_doPickUp(struct eap_sm *sm, enum eap_type method);
44 static int eap_get_erp_send_reauth_start(struct eap_sm *sm) in eap_get_erp_send_reauth_start() argument
52 eap_get_erp_domain(struct eap_sm *sm) eap_get_erp_domain() argument
62 eap_erp_get_key(struct eap_sm *sm, const char *keyname) eap_erp_get_key() argument
71 eap_erp_add_key(struct eap_sm *sm, struct eap_server_erp_key *erp) eap_erp_add_key() argument
81 eap_sm_buildInitiateReauthStart(struct eap_sm *sm, u8 id) eap_sm_buildInitiateReauthStart() argument
158 eap_user_get(struct eap_sm *sm, const u8 *identity, size_t identity_len, int phase2) eap_user_get() argument
187 eap_log_msg(struct eap_sm *sm, const char *fmt, ...) eap_log_msg() argument
419 eap_server_erp_init(struct eap_sm *sm) eap_server_erp_init() argument
703 erp_send_finish_reauth(struct eap_sm *sm, struct eap_server_erp_key *erp, u8 id, u8 flags, u16 seq, const char *nai) erp_send_finish_reauth() argument
1430 eap_sm_calculateTimeout(struct eap_sm *sm, int retransCount, int eapSRTT, int eapRTTVAR, int methodTimeout) eap_sm_calculateTimeout() argument
1488 eap_sm_parseEapResp(struct eap_sm *sm, const struct wpabuf *resp) eap_sm_parseEapResp() argument
1561 eap_sm_buildSuccess(struct eap_sm *sm, u8 id) eap_sm_buildSuccess() argument
1579 eap_sm_buildFailure(struct eap_sm *sm, u8 id) eap_sm_buildFailure() argument
1597 eap_sm_nextId(struct eap_sm *sm, int id) eap_sm_nextId() argument
1619 eap_sm_process_nak(struct eap_sm *sm, const u8 *nak_list, size_t len) eap_sm_process_nak() argument
1673 eap_sm_Policy_update(struct eap_sm *sm, const u8 *nak_list, size_t len) eap_sm_Policy_update() argument
1690 eap_sm_Policy_getNextMethod(struct eap_sm *sm, int *vendor) eap_sm_Policy_getNextMethod() argument
1722 eap_sm_Policy_getDecision(struct eap_sm *sm) eap_sm_Policy_getDecision() argument
1804 eap_sm_Policy_doPickUp(struct eap_sm *sm, enum eap_type method) eap_sm_Policy_doPickUp() argument
1819 eap_server_sm_step(struct eap_sm *sm) eap_server_sm_step() argument
1858 struct eap_sm *sm; eap_server_sm_init() local
1890 eap_server_sm_deinit(struct eap_sm *sm) eap_server_sm_deinit() argument
1921 eap_sm_notify_cached(struct eap_sm *sm) eap_sm_notify_cached() argument
1936 eap_sm_pending_cb(struct eap_sm *sm) eap_sm_pending_cb() argument
1951 eap_sm_method_pending(struct eap_sm *sm) eap_sm_method_pending() argument
1965 eap_get_identity(struct eap_sm *sm, size_t *len) eap_get_identity() argument
1977 eap_get_serial_num(struct eap_sm *sm) eap_get_serial_num() argument
1988 eap_get_method(struct eap_sm *sm) eap_get_method() argument
2001 eap_get_imsi(struct eap_sm *sm) eap_get_imsi() argument
2009 eap_erp_update_identity(struct eap_sm *sm, const u8 *eap, size_t len) eap_erp_update_identity() argument
2052 eap_get_interface(struct eap_sm *sm) eap_get_interface() argument
2066 eap_server_clear_identity(struct eap_sm *sm) eap_server_clear_identity() argument
2074 eap_server_mschap_rx_callback(struct eap_sm *sm, const char *source, const u8 *username, size_t username_len, const u8 *challenge, const u8 *response) eap_server_mschap_rx_callback() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eapol_supp/
H A Deapol_supp_sm.c151 static void eapol_sm_txLogoff(struct eapol_sm *sm);
152 static void eapol_sm_txStart(struct eapol_sm *sm);
153 static void eapol_sm_processKey(struct eapol_sm *sm);
154 static void eapol_sm_getSuppRsp(struct eapol_sm *sm);
155 static void eapol_sm_txSuppRsp(struct eapol_sm *sm);
156 static void eapol_sm_abortSupp(struct eapol_sm *sm);
157 static void eapol_sm_abort_cached(struct eapol_sm *sm);
159 static void eapol_sm_set_port_authorized(struct eapol_sm *sm);
160 static void eapol_sm_set_port_unauthorized(struct eapol_sm *sm);
166 int save_eapol_sm(struct eapol_sm *sm) in save_eapol_sm() argument
177 struct eapol_sm *sm = timeout_ctx; eapol_port_timers_tick() local
212 eapol_sm_confirm_auth(struct eapol_sm *sm) eapol_sm_confirm_auth() argument
221 eapol_enable_timer_tick(struct eapol_sm *sm) eapol_enable_timer_tick() argument
673 eapol_sm_txLogoff(struct eapol_sm *sm) eapol_sm_txLogoff() argument
683 eapol_sm_txStart(struct eapol_sm *sm) eapol_sm_txStart() argument
702 eapol_sm_processKey(struct eapol_sm *sm) eapol_sm_processKey() argument
883 eapol_sm_getSuppRsp(struct eapol_sm *sm) eapol_sm_getSuppRsp() argument
893 eapol_sm_txSuppRsp(struct eapol_sm *sm) eapol_sm_txSuppRsp() argument
935 eapol_sm_abortSupp(struct eapol_sm *sm) eapol_sm_abortSupp() argument
956 eapol_sm_set_port_authorized(struct eapol_sm *sm) eapol_sm_set_port_authorized() argument
968 eapol_sm_set_port_unauthorized(struct eapol_sm *sm) eapol_sm_set_port_unauthorized() argument
988 eapol_sm_step(struct eapol_sm *sm) eapol_sm_step() argument
1122 eapol_sm_configure(struct eapol_sm *sm, int heldPeriod, int authPeriod, int startPeriod, int maxStart) eapol_sm_configure() argument
1143 eapol_sm_get_method_name(struct eapol_sm *sm) eapol_sm_get_method_name() argument
1167 eapol_sm_get_status(struct eapol_sm *sm, char *buf, size_t buflen, int verbose) eapol_sm_get_status() argument
1226 eapol_sm_get_mib(struct eapol_sm *sm, char *buf, size_t buflen) eapol_sm_get_mib() argument
1296 eapol_sm_rx_eapol(struct eapol_sm *sm, const u8 *src, const u8 *buf, size_t len) eapol_sm_rx_eapol() argument
1460 struct eapol_sm *sm; wps_eap_fail_timeout() local
1480 eapol_sm_notify_tx_eapol_key(struct eapol_sm *sm) eapol_sm_notify_tx_eapol_key() argument
1494 eapol_sm_notify_portEnabled(struct eapol_sm *sm, bool enabled) eapol_sm_notify_portEnabled() argument
1514 eapol_sm_notify_portValid(struct eapol_sm *sm, bool valid) eapol_sm_notify_portValid() argument
1536 eapol_sm_notify_eap_success(struct eapol_sm *sm, bool success) eapol_sm_notify_eap_success() argument
1558 eapol_sm_notify_eap_fail(struct eapol_sm *sm, bool fail) eapol_sm_notify_eap_fail() argument
1582 eapol_sm_notify_config(struct eapol_sm *sm, struct eap_peer_config *config, const struct eapol_config *conf) eapol_sm_notify_config() argument
1628 eapol_sm_get_key(struct eapol_sm *sm, u8 *key, size_t len) eapol_sm_get_key() argument
1682 eapol_sm_get_session_id(struct eapol_sm *sm, size_t *len) eapol_sm_get_session_id() argument
1699 eapol_sm_notify_logoff(struct eapol_sm *sm, bool logoff) eapol_sm_notify_logoff() argument
1719 eapol_sm_notify_cached(struct eapol_sm *sm) eapol_sm_notify_cached() argument
1736 eapol_sm_notify_pmkid_attempt(struct eapol_sm *sm) eapol_sm_notify_pmkid_attempt() argument
1745 eapol_sm_abort_cached(struct eapol_sm *sm) eapol_sm_abort_cached() argument
1773 eapol_sm_register_scard_ctx(struct eapol_sm *sm, void *ctx) eapol_sm_register_scard_ctx() argument
1789 eapol_sm_notify_portControl(struct eapol_sm *sm, PortControl portControl) eapol_sm_notify_portControl() argument
1807 eapol_sm_notify_ctrl_attached(struct eapol_sm *sm) eapol_sm_notify_ctrl_attached() argument
1822 eapol_sm_notify_ctrl_response(struct eapol_sm *sm) eapol_sm_notify_ctrl_response() argument
1844 eapol_sm_request_reauth(struct eapol_sm *sm) eapol_sm_request_reauth() argument
1862 eapol_sm_notify_lower_layer_success(struct eapol_sm *sm, int in_eapol_sm) eapol_sm_notify_lower_layer_success() argument
1876 eapol_sm_invalidate_cached_session(struct eapol_sm *sm) eapol_sm_invalidate_cached_session() argument
1885 struct eapol_sm *sm = ctx; eapol_sm_get_config() local
1892 struct eapol_sm *sm = ctx; eapol_sm_get_eapReqData() local
1902 struct eapol_sm *sm = ctx; eapol_sm_get_bool() local
1934 struct eapol_sm *sm = ctx; eapol_sm_set_bool() local
1974 struct eapol_sm *sm = ctx; eapol_sm_get_int() local
1988 struct eapol_sm *sm = ctx; eapol_sm_set_int() local
2004 struct eapol_sm *sm = ctx; eapol_sm_set_config_blob() local
2015 struct eapol_sm *sm = ctx; eapol_sm_get_config_blob() local
2028 struct eapol_sm *sm = ctx; eapol_sm_notify_pending() local
2045 struct eapol_sm *sm = ctx; eapol_sm_eap_param_needed() local
2057 struct eapol_sm *sm = ctx; eapol_sm_notify_cert() local
2066 struct eapol_sm *sm = ctx; eapol_sm_notify_status() local
2075 struct eapol_sm *sm = ctx; eapol_sm_notify_eap_error() local
2086 struct eapol_sm *sm = ctx; eapol_sm_eap_proxy_cb() local
2097 struct eapol_sm *sm = ctx; eapol_sm_eap_proxy_notify_sim_status() local
2108 struct eapol_sm *sm = ctx; eapol_sm_set_anon_id() local
2149 struct eapol_sm *sm; eapol_sm_init() local
2214 eapol_sm_deinit(struct eapol_sm *sm) eapol_sm_deinit() argument
2236 eapol_sm_set_ext_pw_ctx(struct eapol_sm *sm, struct ext_password_data *ext) eapol_sm_set_ext_pw_ctx() argument
2244 eapol_sm_failed(struct eapol_sm *sm) eapol_sm_failed() argument
2255 struct eapol_sm *sm = ctx; eapol_sm_get_eap_proxy_imsi() local
2264 eapol_sm_erp_flush(struct eapol_sm *sm) eapol_sm_erp_flush() argument
2271 eapol_sm_build_erp_reauth_start(struct eapol_sm *sm) eapol_sm_build_erp_reauth_start() argument
2283 eapol_sm_process_erp_finish(struct eapol_sm *sm, const u8 *buf, size_t len) eapol_sm_process_erp_finish() argument
2294 eapol_sm_update_erp_next_seq_num(struct eapol_sm *sm, u16 next_seq_num) eapol_sm_update_erp_next_seq_num() argument
2306 eapol_sm_get_erp_info(struct eapol_sm *sm, struct eap_peer_config *config, const u8 **username, size_t *username_len, const u8 **realm, size_t *realm_len, u16 *erp_next_seq_num, const u8 **rrk, size_t *rrk_len) eapol_sm_get_erp_info() argument
2323 eapol_sm_get_eap(struct eapol_sm *sm) eapol_sm_get_eap() argument
[all...]
H A Deapol_supp_sm.h324 void eapol_sm_deinit(struct eapol_sm *sm);
325 void eapol_sm_step(struct eapol_sm *sm);
326 int eapol_sm_get_status(struct eapol_sm *sm, char *buf, size_t buflen,
328 int eapol_sm_get_mib(struct eapol_sm *sm, char *buf, size_t buflen);
329 void eapol_sm_configure(struct eapol_sm *sm, int heldPeriod, int authPeriod,
331 int eapol_sm_rx_eapol(struct eapol_sm *sm, const u8 *src, const u8 *buf,
333 void eapol_sm_notify_tx_eapol_key(struct eapol_sm *sm);
334 void eapol_sm_notify_portEnabled(struct eapol_sm *sm, bool enabled);
335 void eapol_sm_notify_portValid(struct eapol_sm *sm, bool valid);
336 void eapol_sm_notify_eap_success(struct eapol_sm *sm, boo
376 eapol_sm_deinit(struct eapol_sm *sm) eapol_sm_deinit() argument
379 eapol_sm_step(struct eapol_sm *sm) eapol_sm_step() argument
382 eapol_sm_get_status(struct eapol_sm *sm, char *buf, size_t buflen, int verbose) eapol_sm_get_status() argument
387 eapol_sm_get_mib(struct eapol_sm *sm, char *buf, size_t buflen) eapol_sm_get_mib() argument
392 eapol_sm_configure(struct eapol_sm *sm, int heldPeriod, int authPeriod, int startPeriod, int maxStart) eapol_sm_configure() argument
397 eapol_sm_rx_eapol(struct eapol_sm *sm, const u8 *src, const u8 *buf, size_t len) eapol_sm_rx_eapol() argument
402 eapol_sm_notify_tx_eapol_key(struct eapol_sm *sm) eapol_sm_notify_tx_eapol_key() argument
405 eapol_sm_notify_portEnabled(struct eapol_sm *sm, bool enabled) eapol_sm_notify_portEnabled() argument
409 eapol_sm_notify_portValid(struct eapol_sm *sm, bool valid) eapol_sm_notify_portValid() argument
413 eapol_sm_notify_eap_success(struct eapol_sm *sm, bool success) eapol_sm_notify_eap_success() argument
417 eapol_sm_notify_eap_fail(struct eapol_sm *sm, bool fail) eapol_sm_notify_eap_fail() argument
420 eapol_sm_notify_config(struct eapol_sm *sm, struct eap_peer_config *config, struct eapol_config *conf) eapol_sm_notify_config() argument
425 eapol_sm_get_key(struct eapol_sm *sm, u8 *key, size_t len) eapol_sm_get_key() argument
430 eapol_sm_get_session_id(struct eapol_sm *sm, size_t *len) eapol_sm_get_session_id() argument
434 eapol_sm_notify_logoff(struct eapol_sm *sm, bool logoff) eapol_sm_notify_logoff() argument
437 eapol_sm_notify_cached(struct eapol_sm *sm) eapol_sm_notify_cached() argument
440 eapol_sm_notify_pmkid_attempt(struct eapol_sm *sm) eapol_sm_notify_pmkid_attempt() argument
444 eapol_sm_notify_portControl(struct eapol_sm *sm, PortControl portControl) eapol_sm_notify_portControl() argument
448 eapol_sm_notify_ctrl_attached(struct eapol_sm *sm) eapol_sm_notify_ctrl_attached() argument
451 eapol_sm_notify_ctrl_response(struct eapol_sm *sm) eapol_sm_notify_ctrl_response() argument
454 eapol_sm_request_reauth(struct eapol_sm *sm) eapol_sm_request_reauth() argument
457 eapol_sm_notify_lower_layer_success(struct eapol_sm *sm, int in_eapol_sm) eapol_sm_notify_lower_layer_success() argument
461 eapol_sm_invalidate_cached_session(struct eapol_sm *sm) eapol_sm_invalidate_cached_session() argument
464 eapol_sm_get_method_name(struct eapol_sm *sm) eapol_sm_get_method_name() argument
468 eapol_sm_set_ext_pw_ctx(struct eapol_sm *sm, struct ext_password_data *ext) eapol_sm_set_ext_pw_ctx() argument
472 eapol_sm_failed(struct eapol_sm *sm) eapol_sm_failed() argument
476 eapol_sm_erp_flush(struct eapol_sm *sm) eapol_sm_erp_flush() argument
480 eapol_sm_build_erp_reauth_start(struct eapol_sm *sm) eapol_sm_build_erp_reauth_start() argument
484 eapol_sm_process_erp_finish(struct eapol_sm *sm, const u8 *buf, size_t len) eapol_sm_process_erp_finish() argument
488 eapol_sm_update_erp_next_seq_num(struct eapol_sm *sm, u16 next_seq_num) eapol_sm_update_erp_next_seq_num() argument
494 eapol_sm_get_erp_info(struct eapol_sm *sm, struct eap_peer_config *config, const u8 **username, size_t *username_len, const u8 **realm, size_t *realm_len, u16 *erp_next_seq_num, const u8 **rrk, size_t *rrk_len) eapol_sm_get_erp_info() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eapol_supp/
H A Deapol_supp_sm.c152 static void eapol_sm_txLogoff(struct eapol_sm *sm);
153 static void eapol_sm_txStart(struct eapol_sm *sm);
154 static void eapol_sm_processKey(struct eapol_sm *sm);
155 static void eapol_sm_getSuppRsp(struct eapol_sm *sm);
156 static void eapol_sm_txSuppRsp(struct eapol_sm *sm);
157 static void eapol_sm_abortSupp(struct eapol_sm *sm);
158 static void eapol_sm_abort_cached(struct eapol_sm *sm);
160 static void eapol_sm_set_port_authorized(struct eapol_sm *sm);
161 static void eapol_sm_set_port_unauthorized(struct eapol_sm *sm);
168 struct eapol_sm *sm in eapol_port_timers_tick() local
203 eapol_enable_timer_tick(struct eapol_sm *sm) eapol_enable_timer_tick() argument
650 eapol_sm_txLogoff(struct eapol_sm *sm) eapol_sm_txLogoff() argument
660 eapol_sm_txStart(struct eapol_sm *sm) eapol_sm_txStart() argument
679 eapol_sm_processKey(struct eapol_sm *sm) eapol_sm_processKey() argument
858 eapol_sm_getSuppRsp(struct eapol_sm *sm) eapol_sm_getSuppRsp() argument
868 eapol_sm_txSuppRsp(struct eapol_sm *sm) eapol_sm_txSuppRsp() argument
910 eapol_sm_abortSupp(struct eapol_sm *sm) eapol_sm_abortSupp() argument
931 eapol_sm_set_port_authorized(struct eapol_sm *sm) eapol_sm_set_port_authorized() argument
943 eapol_sm_set_port_unauthorized(struct eapol_sm *sm) eapol_sm_set_port_unauthorized() argument
963 eapol_sm_step(struct eapol_sm *sm) eapol_sm_step() argument
1097 eapol_sm_configure(struct eapol_sm *sm, int heldPeriod, int authPeriod, int startPeriod, int maxStart) eapol_sm_configure() argument
1118 eapol_sm_get_method_name(struct eapol_sm *sm) eapol_sm_get_method_name() argument
1142 eapol_sm_get_status(struct eapol_sm *sm, char *buf, size_t buflen, int verbose) eapol_sm_get_status() argument
1201 eapol_sm_get_mib(struct eapol_sm *sm, char *buf, size_t buflen) eapol_sm_get_mib() argument
1271 eapol_sm_rx_eapol(struct eapol_sm *sm, const u8 *src, const u8 *buf, size_t len) eapol_sm_rx_eapol() argument
1427 eapol_sm_notify_tx_eapol_key(struct eapol_sm *sm) eapol_sm_notify_tx_eapol_key() argument
1441 eapol_sm_notify_portEnabled(struct eapol_sm *sm, Boolean enabled) eapol_sm_notify_portEnabled() argument
1461 eapol_sm_notify_portValid(struct eapol_sm *sm, Boolean valid) eapol_sm_notify_portValid() argument
1483 eapol_sm_notify_eap_success(struct eapol_sm *sm, Boolean success) eapol_sm_notify_eap_success() argument
1505 eapol_sm_notify_eap_fail(struct eapol_sm *sm, Boolean fail) eapol_sm_notify_eap_fail() argument
1529 eapol_sm_notify_config(struct eapol_sm *sm, struct eap_peer_config *config, const struct eapol_config *conf) eapol_sm_notify_config() argument
1575 eapol_sm_get_key(struct eapol_sm *sm, u8 *key, size_t len) eapol_sm_get_key() argument
1629 eapol_sm_get_session_id(struct eapol_sm *sm, size_t *len) eapol_sm_get_session_id() argument
1646 eapol_sm_notify_logoff(struct eapol_sm *sm, Boolean logoff) eapol_sm_notify_logoff() argument
1666 eapol_sm_notify_cached(struct eapol_sm *sm) eapol_sm_notify_cached() argument
1683 eapol_sm_notify_pmkid_attempt(struct eapol_sm *sm) eapol_sm_notify_pmkid_attempt() argument
1692 eapol_sm_abort_cached(struct eapol_sm *sm) eapol_sm_abort_cached() argument
1720 eapol_sm_register_scard_ctx(struct eapol_sm *sm, void *ctx) eapol_sm_register_scard_ctx() argument
1736 eapol_sm_notify_portControl(struct eapol_sm *sm, PortControl portControl) eapol_sm_notify_portControl() argument
1754 eapol_sm_notify_ctrl_attached(struct eapol_sm *sm) eapol_sm_notify_ctrl_attached() argument
1769 eapol_sm_notify_ctrl_response(struct eapol_sm *sm) eapol_sm_notify_ctrl_response() argument
1791 eapol_sm_request_reauth(struct eapol_sm *sm) eapol_sm_request_reauth() argument
1809 eapol_sm_notify_lower_layer_success(struct eapol_sm *sm, int in_eapol_sm) eapol_sm_notify_lower_layer_success() argument
1823 eapol_sm_invalidate_cached_session(struct eapol_sm *sm) eapol_sm_invalidate_cached_session() argument
1832 struct eapol_sm *sm = ctx; eapol_sm_get_config() local
1839 struct eapol_sm *sm = ctx; eapol_sm_get_eapReqData() local
1849 struct eapol_sm *sm = ctx; eapol_sm_get_bool() local
1881 struct eapol_sm *sm = ctx; eapol_sm_set_bool() local
1921 struct eapol_sm *sm = ctx; eapol_sm_get_int() local
1935 struct eapol_sm *sm = ctx; eapol_sm_set_int() local
1951 struct eapol_sm *sm = ctx; eapol_sm_set_config_blob() local
1962 struct eapol_sm *sm = ctx; eapol_sm_get_config_blob() local
1975 struct eapol_sm *sm = ctx; eapol_sm_notify_pending() local
1992 struct eapol_sm *sm = ctx; eapol_sm_eap_param_needed() local
2004 struct eapol_sm *sm = ctx; eapol_sm_notify_cert() local
2013 struct eapol_sm *sm = ctx; eapol_sm_notify_status() local
2022 struct eapol_sm *sm = ctx; eapol_sm_notify_eap_error() local
2033 struct eapol_sm *sm = ctx; eapol_sm_eap_proxy_cb() local
2044 struct eapol_sm *sm = ctx; eapol_sm_eap_proxy_notify_sim_status() local
2055 struct eapol_sm *sm = ctx; eapol_sm_set_anon_id() local
2096 struct eapol_sm *sm; eapol_sm_init() local
2155 eapol_sm_deinit(struct eapol_sm *sm) eapol_sm_deinit() argument
2172 eapol_sm_set_ext_pw_ctx(struct eapol_sm *sm, struct ext_password_data *ext) eapol_sm_set_ext_pw_ctx() argument
2180 eapol_sm_failed(struct eapol_sm *sm) eapol_sm_failed() argument
2191 struct eapol_sm *sm = ctx; eapol_sm_get_eap_proxy_imsi() local
2200 eapol_sm_erp_flush(struct eapol_sm *sm) eapol_sm_erp_flush() argument
2207 eapol_sm_build_erp_reauth_start(struct eapol_sm *sm) eapol_sm_build_erp_reauth_start() argument
2219 eapol_sm_process_erp_finish(struct eapol_sm *sm, const u8 *buf, size_t len) eapol_sm_process_erp_finish() argument
2230 eapol_sm_update_erp_next_seq_num(struct eapol_sm *sm, u16 next_seq_num) eapol_sm_update_erp_next_seq_num() argument
2242 eapol_sm_get_erp_info(struct eapol_sm *sm, struct eap_peer_config *config, const u8 **username, size_t *username_len, const u8 **realm, size_t *realm_len, u16 *erp_next_seq_num, const u8 **rrk, size_t *rrk_len) eapol_sm_get_erp_info() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eapol_auth/
H A Deapol_auth_sm.c23 #define STATE_MACHINE_ADDR sm->addr
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)
35 #define txCannedFail() eapol_auth_tx_canned_eap(sm, 0)
36 #define txCannedSuccess() eapol_auth_tx_canned_eap(sm, 1)
37 #define txReq() eapol_auth_tx_req(sm)
85 eapol_auth_tx_canned_eap(struct eapol_state_machine *sm, int success) eapol_auth_tx_canned_eap() argument
106 eapol_auth_tx_req(struct eapol_state_machine *sm) eapol_auth_tx_req() argument
777 struct eapol_state_machine *sm; eapol_auth_alloc() local
885 eapol_auth_free(struct eapol_state_machine *sm) eapol_auth_free() argument
908 eapol_sm_step_run(struct eapol_state_machine *sm) eapol_sm_step_run() argument
989 struct eapol_state_machine *sm = eloop_ctx; eapol_sm_step_cb() local
1001 eapol_auth_step(struct eapol_state_machine *sm) eapol_auth_step() argument
1013 eapol_auth_initialize(struct eapol_state_machine *sm) eapol_auth_initialize() argument
1034 struct eapol_state_machine *sm = ctx; eapol_sm_get_eap_user() local
1047 struct eapol_state_machine *sm = ctx; eapol_sm_get_eap_req_id_text() local
1055 struct eapol_state_machine *sm = ctx; eapol_sm_get_erp_send_reauth_start() local
1062 struct eapol_state_machine *sm = ctx; eapol_sm_get_erp_domain() local
1070 struct eapol_state_machine *sm = ctx; eapol_sm_erp_get_key() local
1077 struct eapol_state_machine *sm = ctx; eapol_sm_erp_add_key() local
1094 eapol_auth_eap_pending_cb(struct eapol_state_machine *sm, void *ctx) eapol_auth_eap_pending_cb() argument
1106 eapol_auth_reauthenticate(struct eapol_state_machine *sm) eapol_auth_reauthenticate() argument
1115 eapol_auth_set_conf(struct eapol_state_machine *sm, const char *param, const char *value) eapol_auth_set_conf() argument
[all...]
H A Deapol_auth_dump.c121 int eapol_auth_dump_state(struct eapol_state_machine *sm, char *buf, in eapol_auth_dump_state() argument
132 sm->aWhile, sm->quietWhile, sm->reAuthWhen); in eapol_auth_dump_state()
158 _SB(sm->authAbort), in eapol_auth_dump_state()
159 _SB(sm->authFail), in eapol_auth_dump_state()
160 port_state_txt(sm->authPortStatus), in eapol_auth_dump_state()
161 _SB(sm->authStart), in eapol_auth_dump_state()
162 _SB(sm->authTimeout), in eapol_auth_dump_state()
163 _SB(sm in eapol_auth_dump_state()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eapol_auth/
H A Deapol_auth_sm.c23 #define STATE_MACHINE_ADDR sm->addr
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)
35 #define txCannedFail() eapol_auth_tx_canned_eap(sm, 0)
36 #define txCannedSuccess() eapol_auth_tx_canned_eap(sm, 1)
37 #define txReq() eapol_auth_tx_req(sm)
86 eapol_auth_tx_canned_eap(struct eapol_state_machine *sm, int success) eapol_auth_tx_canned_eap() argument
107 eapol_auth_tx_req(struct eapol_state_machine *sm) eapol_auth_tx_req() argument
782 struct eapol_state_machine *sm; eapol_auth_alloc() local
868 eapol_auth_free(struct eapol_state_machine *sm) eapol_auth_free() argument
891 eapol_sm_step_run(struct eapol_state_machine *sm) eapol_sm_step_run() argument
974 struct eapol_state_machine *sm = eloop_ctx; eapol_sm_step_cb() local
986 eapol_auth_step(struct eapol_state_machine *sm) eapol_auth_step() argument
998 eapol_auth_initialize(struct eapol_state_machine *sm) eapol_auth_initialize() argument
1019 struct eapol_state_machine *sm = ctx; eapol_sm_get_eap_user() local
1032 struct eapol_state_machine *sm = ctx; eapol_sm_get_eap_req_id_text() local
1040 struct eapol_state_machine *sm = ctx; eapol_sm_get_erp_send_reauth_start() local
1047 struct eapol_state_machine *sm = ctx; eapol_sm_get_erp_domain() local
1055 struct eapol_state_machine *sm = ctx; eapol_sm_erp_get_key() local
1062 struct eapol_state_machine *sm = ctx; eapol_sm_erp_add_key() local
1079 eapol_auth_eap_pending_cb(struct eapol_state_machine *sm, void *ctx) eapol_auth_eap_pending_cb() argument
1091 eapol_auth_reauthenticate(struct eapol_state_machine *sm) eapol_auth_reauthenticate() argument
1100 eapol_auth_set_conf(struct eapol_state_machine *sm, const char *param, const char *value) eapol_auth_set_conf() argument
[all...]
H A Deapol_auth_dump.c121 int eapol_auth_dump_state(struct eapol_state_machine *sm, char *buf, in eapol_auth_dump_state() argument
132 sm->aWhile, sm->quietWhile, sm->reAuthWhen); in eapol_auth_dump_state()
158 _SB(sm->authAbort), in eapol_auth_dump_state()
159 _SB(sm->authFail), in eapol_auth_dump_state()
160 port_state_txt(sm->authPortStatus), in eapol_auth_dump_state()
161 _SB(sm->authStart), in eapol_auth_dump_state()
162 _SB(sm->authTimeout), in eapol_auth_dump_state()
163 _SB(sm in eapol_auth_dump_state()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/
H A Deap.c40 static bool eap_sm_allowMethod(struct eap_sm *sm, int vendor,
42 static struct wpabuf * eap_sm_buildNak(struct eap_sm *sm, int id);
43 static void eap_sm_processIdentity(struct eap_sm *sm,
45 static void eap_sm_processNotify(struct eap_sm *sm, const struct wpabuf *req);
47 static void eap_sm_parseEapReq(struct eap_sm *sm, const struct wpabuf *req);
52 static void eap_sm_request(struct eap_sm *sm, enum wpa_ctrl_req_type field,
57 static bool eapol_get_bool(struct eap_sm *sm, enum eapol_bool_var var) in eapol_get_bool() argument
59 return sm->eapol_cb->get_bool(sm->eapol_ctx, var); in eapol_get_bool()
63 static void eapol_set_bool(struct eap_sm *sm, enu argument
70 eapol_get_int(struct eap_sm *sm, enum eapol_int_var var) eapol_get_int() argument
76 eapol_set_int(struct eap_sm *sm, enum eapol_int_var var, unsigned int value) eapol_set_int() argument
83 eapol_get_eapReqData(struct eap_sm *sm) eapol_get_eapReqData() argument
89 eap_notify_status(struct eap_sm *sm, const char *status, const char *parameter) eap_notify_status() argument
99 eap_report_error(struct eap_sm *sm, int error_code) eap_report_error() argument
107 eap_sm_free_key(struct eap_sm *sm) eap_sm_free_key() argument
116 eap_deinit_prev_method(struct eap_sm *sm, const char *txt) eap_deinit_prev_method() argument
140 eap_config_allowed_method(struct eap_sm *sm, struct eap_peer_config *config, int vendor, u32 method) eap_config_allowed_method() argument
167 eap_allowed_method(struct eap_sm *sm, int vendor, u32 method) eap_allowed_method() argument
175 eap_sm_append_3gpp_realm(struct eap_sm *sm, char *imsi, size_t max_len, size_t *imsi_len, int mnc_len) eap_sm_append_3gpp_realm() argument
443 eap_get_realm(struct eap_sm *sm, struct eap_peer_config *config) eap_get_realm() argument
526 eap_home_realm(struct eap_sm *sm) eap_home_realm() argument
533 eap_erp_get_key(struct eap_sm *sm, const char *realm) eap_erp_get_key() argument
553 eap_erp_get_key_nai(struct eap_sm *sm, const char *nai) eap_erp_get_key_nai() argument
573 eap_erp_remove_keys_realm(struct eap_sm *sm, const char *realm) eap_erp_remove_keys_realm() argument
585 eap_peer_update_erp_next_seq_num(struct eap_sm *sm, u16 next_seq_num) eap_peer_update_erp_next_seq_num() argument
619 eap_peer_get_erp_info(struct eap_sm *sm, struct eap_peer_config *config, const u8 **username, size_t *username_len, const u8 **realm, size_t *realm_len, u16 *erp_next_seq_num, const u8 **rrk, size_t *rrk_len) eap_peer_get_erp_info() argument
670 eap_peer_erp_free_keys(struct eap_sm *sm) eap_peer_erp_free_keys() argument
684 eap_peer_erp_init(struct eap_sm *sm, u8 *ext_session_id, size_t ext_session_id_len, u8 *ext_emsk, size_t ext_emsk_len) eap_peer_erp_init() argument
801 eap_peer_build_erp_reauth_start(struct eap_sm *sm, u8 eap_id) eap_peer_build_erp_reauth_start() argument
858 eap_peer_erp_reauth_start(struct eap_sm *sm, u8 eap_id) eap_peer_erp_reauth_start() argument
1123 eap_success_workaround(struct eap_sm *sm, int reqId, int lastId) eap_success_workaround() argument
1153 eap_peer_sm_step_idle(struct eap_sm *sm) eap_peer_sm_step_idle() argument
1185 eap_peer_req_is_duplicate(struct eap_sm *sm) eap_peer_req_is_duplicate() argument
1212 eapol_sm_get_lastId(struct eap_sm *sm) eapol_sm_get_lastId() argument
1218 eap_peer_sm_allow_canned(struct eap_sm *sm) eap_peer_sm_allow_canned() argument
1227 eap_peer_sm_step_received(struct eap_sm *sm) eap_peer_sm_step_received() argument
1289 eap_peer_sm_step_local(struct eap_sm *sm) eap_peer_sm_step_local() argument
1391 eap_sm_allowMethod(struct eap_sm *sm, int vendor, enum eap_type method) eap_sm_allowMethod() argument
1407 eap_sm_build_expanded_nak( struct eap_sm *sm, int id, const struct eap_method *methods, size_t count) eap_sm_build_expanded_nak() argument
1454 eap_sm_buildNak(struct eap_sm *sm, int id) eap_sm_buildNak() argument
1503 eap_sm_processIdentity(struct eap_sm *sm, const struct wpabuf *req) eap_sm_processIdentity() argument
1555 eap_sm_imsi_identity(struct eap_sm *sm, struct eap_peer_config *conf) eap_sm_imsi_identity() argument
1635 eap_sm_set_scard_pin(struct eap_sm *sm, struct eap_peer_config *conf) eap_sm_set_scard_pin() argument
1654 eap_sm_get_scard_identity(struct eap_sm *sm, struct eap_peer_config *conf) eap_sm_get_scard_identity() argument
1677 eap_sm_buildIdentity(struct eap_sm *sm, int id, int encrypted) eap_sm_buildIdentity() argument
1746 eap_sm_processNotify(struct eap_sm *sm, const struct wpabuf *req) eap_sm_processNotify() argument
1779 eap_peer_initiate(struct eap_sm *sm, const struct eap_hdr *hdr, size_t len) eap_peer_initiate() argument
1830 eap_peer_finish(struct eap_sm *sm, const struct eap_hdr *hdr, size_t len) eap_peer_finish() argument
1991 eap_sm_parseEapReq(struct eap_sm *sm, const struct wpabuf *req) eap_sm_parseEapReq() argument
2108 struct eap_sm *sm = ctx; eap_peer_sm_tls_event() local
2180 struct eap_sm *sm; eap_peer_sm_init() local
2236 eap_peer_sm_deinit(struct eap_sm *sm) eap_peer_sm_deinit() argument
2267 eap_peer_sm_step(struct eap_sm *sm) eap_peer_sm_step() argument
2287 eap_sm_abort(struct eap_sm *sm) eap_sm_abort() argument
2392 eap_sm_get_status(struct eap_sm *sm, char *buf, size_t buflen, int verbose) eap_sm_get_status() argument
2452 eap_sm_request(struct eap_sm *sm, enum wpa_ctrl_req_type field, const char *msg, size_t msglen) eap_sm_request() argument
2517 eap_sm_get_method_name(struct eap_sm *sm) eap_sm_get_method_name() argument
2534 eap_sm_request_identity(struct eap_sm *sm) eap_sm_request_identity() argument
2549 eap_sm_request_password(struct eap_sm *sm) eap_sm_request_password() argument
2564 eap_sm_request_new_password(struct eap_sm *sm) eap_sm_request_new_password() argument
2579 eap_sm_request_pin(struct eap_sm *sm) eap_sm_request_pin() argument
2595 eap_sm_request_otp(struct eap_sm *sm, const char *msg, size_t msg_len) eap_sm_request_otp() argument
2610 eap_sm_request_passphrase(struct eap_sm *sm) eap_sm_request_passphrase() argument
2621 eap_sm_request_sim(struct eap_sm *sm, const char *req) eap_sm_request_sim() argument
2634 eap_sm_notify_ctrl_attached(struct eap_sm *sm) eap_sm_notify_ctrl_attached() argument
2743 eap_set_fast_reauth(struct eap_sm *sm, int enabled) eap_set_fast_reauth() argument
2754 eap_set_workaround(struct eap_sm *sm, unsigned int workaround) eap_set_workaround() argument
2770 eap_get_config(struct eap_sm *sm) eap_get_config() argument
2782 eap_get_config_identity(struct eap_sm *sm, size_t *len) eap_get_config_identity() argument
2799 eap_get_ext_password(struct eap_sm *sm, struct eap_peer_config *config) eap_get_ext_password() argument
2836 eap_get_config_password(struct eap_sm *sm, size_t *len) eap_get_config_password() argument
2872 eap_get_config_password2(struct eap_sm *sm, size_t *len, int *hash) eap_get_config_password2() argument
2912 eap_get_config_new_password(struct eap_sm *sm, size_t *len) eap_get_config_new_password() argument
2928 eap_get_config_otp(struct eap_sm *sm, size_t *len) eap_get_config_otp() argument
2946 eap_clear_config_otp(struct eap_sm *sm) eap_clear_config_otp() argument
2963 eap_get_config_phase1(struct eap_sm *sm) eap_get_config_phase1() argument
2977 eap_get_config_phase2(struct eap_sm *sm) eap_get_config_phase2() argument
2986 eap_get_config_fragment_size(struct eap_sm *sm) eap_get_config_fragment_size() argument
3000 eap_key_available(struct eap_sm *sm) eap_key_available() argument
3015 eap_notify_success(struct eap_sm *sm) eap_notify_success() argument
3031 eap_notify_lower_layer_success(struct eap_sm *sm) eap_notify_lower_layer_success() argument
3061 eap_get_eapSessionId(struct eap_sm *sm, size_t *len) eap_get_eapSessionId() argument
3084 eap_get_eapKeyData(struct eap_sm *sm, size_t *len) eap_get_eapKeyData() argument
3106 eap_get_eapRespData(struct eap_sm *sm) eap_get_eapRespData() argument
3128 eap_register_scard_ctx(struct eap_sm *sm, void *ctx) eap_register_scard_ctx() argument
3143 eap_set_config_blob(struct eap_sm *sm, struct wpa_config_blob *blob) eap_set_config_blob() argument
3157 eap_get_config_blob(struct eap_sm *sm, const char *name) eap_get_config_blob() argument
3176 eap_set_force_disabled(struct eap_sm *sm, int disabled) eap_set_force_disabled() argument
3187 eap_set_external_sim(struct eap_sm *sm, int external_sim) eap_set_external_sim() argument
3202 eap_notify_pending(struct eap_sm *sm) eap_notify_pending() argument
3212 eap_invalidate_cached_session(struct eap_sm *sm) eap_invalidate_cached_session() argument
3245 eap_sm_set_ext_pw_ctx(struct eap_sm *sm, struct ext_password_data *ext) eap_sm_set_ext_pw_ctx() argument
3259 eap_set_anon_id(struct eap_sm *sm, const u8 *id, size_t len) eap_set_anon_id() argument
3266 eap_peer_was_failure_expected(struct eap_sm *sm) eap_peer_was_failure_expected() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/
H A Deap.c39 static Boolean eap_sm_allowMethod(struct eap_sm *sm, int vendor,
41 static struct wpabuf * eap_sm_buildNak(struct eap_sm *sm, int id);
42 static void eap_sm_processIdentity(struct eap_sm *sm,
44 static void eap_sm_processNotify(struct eap_sm *sm, const struct wpabuf *req);
46 static void eap_sm_parseEapReq(struct eap_sm *sm, const struct wpabuf *req);
51 static void eap_sm_request(struct eap_sm *sm, enum wpa_ctrl_req_type field,
56 static Boolean eapol_get_bool(struct eap_sm *sm, enum eapol_bool_var var) in eapol_get_bool() argument
58 return sm->eapol_cb->get_bool(sm->eapol_ctx, var); in eapol_get_bool()
62 static void eapol_set_bool(struct eap_sm *sm, enu argument
69 eapol_get_int(struct eap_sm *sm, enum eapol_int_var var) eapol_get_int() argument
75 eapol_set_int(struct eap_sm *sm, enum eapol_int_var var, unsigned int value) eapol_set_int() argument
82 eapol_get_eapReqData(struct eap_sm *sm) eapol_get_eapReqData() argument
88 eap_notify_status(struct eap_sm *sm, const char *status, const char *parameter) eap_notify_status() argument
98 eap_report_error(struct eap_sm *sm, int error_code) eap_report_error() argument
106 eap_sm_free_key(struct eap_sm *sm) eap_sm_free_key() argument
115 eap_deinit_prev_method(struct eap_sm *sm, const char *txt) eap_deinit_prev_method() argument
139 eap_config_allowed_method(struct eap_sm *sm, struct eap_peer_config *config, int vendor, u32 method) eap_config_allowed_method() argument
166 eap_allowed_method(struct eap_sm *sm, int vendor, u32 method) eap_allowed_method() argument
174 eap_sm_append_3gpp_realm(struct eap_sm *sm, char *imsi, size_t max_len, size_t *imsi_len, int mnc_len) eap_sm_append_3gpp_realm() argument
435 eap_get_realm(struct eap_sm *sm, struct eap_peer_config *config) eap_get_realm() argument
518 eap_home_realm(struct eap_sm *sm) eap_home_realm() argument
525 eap_erp_get_key(struct eap_sm *sm, const char *realm) eap_erp_get_key() argument
545 eap_erp_get_key_nai(struct eap_sm *sm, const char *nai) eap_erp_get_key_nai() argument
565 eap_erp_remove_keys_realm(struct eap_sm *sm, const char *realm) eap_erp_remove_keys_realm() argument
577 eap_peer_update_erp_next_seq_num(struct eap_sm *sm, u16 next_seq_num) eap_peer_update_erp_next_seq_num() argument
611 eap_peer_get_erp_info(struct eap_sm *sm, struct eap_peer_config *config, const u8 **username, size_t *username_len, const u8 **realm, size_t *realm_len, u16 *erp_next_seq_num, const u8 **rrk, size_t *rrk_len) eap_peer_get_erp_info() argument
662 eap_peer_erp_free_keys(struct eap_sm *sm) eap_peer_erp_free_keys() argument
676 eap_peer_erp_init(struct eap_sm *sm, u8 *ext_session_id, size_t ext_session_id_len, u8 *ext_emsk, size_t ext_emsk_len) eap_peer_erp_init() argument
793 eap_peer_build_erp_reauth_start(struct eap_sm *sm, u8 eap_id) eap_peer_build_erp_reauth_start() argument
849 eap_peer_erp_reauth_start(struct eap_sm *sm, u8 eap_id) eap_peer_erp_reauth_start() argument
1098 eap_success_workaround(struct eap_sm *sm, int reqId, int lastId) eap_success_workaround() argument
1128 eap_peer_sm_step_idle(struct eap_sm *sm) eap_peer_sm_step_idle() argument
1160 eap_peer_req_is_duplicate(struct eap_sm *sm) eap_peer_req_is_duplicate() argument
1186 eap_peer_sm_allow_canned(struct eap_sm *sm) eap_peer_sm_allow_canned() argument
1195 eap_peer_sm_step_received(struct eap_sm *sm) eap_peer_sm_step_received() argument
1257 eap_peer_sm_step_local(struct eap_sm *sm) eap_peer_sm_step_local() argument
1351 eap_sm_allowMethod(struct eap_sm *sm, int vendor, EapType method) eap_sm_allowMethod() argument
1367 eap_sm_build_expanded_nak( struct eap_sm *sm, int id, const struct eap_method *methods, size_t count) eap_sm_build_expanded_nak() argument
1414 eap_sm_buildNak(struct eap_sm *sm, int id) eap_sm_buildNak() argument
1463 eap_sm_processIdentity(struct eap_sm *sm, const struct wpabuf *req) eap_sm_processIdentity() argument
1515 eap_sm_imsi_identity(struct eap_sm *sm, struct eap_peer_config *conf) eap_sm_imsi_identity() argument
1595 eap_sm_set_scard_pin(struct eap_sm *sm, struct eap_peer_config *conf) eap_sm_set_scard_pin() argument
1614 eap_sm_get_scard_identity(struct eap_sm *sm, struct eap_peer_config *conf) eap_sm_get_scard_identity() argument
1637 eap_sm_buildIdentity(struct eap_sm *sm, int id, int encrypted) eap_sm_buildIdentity() argument
1701 eap_sm_processNotify(struct eap_sm *sm, const struct wpabuf *req) eap_sm_processNotify() argument
1734 eap_peer_initiate(struct eap_sm *sm, const struct eap_hdr *hdr, size_t len) eap_peer_initiate() argument
1785 eap_peer_finish(struct eap_sm *sm, const struct eap_hdr *hdr, size_t len) eap_peer_finish() argument
1946 eap_sm_parseEapReq(struct eap_sm *sm, const struct wpabuf *req) eap_sm_parseEapReq() argument
2063 struct eap_sm *sm = ctx; eap_peer_sm_tls_event() local
2135 struct eap_sm *sm; eap_peer_sm_init() local
2185 eap_peer_sm_deinit(struct eap_sm *sm) eap_peer_sm_deinit() argument
2208 eap_peer_sm_step(struct eap_sm *sm) eap_peer_sm_step() argument
2228 eap_sm_abort(struct eap_sm *sm) eap_sm_abort() argument
2333 eap_sm_get_status(struct eap_sm *sm, char *buf, size_t buflen, int verbose) eap_sm_get_status() argument
2393 eap_sm_request(struct eap_sm *sm, enum wpa_ctrl_req_type field, const char *msg, size_t msglen) eap_sm_request() argument
2458 eap_sm_get_method_name(struct eap_sm *sm) eap_sm_get_method_name() argument
2475 eap_sm_request_identity(struct eap_sm *sm) eap_sm_request_identity() argument
2490 eap_sm_request_password(struct eap_sm *sm) eap_sm_request_password() argument
2505 eap_sm_request_new_password(struct eap_sm *sm) eap_sm_request_new_password() argument
2520 eap_sm_request_pin(struct eap_sm *sm) eap_sm_request_pin() argument
2536 eap_sm_request_otp(struct eap_sm *sm, const char *msg, size_t msg_len) eap_sm_request_otp() argument
2551 eap_sm_request_passphrase(struct eap_sm *sm) eap_sm_request_passphrase() argument
2562 eap_sm_request_sim(struct eap_sm *sm, const char *req) eap_sm_request_sim() argument
2575 eap_sm_notify_ctrl_attached(struct eap_sm *sm) eap_sm_notify_ctrl_attached() argument
2682 eap_set_fast_reauth(struct eap_sm *sm, int enabled) eap_set_fast_reauth() argument
2693 eap_set_workaround(struct eap_sm *sm, unsigned int workaround) eap_set_workaround() argument
2709 eap_get_config(struct eap_sm *sm) eap_get_config() argument
2721 eap_get_config_identity(struct eap_sm *sm, size_t *len) eap_get_config_identity() argument
2731 eap_get_ext_password(struct eap_sm *sm, struct eap_peer_config *config) eap_get_ext_password() argument
2758 eap_get_config_password(struct eap_sm *sm, size_t *len) eap_get_config_password() argument
2785 eap_get_config_password2(struct eap_sm *sm, size_t *len, int *hash) eap_get_config_password2() argument
2813 eap_get_config_new_password(struct eap_sm *sm, size_t *len) eap_get_config_new_password() argument
2829 eap_get_config_otp(struct eap_sm *sm, size_t *len) eap_get_config_otp() argument
2847 eap_clear_config_otp(struct eap_sm *sm) eap_clear_config_otp() argument
2864 eap_get_config_phase1(struct eap_sm *sm) eap_get_config_phase1() argument
2878 eap_get_config_phase2(struct eap_sm *sm) eap_get_config_phase2() argument
2887 eap_get_config_fragment_size(struct eap_sm *sm) eap_get_config_fragment_size() argument
2901 eap_key_available(struct eap_sm *sm) eap_key_available() argument
2916 eap_notify_success(struct eap_sm *sm) eap_notify_success() argument
2932 eap_notify_lower_layer_success(struct eap_sm *sm) eap_notify_lower_layer_success() argument
2962 eap_get_eapSessionId(struct eap_sm *sm, size_t *len) eap_get_eapSessionId() argument
2985 eap_get_eapKeyData(struct eap_sm *sm, size_t *len) eap_get_eapKeyData() argument
3007 eap_get_eapRespData(struct eap_sm *sm) eap_get_eapRespData() argument
3029 eap_register_scard_ctx(struct eap_sm *sm, void *ctx) eap_register_scard_ctx() argument
3044 eap_set_config_blob(struct eap_sm *sm, struct wpa_config_blob *blob) eap_set_config_blob() argument
3058 eap_get_config_blob(struct eap_sm *sm, const char *name) eap_get_config_blob() argument
3077 eap_set_force_disabled(struct eap_sm *sm, int disabled) eap_set_force_disabled() argument
3088 eap_set_external_sim(struct eap_sm *sm, int external_sim) eap_set_external_sim() argument
3103 eap_notify_pending(struct eap_sm *sm) eap_notify_pending() argument
3113 eap_invalidate_cached_session(struct eap_sm *sm) eap_invalidate_cached_session() argument
3146 eap_sm_set_ext_pw_ctx(struct eap_sm *sm, struct ext_password_data *ext) eap_sm_set_ext_pw_ctx() argument
3160 eap_set_anon_id(struct eap_sm *sm, const u8 *id, size_t len) eap_set_anon_id() argument
3167 eap_peer_was_failure_expected(struct eap_sm *sm) eap_peer_was_failure_expected() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/rsn_supp/
H A Dwpa.c40 * @sm: Pointer to WPA state machine data from wpa_sm_init()
50 int wpa_eapol_key_send(struct wpa_sm *sm, struct wpa_ptk *ptk, in wpa_eapol_key_send() argument
55 size_t mic_len = wpa_mic_len(sm->key_mgmt, sm->pmk_len); in wpa_eapol_key_send()
59 MAC2STR(dest), ver, (int) mic_len, sm->key_mgmt); in wpa_eapol_key_send()
60 if (is_zero_ether_addr(dest) && is_zero_ether_addr(sm->bssid)) { in wpa_eapol_key_send()
65 if (wpa_sm_get_bssid(sm, sm->bssid) < 0) { in wpa_eapol_key_send()
66 wpa_dbg(sm->ctx->msg_ctx, MSG_DEBUG, in wpa_eapol_key_send()
70 dest = sm in wpa_eapol_key_send()
179 wpa_sm_key_request(struct wpa_sm *sm, int error, int pairwise) wpa_sm_key_request() argument
243 wpa_supplicant_key_mgmt_set_pmk(struct wpa_sm *sm) wpa_supplicant_key_mgmt_set_pmk() argument
261 wpa_supplicant_get_pmk(struct wpa_sm *sm, const unsigned char *src_addr, const u8 *pmkid) wpa_supplicant_get_pmk() argument
469 wpa_supplicant_send_2_of_4(struct wpa_sm *sm, const unsigned char *dst, const struct wpa_eapol_key *key, int ver, const u8 *nonce, const u8 *wpa_ie, size_t wpa_ie_len, struct wpa_ptk *ptk) wpa_supplicant_send_2_of_4() argument
560 wpa_derive_ptk(struct wpa_sm *sm, const unsigned char *src_addr, const struct wpa_eapol_key *key, struct wpa_ptk *ptk) wpa_derive_ptk() argument
585 wpa_supplicant_process_1_of_4(struct wpa_sm *sm, const unsigned char *src_addr, const struct wpa_eapol_key *key, u16 ver, const u8 *key_data, size_t key_data_len) wpa_supplicant_process_1_of_4() argument
722 struct wpa_sm *sm = eloop_ctx; wpa_sm_start_preauth() local
727 wpa_supplicant_key_neg_complete(struct wpa_sm *sm, const u8 *addr, int secure) wpa_supplicant_key_neg_complete() argument
777 struct wpa_sm *sm = eloop_ctx; wpa_sm_rekey_ptk() local
783 wpa_supplicant_install_ptk(struct wpa_sm *sm, const struct wpa_eapol_key *key) wpa_supplicant_install_ptk() argument
852 wpa_supplicant_check_group_cipher(struct wpa_sm *sm, int group_cipher, int keylen, int maxkeylen, int *key_rsc_len, enum wpa_alg *alg) wpa_supplicant_check_group_cipher() argument
888 wpa_supplicant_install_gtk(struct wpa_sm *sm, const struct wpa_gtk_data *gd, const u8 *key_rsc, int wnm_sleep) wpa_supplicant_install_gtk() argument
954 wpa_supplicant_gtk_tx_bit_workaround(const struct wpa_sm *sm, int tx) wpa_supplicant_gtk_tx_bit_workaround() argument
972 wpa_supplicant_rsc_relaxation(const struct wpa_sm *sm, const u8 *rsc) wpa_supplicant_rsc_relaxation() argument
1002 wpa_supplicant_pairwise_gtk(struct wpa_sm *sm, const struct wpa_eapol_key *key, const u8 *gtk, size_t gtk_len, int key_info) wpa_supplicant_pairwise_gtk() argument
1055 wpa_supplicant_install_igtk(struct wpa_sm *sm, const struct wpa_igtk_kde *igtk, int wnm_sleep) wpa_supplicant_install_igtk() argument
1124 ieee80211w_set_keys(struct wpa_sm *sm, struct wpa_eapol_ie_parse *ie) ieee80211w_set_keys() argument
1151 wpa_report_ie_mismatch(struct wpa_sm *sm, const char *reason, const u8 *src_addr, const u8 *wpa_ie, size_t wpa_ie_len, const u8 *rsn_ie, size_t rsn_ie_len) wpa_report_ie_mismatch() argument
1191 ft_validate_mdie(struct wpa_sm *sm, const unsigned char *src_addr, struct wpa_eapol_ie_parse *ie, const u8 *assoc_resp_mdie) ft_validate_mdie() argument
1222 ft_validate_ftie(struct wpa_sm *sm, const unsigned char *src_addr, struct wpa_eapol_ie_parse *ie, const u8 *assoc_resp_ftie) ft_validate_ftie() argument
1250 ft_validate_rsnie(struct wpa_sm *sm, const unsigned char *src_addr, struct wpa_eapol_ie_parse *ie) ft_validate_rsnie() argument
1286 wpa_supplicant_validate_ie_ft(struct wpa_sm *sm, const unsigned char *src_addr, struct wpa_eapol_ie_parse *ie) wpa_supplicant_validate_ie_ft() argument
1321 wpa_supplicant_validate_ie(struct wpa_sm *sm, const unsigned char *src_addr, struct wpa_eapol_ie_parse *ie) wpa_supplicant_validate_ie() argument
1394 wpa_supplicant_send_4_of_4(struct wpa_sm *sm, const unsigned char *dst, const struct wpa_eapol_key *key, u16 ver, u16 key_info, struct wpa_ptk *ptk) wpa_supplicant_send_4_of_4() argument
1436 wpa_supplicant_process_3_of_4(struct wpa_sm *sm, const struct wpa_eapol_key *key, u16 ver, const u8 *key_data, size_t key_data_len) wpa_supplicant_process_3_of_4() argument
1599 wpa_supplicant_process_1_of_2_rsn(struct wpa_sm *sm, const u8 *keydata, size_t keydatalen, u16 key_info, struct wpa_gtk_data *gd) wpa_supplicant_process_1_of_2_rsn() argument
1670 wpa_supplicant_process_1_of_2_wpa(struct wpa_sm *sm, const struct wpa_eapol_key *key, const u8 *key_data, size_t key_data_len, u16 key_info, u16 ver, struct wpa_gtk_data *gd) wpa_supplicant_process_1_of_2_wpa() argument
1757 wpa_supplicant_send_2_of_2(struct wpa_sm *sm, const struct wpa_eapol_key *key, int ver, u16 key_info) wpa_supplicant_send_2_of_2() argument
1824 wpa_supplicant_process_1_of_2(struct wpa_sm *sm, const unsigned char *src_addr, const struct wpa_eapol_key *key, const u8 *key_data, size_t key_data_len, u16 ver) wpa_supplicant_process_1_of_2() argument
1895 wpa_supplicant_verify_eapol_key_mic(struct wpa_sm *sm, struct wpa_eapol_key *key, u16 ver, const u8 *buf, size_t len) wpa_supplicant_verify_eapol_key_mic() argument
1976 wpa_supplicant_decrypt_key_data(struct wpa_sm *sm, struct wpa_eapol_key *key, size_t mic_len, u16 ver, u8 *key_data, size_t *key_data_len) wpa_supplicant_decrypt_key_data() argument
2069 wpa_sm_aborted_cached(struct wpa_sm *sm) wpa_sm_aborted_cached() argument
2079 wpa_eapol_key_dump(struct wpa_sm *sm, const struct wpa_eapol_key *key, unsigned int key_data_len, const u8 *mic, unsigned int mic_len) wpa_eapol_key_dump() argument
2117 wpa_supp_aead_decrypt(struct wpa_sm *sm, u8 *buf, size_t buf_len, size_t *key_data_len) wpa_supp_aead_decrypt() argument
2202 wpa_sm_rx_eapol(struct wpa_sm *sm, const u8 *src_addr, const u8 *buf, size_t len) wpa_sm_rx_eapol() argument
2465 wpa_key_mgmt_suite(struct wpa_sm *sm) wpa_key_mgmt_suite() argument
2518 wpa_sm_get_mib(struct wpa_sm *sm, char *buf, size_t buflen) wpa_sm_get_mib() argument
2594 struct wpa_sm *sm = ctx; wpa_sm_pmksa_free_cb() local
2643 struct wpa_sm *sm; wpa_sm_init() local
2672 wpa_sm_deinit(struct wpa_sm *sm) wpa_sm_deinit() argument
2714 wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid) wpa_sm_notify_assoc() argument
2794 wpa_sm_notify_disassoc(struct wpa_sm *sm) wpa_sm_notify_disassoc() argument
2831 wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len, const u8 *pmkid, const u8 *bssid) wpa_sm_set_pmk() argument
2863 wpa_sm_set_pmk_from_pmksa(struct wpa_sm *sm) wpa_sm_set_pmk_from_pmksa() argument
2887 wpa_sm_set_fast_reauth(struct wpa_sm *sm, int fast_reauth) wpa_sm_set_fast_reauth() argument
2899 wpa_sm_set_scard_ctx(struct wpa_sm *sm, void *scard_ctx) wpa_sm_set_scard_ctx() argument
2918 wpa_sm_set_config(struct wpa_sm *sm, struct rsn_supp_config *config) wpa_sm_set_config() argument
2965 wpa_sm_set_own_addr(struct wpa_sm *sm, const u8 *addr) wpa_sm_set_own_addr() argument
2978 wpa_sm_set_ifname(struct wpa_sm *sm, const char *ifname, const char *bridge_ifname) wpa_sm_set_ifname() argument
2993 wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol) wpa_sm_set_eapol() argument
3007 wpa_sm_set_param(struct wpa_sm *sm, enum wpa_sm_conf_params param, unsigned int value) wpa_sm_set_param() argument
3080 wpa_sm_get_status(struct wpa_sm *sm, char *buf, size_t buflen, int verbose) wpa_sm_get_status() argument
3119 wpa_sm_pmf_enabled(struct wpa_sm *sm) wpa_sm_pmf_enabled() argument
3134 wpa_sm_ocv_enabled(struct wpa_sm *sm) wpa_sm_ocv_enabled() argument
3154 wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm, u8 *wpa_ie, size_t *wpa_ie_len) wpa_sm_set_assoc_wpa_ie_default() argument
3213 wpa_sm_set_assoc_wpa_ie(struct wpa_sm *sm, const u8 *ie, size_t len) wpa_sm_set_assoc_wpa_ie() argument
3247 wpa_sm_set_ap_wpa_ie(struct wpa_sm *sm, const u8 *ie, size_t len) wpa_sm_set_ap_wpa_ie() argument
3281 wpa_sm_set_ap_rsn_ie(struct wpa_sm *sm, const u8 *ie, size_t len) wpa_sm_set_ap_rsn_ie() argument
3314 wpa_sm_parse_own_wpa_ie(struct wpa_sm *sm, struct wpa_ie_data *data) wpa_sm_parse_own_wpa_ie() argument
3330 wpa_sm_pmksa_cache_list(struct wpa_sm *sm, char *buf, size_t len) wpa_sm_pmksa_cache_list() argument
3336 wpa_sm_pmksa_cache_head(struct wpa_sm *sm) wpa_sm_pmksa_cache_head() argument
3343 wpa_sm_pmksa_cache_add_entry(struct wpa_sm *sm, struct rsn_pmksa_cache_entry * entry) wpa_sm_pmksa_cache_add_entry() argument
3350 wpa_sm_pmksa_cache_add(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len, const u8 *pmkid, const u8 *bssid, const u8 *fils_cache_id) wpa_sm_pmksa_cache_add() argument
3360 wpa_sm_pmksa_exists(struct wpa_sm *sm, const u8 *bssid, const void *network_ctx) wpa_sm_pmksa_exists() argument
3367 wpa_sm_drop_sa(struct wpa_sm *sm) wpa_sm_drop_sa() argument
3393 wpa_sm_has_ptk(struct wpa_sm *sm) wpa_sm_has_ptk() argument
3401 wpa_sm_update_replay_ctr(struct wpa_sm *sm, const u8 *replay_ctr) wpa_sm_update_replay_ctr() argument
3407 wpa_sm_pmksa_cache_flush(struct wpa_sm *sm, void *network_ctx) wpa_sm_pmksa_cache_flush() argument
3414 wpa_wnmsleep_install_key(struct wpa_sm *sm, u8 subelem_id, u8 *buf) wpa_wnmsleep_install_key() argument
3475 wpa_sm_get_p2p_ip_addr(struct wpa_sm *sm, u8 *buf) wpa_sm_get_p2p_ip_addr() argument
3486 wpa_sm_set_rx_replay_ctr(struct wpa_sm *sm, const u8 *rx_replay_counter) wpa_sm_set_rx_replay_ctr() argument
3498 wpa_sm_set_ptk_kck_kek(struct wpa_sm *sm, const u8 *ptk_kck, size_t ptk_kck_len, const u8 *ptk_kek, size_t ptk_kek_len) wpa_sm_set_ptk_kck_kek() argument
3518 wpa_sm_set_test_assoc_ie(struct wpa_sm *sm, struct wpabuf *buf) wpa_sm_set_test_assoc_ie() argument
3525 wpa_sm_get_anonce(struct wpa_sm *sm) wpa_sm_get_anonce() argument
3533 wpa_sm_get_key_mgmt(struct wpa_sm *sm) wpa_sm_get_key_mgmt() argument
3541 fils_build_auth(struct wpa_sm *sm, int dh_group, const u8 *md) fils_build_auth() argument
3672 fils_process_auth(struct wpa_sm *sm, const u8 *bssid, const u8 *data, size_t len) fils_process_auth() argument
3969 fils_ft_build_assoc_req_rsne(struct wpa_sm *sm, struct wpabuf *buf) fils_ft_build_assoc_req_rsne() argument
4079 fils_build_assoc_req(struct wpa_sm *sm, const u8 **kek, size_t *kek_len, const u8 **snonce, const u8 **anonce, const struct wpabuf **hlp, unsigned int num_hlp) fils_build_assoc_req() argument
4200 fils_process_hlp_resp(struct wpa_sm *sm, const u8 *resp, size_t len) fils_process_hlp_resp() argument
4216 fils_process_hlp_container(struct wpa_sm *sm, const u8 *pos, size_t len) fils_process_hlp_container() argument
4265 fils_process_assoc_resp(struct wpa_sm *sm, const u8 *resp, size_t len) fils_process_assoc_resp() argument
4492 wpa_sm_set_reset_fils_completed(struct wpa_sm *sm, int set) wpa_sm_set_reset_fils_completed() argument
4501 wpa_fils_is_completed(struct wpa_sm *sm) wpa_fils_is_completed() argument
4513 owe_build_assoc_req(struct wpa_sm *sm, u16 group) owe_build_assoc_req() argument
4558 owe_process_assoc_resp(struct wpa_sm *sm, const u8 *bssid, const u8 *resp_ies, size_t resp_ies_len) owe_process_assoc_resp() argument
4718 wpa_sm_set_fils_cache_id(struct wpa_sm *sm, const u8 *fils_cache_id) wpa_sm_set_fils_cache_id() argument
4730 wpa_sm_set_dpp_z(struct wpa_sm *sm, const struct wpabuf *z) wpa_sm_set_dpp_z() argument
[all...]
H A Dwpa_ft.c25 int wpa_derive_ptk_ft(struct wpa_sm *sm, const unsigned char *src_addr, in wpa_derive_ptk_ft() argument
30 int use_sha384 = wpa_key_mgmt_sha384(sm->key_mgmt); in wpa_derive_ptk_ft()
34 if (sm->xxkey_len > 0) { in wpa_derive_ptk_ft()
35 mpmk = sm->xxkey; in wpa_derive_ptk_ft()
36 mpmk_len = sm->xxkey_len; in wpa_derive_ptk_ft()
37 } else if (sm->cur_pmksa) { in wpa_derive_ptk_ft()
38 mpmk = sm->cur_pmksa->pmk; in wpa_derive_ptk_ft()
39 mpmk_len = sm->cur_pmksa->pmk_len; in wpa_derive_ptk_ft()
46 sm->pmk_r0_len = use_sha384 ? SHA384_MAC_LEN : PMK_LEN; in wpa_derive_ptk_ft()
47 if (wpa_derive_pmk_r0(mpmk, mpmk_len, sm in wpa_derive_ptk_ft()
76 wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len) wpa_sm_set_ft_params() argument
161 wpa_ft_gen_req_ies(struct wpa_sm *sm, size_t *len, const u8 *anonce, const u8 *pmk_name, const u8 *kck, size_t kck_len, const u8 *target_ap, const u8 *ric_ies, size_t ric_ies_len, const u8 *ap_mdie) wpa_ft_gen_req_ies() argument
398 wpa_ft_install_ptk(struct wpa_sm *sm, const u8 *bssid) wpa_ft_install_ptk() argument
431 wpa_ft_prepare_auth_request(struct wpa_sm *sm, const u8 *mdie) wpa_ft_prepare_auth_request() argument
454 wpa_ft_add_mdie(struct wpa_sm *sm, u8 *buf, size_t buf_len, const u8 *ap_mdie) wpa_ft_add_mdie() argument
479 wpa_sm_get_ft_md(struct wpa_sm *sm) wpa_sm_get_ft_md() argument
485 wpa_ft_process_response(struct wpa_sm *sm, const u8 *ies, size_t ies_len, int ft_action, const u8 *target_ap, const u8 *ric_ies, size_t ric_ies_len) wpa_ft_process_response() argument
668 wpa_ft_is_completed(struct wpa_sm *sm) wpa_ft_is_completed() argument
680 wpa_reset_ft_completed(struct wpa_sm *sm) wpa_reset_ft_completed() argument
687 wpa_ft_process_gtk_subelem(struct wpa_sm *sm, const u8 *gtk_elem, size_t gtk_elem_len) wpa_ft_process_gtk_subelem() argument
771 wpa_ft_process_igtk_subelem(struct wpa_sm *sm, const u8 *igtk_elem, size_t igtk_elem_len) wpa_ft_process_igtk_subelem() argument
841 wpa_ft_validate_reassoc_resp(struct wpa_sm *sm, const u8 *ies, size_t ies_len, const u8 *src_addr) wpa_ft_validate_reassoc_resp() argument
1054 wpa_ft_start_over_ds(struct wpa_sm *sm, const u8 *target_ap, const u8 *mdie) wpa_ft_start_over_ds() argument
[all...]
H A Dpreauth.c35 * @sm: Pointer to WPA state machine data from wpa_sm_init()
37 void pmksa_candidate_free(struct wpa_sm *sm) in pmksa_candidate_free() argument
41 if (sm == NULL) in pmksa_candidate_free()
44 dl_list_for_each_safe(entry, n, &sm->pmksa_candidates, in pmksa_candidate_free()
55 struct wpa_sm *sm = ctx; in rsn_preauth_receive() local
60 if (sm->preauth_eapol == NULL || in rsn_preauth_receive()
61 is_zero_ether_addr(sm->preauth_bssid) || in rsn_preauth_receive()
62 os_memcmp(sm->preauth_bssid, src_addr, ETH_ALEN) != 0) { in rsn_preauth_receive()
69 eapol_sm_rx_eapol(sm->preauth_eapol, src_addr, buf, len); in rsn_preauth_receive()
77 struct wpa_sm *sm in rsn_preauth_eapol_cb() local
121 struct wpa_sm *sm = eloop_ctx; rsn_preauth_timeout() local
133 struct wpa_sm *sm = ctx; rsn_preauth_eapol_send() local
170 rsn_preauth_init(struct wpa_sm *sm, const u8 *dst, struct eap_peer_config *eap_conf) rsn_preauth_init() argument
273 rsn_preauth_deinit(struct wpa_sm *sm) rsn_preauth_deinit() argument
300 rsn_preauth_candidate_process(struct wpa_sm *sm) rsn_preauth_candidate_process() argument
368 pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid, int prio, int preauth) pmksa_candidate_add() argument
448 rsn_preauth_scan_results(struct wpa_sm *sm) rsn_preauth_scan_results() argument
470 rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid, const u8 *ssid, const u8 *rsn) rsn_preauth_scan_result() argument
510 rsn_preauth_get_status(struct wpa_sm *sm, char *buf, size_t buflen, int verbose) rsn_preauth_get_status() argument
537 rsn_preauth_in_progress(struct wpa_sm *sm) rsn_preauth_in_progress() argument
[all...]
H A Dwpa_i.h179 static inline void wpa_sm_set_state(struct wpa_sm *sm, enum wpa_states state) in wpa_sm_set_state() argument
181 WPA_ASSERT(sm->ctx->set_state); in wpa_sm_set_state()
182 sm->ctx->set_state(sm->ctx->ctx, state); in wpa_sm_set_state()
185 static inline enum wpa_states wpa_sm_get_state(struct wpa_sm *sm) in wpa_sm_get_state() argument
187 WPA_ASSERT(sm->ctx->get_state); in wpa_sm_get_state()
188 return sm->ctx->get_state(sm->ctx->ctx); in wpa_sm_get_state()
191 static inline void wpa_sm_deauthenticate(struct wpa_sm *sm, u16 reason_code) in wpa_sm_deauthenticate() argument
193 WPA_ASSERT(sm in wpa_sm_deauthenticate()
197 wpa_sm_set_key(struct wpa_sm *sm, enum wpa_alg alg, const u8 *addr, int key_idx, int set_tx, const u8 *seq, size_t seq_len, const u8 *key, size_t key_len) wpa_sm_set_key() argument
207 wpa_sm_get_network_ctx(struct wpa_sm *sm) wpa_sm_get_network_ctx() argument
213 wpa_sm_get_bssid(struct wpa_sm *sm, u8 *bssid) wpa_sm_get_bssid() argument
219 wpa_sm_ether_send(struct wpa_sm *sm, const u8 *dest, u16 proto, const u8 *buf, size_t len) wpa_sm_ether_send() argument
226 wpa_sm_get_beacon_ie(struct wpa_sm *sm) wpa_sm_get_beacon_ie() argument
232 wpa_sm_cancel_auth_timeout(struct wpa_sm *sm) wpa_sm_cancel_auth_timeout() argument
238 wpa_sm_alloc_eapol(struct wpa_sm *sm, u8 type, const void *data, u16 data_len, size_t *msg_len, void **data_pos) wpa_sm_alloc_eapol() argument
247 wpa_sm_add_pmkid(struct wpa_sm *sm, void *network_ctx, const u8 *bssid, const u8 *pmkid, const u8 *cache_id, const u8 *pmk, size_t pmk_len) wpa_sm_add_pmkid() argument
257 wpa_sm_remove_pmkid(struct wpa_sm *sm, void *network_ctx, const u8 *bssid, const u8 *pmkid, const u8 *cache_id) wpa_sm_remove_pmkid() argument
266 wpa_sm_mlme_setprotection(struct wpa_sm *sm, const u8 *addr, int protect_type, int key_type) wpa_sm_mlme_setprotection() argument
274 wpa_sm_update_ft_ies(struct wpa_sm *sm, const u8 *md, const u8 *ies, size_t ies_len) wpa_sm_update_ft_ies() argument
282 wpa_sm_send_ft_action(struct wpa_sm *sm, u8 action, const u8 *target_ap, const u8 *ies, size_t ies_len) wpa_sm_send_ft_action() argument
292 wpa_sm_mark_authenticated(struct wpa_sm *sm, const u8 *target_ap) wpa_sm_mark_authenticated() argument
300 wpa_sm_set_rekey_offload(struct wpa_sm *sm) wpa_sm_set_rekey_offload() argument
310 wpa_sm_tdls_get_capa(struct wpa_sm *sm, int *tdls_supported, int *tdls_ext_setup, int *tdls_chan_switch) wpa_sm_tdls_get_capa() argument
321 wpa_sm_send_tdls_mgmt(struct wpa_sm *sm, const u8 *dst, u8 action_code, u8 dialog_token, u16 status_code, u32 peer_capab, int initiator, const u8 *buf, size_t len) wpa_sm_send_tdls_mgmt() argument
335 wpa_sm_tdls_oper(struct wpa_sm *sm, int oper, const u8 *peer) wpa_sm_tdls_oper() argument
344 wpa_sm_tdls_peer_addset(struct wpa_sm *sm, const u8 *addr, int add, u16 aid, u16 capability, const u8 *supp_rates, size_t supp_rates_len, const struct ieee80211_ht_capabilities *ht_capab, const struct ieee80211_vht_capabilities *vht_capab, u8 qosinfo, int wmm, const u8 *ext_capab, size_t ext_capab_len, const u8 *supp_channels, size_t supp_channels_len, const u8 *supp_oper_classes, size_t supp_oper_classes_len) wpa_sm_tdls_peer_addset() argument
368 wpa_sm_tdls_enable_channel_switch(struct wpa_sm *sm, const u8 *addr, u8 oper_class, const struct hostapd_freq_params *freq_params) wpa_sm_tdls_enable_channel_switch() argument
380 wpa_sm_tdls_disable_channel_switch(struct wpa_sm *sm, const u8 *addr) wpa_sm_tdls_disable_channel_switch() argument
388 wpa_sm_key_mgmt_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len) wpa_sm_key_mgmt_set_pmk() argument
396 wpa_sm_fils_hlp_rx(struct wpa_sm *sm, const u8 *dst, const u8 *src, const u8 *pkt, size_t pkt_len) wpa_sm_fils_hlp_rx() argument
404 wpa_sm_channel_info(struct wpa_sm *sm, struct wpa_channel_info *ci) wpa_sm_channel_info() argument
[all...]
H A Dwpa.h121 void wpa_sm_deinit(struct wpa_sm *sm);
122 void wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid);
123 void wpa_sm_notify_disassoc(struct wpa_sm *sm);
124 void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len,
126 void wpa_sm_set_pmk_from_pmksa(struct wpa_sm *sm);
127 void wpa_sm_set_fast_reauth(struct wpa_sm *sm, int fast_reauth);
128 void wpa_sm_set_scard_ctx(struct wpa_sm *sm, void *scard_ctx);
129 void wpa_sm_set_config(struct wpa_sm *sm, struct rsn_supp_config *config);
130 void wpa_sm_set_own_addr(struct wpa_sm *sm, const u8 *addr);
131 void wpa_sm_set_ifname(struct wpa_sm *sm, cons
190 wpa_sm_deinit(struct wpa_sm *sm) wpa_sm_deinit() argument
194 wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid) wpa_sm_notify_assoc() argument
198 wpa_sm_notify_disassoc(struct wpa_sm *sm) wpa_sm_notify_disassoc() argument
202 wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len, const u8 *pmkid, const u8 *bssid) wpa_sm_set_pmk() argument
208 wpa_sm_set_pmk_from_pmksa(struct wpa_sm *sm) wpa_sm_set_pmk_from_pmksa() argument
212 wpa_sm_set_fast_reauth(struct wpa_sm *sm, int fast_reauth) wpa_sm_set_fast_reauth() argument
216 wpa_sm_set_scard_ctx(struct wpa_sm *sm, void *scard_ctx) wpa_sm_set_scard_ctx() argument
220 wpa_sm_set_config(struct wpa_sm *sm, struct rsn_supp_config *config) wpa_sm_set_config() argument
225 wpa_sm_set_own_addr(struct wpa_sm *sm, const u8 *addr) wpa_sm_set_own_addr() argument
229 wpa_sm_set_ifname(struct wpa_sm *sm, const char *ifname, const char *bridge_ifname) wpa_sm_set_ifname() argument
234 wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol) wpa_sm_set_eapol() argument
238 wpa_sm_set_assoc_wpa_ie(struct wpa_sm *sm, const u8 *ie, size_t len) wpa_sm_set_assoc_wpa_ie() argument
244 wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm, u8 *wpa_ie, size_t *wpa_ie_len) wpa_sm_set_assoc_wpa_ie_default() argument
251 wpa_sm_set_ap_wpa_ie(struct wpa_sm *sm, const u8 *ie, size_t len) wpa_sm_set_ap_wpa_ie() argument
257 wpa_sm_set_ap_rsn_ie(struct wpa_sm *sm, const u8 *ie, size_t len) wpa_sm_set_ap_rsn_ie() argument
263 wpa_sm_get_mib(struct wpa_sm *sm, char *buf, size_t buflen) wpa_sm_get_mib() argument
268 wpa_sm_set_param(struct wpa_sm *sm, enum wpa_sm_conf_params param, unsigned int value) wpa_sm_set_param() argument
275 wpa_sm_get_status(struct wpa_sm *sm, char *buf, size_t buflen, int verbose) wpa_sm_get_status() argument
281 wpa_sm_pmf_enabled(struct wpa_sm *sm) wpa_sm_pmf_enabled() argument
286 wpa_sm_ocv_enabled(struct wpa_sm *sm) wpa_sm_ocv_enabled() argument
291 wpa_sm_key_request(struct wpa_sm *sm, int error, int pairwise) wpa_sm_key_request() argument
302 wpa_sm_aborted_cached(struct wpa_sm *sm) wpa_sm_aborted_cached() argument
306 wpa_sm_rx_eapol(struct wpa_sm *sm, const u8 *src_addr, const u8 *buf, size_t len) wpa_sm_rx_eapol() argument
312 wpa_sm_parse_own_wpa_ie(struct wpa_sm *sm, struct wpa_ie_data *data) wpa_sm_parse_own_wpa_ie() argument
318 wpa_sm_pmksa_cache_list(struct wpa_sm *sm, char *buf, size_t len) wpa_sm_pmksa_cache_list() argument
324 wpa_sm_drop_sa(struct wpa_sm *sm) wpa_sm_drop_sa() argument
328 wpa_sm_has_ptk(struct wpa_sm *sm) wpa_sm_has_ptk() argument
333 wpa_sm_update_replay_ctr(struct wpa_sm *sm, const u8 *replay_ctr) wpa_sm_update_replay_ctr() argument
338 wpa_sm_pmksa_cache_flush(struct wpa_sm *sm, void *network_ctx) wpa_sm_pmksa_cache_flush() argument
343 wpa_sm_set_rx_replay_ctr(struct wpa_sm *sm, const u8 *rx_replay_counter) wpa_sm_set_rx_replay_ctr() argument
348 wpa_sm_set_ptk_kck_kek(struct wpa_sm *sm, const u8 *ptk_kck, size_t ptk_kck_len, const u8 *ptk_kek, size_t ptk_kek_len) wpa_sm_set_ptk_kck_kek() argument
354 wpa_fils_is_completed(struct wpa_sm *sm) wpa_fils_is_completed() argument
381 wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len) wpa_sm_set_ft_params() argument
386 wpa_ft_prepare_auth_request(struct wpa_sm *sm, const u8 *mdie) wpa_ft_prepare_auth_request() argument
392 wpa_ft_add_mdie(struct wpa_sm *sm, u8 *ies, size_t ies_len, const u8 *mdie) wpa_ft_add_mdie() argument
399 wpa_ft_process_response(struct wpa_sm *sm, const u8 *ies, size_t ies_len, int ft_action, const u8 *target_ap) wpa_ft_process_response() argument
405 wpa_ft_is_completed(struct wpa_sm *sm) wpa_ft_is_completed() argument
410 wpa_reset_ft_completed(struct wpa_sm *sm) wpa_reset_ft_completed() argument
415 wpa_ft_validate_reassoc_resp(struct wpa_sm *sm, const u8 *ies, size_t ies_len, const u8 *src_addr) wpa_ft_validate_reassoc_resp() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/rsn_supp/
H A Dwpa_ft.c28 static void wpa_ft_pasn_store_r1kh(struct wpa_sm *sm, const u8 *bssid);
30 static void wpa_ft_pasn_store_r1kh(struct wpa_sm *sm, const u8 *bssid) in wpa_ft_pasn_store_r1kh() argument
36 int wpa_derive_ptk_ft(struct wpa_sm *sm, const unsigned char *src_addr, in wpa_derive_ptk_ft() argument
41 int use_sha384 = wpa_key_mgmt_sha384(sm->key_mgmt); in wpa_derive_ptk_ft()
45 if (sm->xxkey_len > 0) { in wpa_derive_ptk_ft()
46 mpmk = sm->xxkey; in wpa_derive_ptk_ft()
47 mpmk_len = sm->xxkey_len; in wpa_derive_ptk_ft()
48 } else if (sm->cur_pmksa) { in wpa_derive_ptk_ft()
49 mpmk = sm->cur_pmksa->pmk; in wpa_derive_ptk_ft()
50 mpmk_len = sm in wpa_derive_ptk_ft()
96 wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len) wpa_sm_set_ft_params() argument
189 wpa_ft_gen_req_ies(struct wpa_sm *sm, size_t *len, const u8 *anonce, const u8 *pmk_name, const u8 *kck, size_t kck_len, const u8 *target_ap, const u8 *ric_ies, size_t ric_ies_len, const u8 *ap_mdie, int omit_rsnxe) wpa_ft_gen_req_ies() argument
451 wpa_ft_install_ptk(struct wpa_sm *sm, const u8 *bssid) wpa_ft_install_ptk() argument
[all...]
H A Dwpa.c87 * @sm: Pointer to WPA state machine data from wpa_sm_init()
97 int wpa_eapol_key_send(struct wpa_sm *sm, struct wpa_ptk *ptk, in wpa_eapol_key_send() argument
102 size_t mic_len = wpa_mic_len(sm->key_mgmt, sm->pmk_len); in wpa_eapol_key_send()
106 MAC2STR_SEC(dest), ver, (int) mic_len, sm->key_mgmt); in wpa_eapol_key_send()
107 if (is_zero_ether_addr(dest) && is_zero_ether_addr(sm->bssid)) { in wpa_eapol_key_send()
112 if (wpa_sm_get_bssid(sm, sm->bssid) < 0) { in wpa_eapol_key_send()
113 wpa_dbg(sm->ctx->msg_ctx, MSG_DEBUG, in wpa_eapol_key_send()
117 dest = sm in wpa_eapol_key_send()
229 wpa_sm_key_request(struct wpa_sm *sm, int error, int pairwise) wpa_sm_key_request() argument
301 wpa_supplicant_key_mgmt_set_pmk(struct wpa_sm *sm) wpa_supplicant_key_mgmt_set_pmk() argument
319 wpa_supplicant_get_pmk(struct wpa_sm *sm, const unsigned char *src_addr, const u8 *pmkid) wpa_supplicant_get_pmk() argument
531 wpa_supplicant_send_2_of_4(struct wpa_sm *sm, const unsigned char *dst, const struct wpa_eapol_key *key, int ver, const u8 *nonce, const u8 *wpa_ie, size_t wpa_ie_len, struct wpa_ptk *ptk) wpa_supplicant_send_2_of_4() argument
630 wpa_derive_ptk(struct wpa_sm *sm, const unsigned char *src_addr, const struct wpa_eapol_key *key, struct wpa_ptk *ptk) wpa_derive_ptk() argument
680 wpa_handle_ext_key_id(struct wpa_sm *sm, struct wpa_eapol_ie_parse *kde) wpa_handle_ext_key_id() argument
737 wpa_mlo_link_kde_len(struct wpa_sm *sm) wpa_mlo_link_kde_len() argument
751 wpa_mlo_link_kde(struct wpa_sm *sm, u8 *pos) wpa_mlo_link_kde() argument
771 is_valid_ap_mld_mac_kde(struct wpa_sm *sm, const u8 *mac_kde) is_valid_ap_mld_mac_kde() argument
778 wpa_supplicant_process_1_of_4(struct wpa_sm *sm, const unsigned char *src_addr, const struct wpa_eapol_key *key, u16 ver, const u8 *key_data, size_t key_data_len) wpa_supplicant_process_1_of_4() argument
1002 struct wpa_sm *sm = eloop_ctx; wpa_sm_start_preauth() local
1007 wpa_supplicant_key_neg_complete(struct wpa_sm *sm, const u8 *addr, int secure) wpa_supplicant_key_neg_complete() argument
1061 struct wpa_sm *sm = eloop_ctx; wpa_sm_rekey_ptk() local
1067 wpa_supplicant_install_ptk(struct wpa_sm *sm, const struct wpa_eapol_key *key, enum key_flag key_flag) global() argument
1150 wpa_supplicant_activate_ptk(struct wpa_sm *sm) global() argument
1176 wpa_supplicant_check_group_cipher(struct wpa_sm *sm, int group_cipher, int keylen, int maxkeylen, int *key_rsc_len, enum wpa_alg *alg) global() argument
1212 wpa_supplicant_install_gtk(struct wpa_sm *sm, const struct wpa_gtk_data *gd, const u8 *key_rsc, int wnm_sleep) global() argument
1286 wpa_supplicant_install_mlo_gtk(struct wpa_sm *sm, u8 link_id, const struct wpa_gtk_data *gd, const u8 *key_rsc, int wnm_sleep) global() argument
1336 wpa_supplicant_gtk_tx_bit_workaround(const struct wpa_sm *sm, int tx) global() argument
1354 wpa_supplicant_rsc_relaxation(const struct wpa_sm *sm, const u8 *rsc) global() argument
1384 wpa_supplicant_mlo_gtk(struct wpa_sm *sm, u8 link_id, const u8 *gtk, size_t gtk_len, int key_info) global() argument
1436 wpa_supplicant_pairwise_mlo_gtk(struct wpa_sm *sm, const struct wpa_eapol_key *key, struct wpa_eapol_ie_parse *ie, int key_info) global() argument
1461 wpa_supplicant_pairwise_gtk(struct wpa_sm *sm, const struct wpa_eapol_key *key, const u8 *gtk, size_t gtk_len, int key_info) global() argument
1513 wpa_supplicant_install_igtk(struct wpa_sm *sm, const struct wpa_igtk_kde *igtk, int wnm_sleep) global() argument
[all...]
H A Dwpa_i.h228 static inline void wpa_sm_set_state(struct wpa_sm *sm, enum wpa_states state) in wpa_sm_set_state() argument
230 WPA_ASSERT(sm->ctx->set_state); in wpa_sm_set_state()
231 sm->ctx->set_state(sm->ctx->ctx, state); in wpa_sm_set_state()
234 static inline enum wpa_states wpa_sm_get_state(struct wpa_sm *sm) in wpa_sm_get_state() argument
236 WPA_ASSERT(sm->ctx->get_state); in wpa_sm_get_state()
237 return sm->ctx->get_state(sm->ctx->ctx); in wpa_sm_get_state()
240 static inline void wpa_sm_deauthenticate(struct wpa_sm *sm, u16 reason_code) in wpa_sm_deauthenticate() argument
242 WPA_ASSERT(sm in wpa_sm_deauthenticate()
246 wpa_sm_set_key(struct wpa_sm *sm, int link_id, enum wpa_alg alg, const u8 *addr, int key_idx, int set_tx, const u8 *seq, size_t seq_len, const u8 *key, size_t key_len, enum key_flag key_flag) wpa_sm_set_key() argument
264 wpa_sm_reconnect(struct wpa_sm *sm) wpa_sm_reconnect() argument
270 wpa_sm_get_network_ctx(struct wpa_sm *sm) wpa_sm_get_network_ctx() argument
276 wpa_sm_get_bssid(struct wpa_sm *sm, u8 *bssid) wpa_sm_get_bssid() argument
282 wpa_sm_ether_send(struct wpa_sm *sm, const u8 *dest, u16 proto, const u8 *buf, size_t len) wpa_sm_ether_send() argument
289 wpa_sm_get_beacon_ie(struct wpa_sm *sm) wpa_sm_get_beacon_ie() argument
295 wpa_sm_cancel_auth_timeout(struct wpa_sm *sm) wpa_sm_cancel_auth_timeout() argument
301 wpa_sm_alloc_eapol(struct wpa_sm *sm, u8 type, const void *data, u16 data_len, size_t *msg_len, void **data_pos) wpa_sm_alloc_eapol() argument
310 wpa_sm_add_pmkid(struct wpa_sm *sm, void *network_ctx, const u8 *bssid, const u8 *pmkid, const u8 *cache_id, const u8 *pmk, size_t pmk_len, u32 pmk_lifetime, u8 pmk_reauth_threshold, int akmp) wpa_sm_add_pmkid() argument
322 wpa_sm_remove_pmkid(struct wpa_sm *sm, void *network_ctx, const u8 *bssid, const u8 *pmkid, const u8 *cache_id) wpa_sm_remove_pmkid() argument
331 wpa_sm_mlme_setprotection(struct wpa_sm *sm, const u8 *addr, int protect_type, int key_type) wpa_sm_mlme_setprotection() argument
339 wpa_sm_update_ft_ies(struct wpa_sm *sm, const u8 *md, const u8 *ies, size_t ies_len) wpa_sm_update_ft_ies() argument
347 wpa_sm_send_ft_action(struct wpa_sm *sm, u8 action, const u8 *target_ap, const u8 *ies, size_t ies_len) wpa_sm_send_ft_action() argument
357 wpa_sm_mark_authenticated(struct wpa_sm *sm, const u8 *target_ap) wpa_sm_mark_authenticated() argument
365 wpa_sm_set_rekey_offload(struct wpa_sm *sm) wpa_sm_set_rekey_offload() argument
375 wpa_sm_tdls_get_capa(struct wpa_sm *sm, int *tdls_supported, int *tdls_ext_setup, int *tdls_chan_switch) wpa_sm_tdls_get_capa() argument
386 wpa_sm_send_tdls_mgmt(struct wpa_sm *sm, const u8 *dst, u8 action_code, u8 dialog_token, u16 status_code, u32 peer_capab, int initiator, const u8 *buf, size_t len) wpa_sm_send_tdls_mgmt() argument
400 wpa_sm_tdls_oper(struct wpa_sm *sm, int oper, const u8 *peer) wpa_sm_tdls_oper() argument
409 wpa_sm_tdls_peer_addset(struct wpa_sm *sm, const u8 *addr, int add, u16 aid, u16 capability, const u8 *supp_rates, size_t supp_rates_len, const struct ieee80211_ht_capabilities *ht_capab, const struct ieee80211_vht_capabilities *vht_capab, const struct ieee80211_he_capabilities *he_capab, size_t he_capab_len, const struct ieee80211_he_6ghz_band_cap *he_6ghz_capab, u8 qosinfo, int wmm, const u8 *ext_capab, size_t ext_capab_len, const u8 *supp_channels, size_t supp_channels_len, const u8 *supp_oper_classes, size_t supp_oper_classes_len) wpa_sm_tdls_peer_addset() argument
438 wpa_sm_tdls_enable_channel_switch(struct wpa_sm *sm, const u8 *addr, u8 oper_class, const struct hostapd_freq_params *freq_params) wpa_sm_tdls_enable_channel_switch() argument
450 wpa_sm_tdls_disable_channel_switch(struct wpa_sm *sm, const u8 *addr) wpa_sm_tdls_disable_channel_switch() argument
458 wpa_sm_key_mgmt_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len) wpa_sm_key_mgmt_set_pmk() argument
466 wpa_sm_fils_hlp_rx(struct wpa_sm *sm, const u8 *dst, const u8 *src, const u8 *pkt, size_t pkt_len) wpa_sm_fils_hlp_rx() argument
474 wpa_sm_channel_info(struct wpa_sm *sm, struct wpa_channel_info *ci) wpa_sm_channel_info() argument
482 wpa_sm_transition_disable(struct wpa_sm *sm, u8 bitmap) wpa_sm_transition_disable() argument
488 wpa_sm_store_ptk(struct wpa_sm *sm, u8 *addr, int cipher, u32 life_time, struct wpa_ptk *ptk) wpa_sm_store_ptk() argument
[all...]
H A Dpreauth.c35 * @sm: Pointer to WPA state machine data from wpa_sm_init()
37 void pmksa_candidate_free(struct wpa_sm *sm) in pmksa_candidate_free() argument
41 if (sm == NULL) in pmksa_candidate_free()
44 dl_list_for_each_safe(entry, n, &sm->pmksa_candidates, in pmksa_candidate_free()
64 struct wpa_sm *sm = ctx; in rsn_preauth_receive() local
69 if (sm->preauth_eapol == NULL || in rsn_preauth_receive()
70 is_zero_ether_addr(sm->preauth_bssid) || in rsn_preauth_receive()
71 os_memcmp(sm->preauth_bssid, src_addr, ETH_ALEN) != 0) { in rsn_preauth_receive()
78 eapol_sm_rx_eapol(sm->preauth_eapol, src_addr, buf, len); in rsn_preauth_receive()
86 struct wpa_sm *sm in rsn_preauth_eapol_cb() local
134 struct wpa_sm *sm = eloop_ctx; rsn_preauth_timeout() local
148 struct wpa_sm *sm = ctx; rsn_preauth_eapol_send() local
185 rsn_preauth_init(struct wpa_sm *sm, const u8 *dst, struct eap_peer_config *eap_conf) rsn_preauth_init() argument
289 rsn_preauth_deinit(struct wpa_sm *sm) rsn_preauth_deinit() argument
316 rsn_preauth_candidate_process(struct wpa_sm *sm) rsn_preauth_candidate_process() argument
389 pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid, int prio, int preauth) pmksa_candidate_add() argument
471 rsn_preauth_scan_results(struct wpa_sm *sm) rsn_preauth_scan_results() argument
493 rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid, const u8 *ssid, const u8 *rsn) rsn_preauth_scan_result() argument
536 rsn_preauth_get_status(struct wpa_sm *sm, char *buf, size_t buflen, int verbose) rsn_preauth_get_status() argument
563 rsn_preauth_in_progress(struct wpa_sm *sm) rsn_preauth_in_progress() argument
[all...]
H A Dwpa.h169 void wpa_sm_deinit(struct wpa_sm *sm);
170 void wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid);
171 void wpa_sm_notify_disassoc(struct wpa_sm *sm);
172 void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len,
174 void wpa_sm_set_pmk_from_pmksa(struct wpa_sm *sm);
175 void wpa_sm_set_fast_reauth(struct wpa_sm *sm, int fast_reauth);
176 void wpa_sm_set_scard_ctx(struct wpa_sm *sm, void *scard_ctx);
177 void wpa_sm_set_config(struct wpa_sm *sm, struct rsn_supp_config *config);
178 void wpa_sm_set_own_addr(struct wpa_sm *sm, const u8 *addr);
179 void wpa_sm_set_ifname(struct wpa_sm *sm, cons
258 wpa_sm_deinit(struct wpa_sm *sm) wpa_sm_deinit() argument
262 wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid) wpa_sm_notify_assoc() argument
266 wpa_sm_notify_disassoc(struct wpa_sm *sm) wpa_sm_notify_disassoc() argument
270 wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len, const u8 *pmkid, const u8 *bssid) wpa_sm_set_pmk() argument
276 wpa_sm_set_pmk_from_pmksa(struct wpa_sm *sm) wpa_sm_set_pmk_from_pmksa() argument
280 wpa_sm_set_fast_reauth(struct wpa_sm *sm, int fast_reauth) wpa_sm_set_fast_reauth() argument
284 wpa_sm_set_scard_ctx(struct wpa_sm *sm, void *scard_ctx) wpa_sm_set_scard_ctx() argument
288 wpa_sm_set_config(struct wpa_sm *sm, struct rsn_supp_config *config) wpa_sm_set_config() argument
293 wpa_sm_set_own_addr(struct wpa_sm *sm, const u8 *addr) wpa_sm_set_own_addr() argument
297 wpa_sm_set_ifname(struct wpa_sm *sm, const char *ifname, const char *bridge_ifname) wpa_sm_set_ifname() argument
302 wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol) wpa_sm_set_eapol() argument
306 wpa_sm_set_assoc_wpa_ie(struct wpa_sm *sm, const u8 *ie, size_t len) wpa_sm_set_assoc_wpa_ie() argument
312 wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm, u8 *wpa_ie, size_t *wpa_ie_len) wpa_sm_set_assoc_wpa_ie_default() argument
319 wpa_sm_set_ap_wpa_ie(struct wpa_sm *sm, const u8 *ie, size_t len) wpa_sm_set_ap_wpa_ie() argument
325 wpa_sm_set_ap_rsn_ie(struct wpa_sm *sm, const u8 *ie, size_t len) wpa_sm_set_ap_rsn_ie() argument
332 wpa_sm_set_p2p_legacyGO_state(struct wpa_sm *sm, int state) wpa_sm_set_p2p_legacyGO_state() argument
338 wpa_sm_set_ap_rsnxe(struct wpa_sm *sm, const u8 *ie, size_t len) wpa_sm_set_ap_rsnxe() argument
344 wpa_sm_get_mib(struct wpa_sm *sm, char *buf, size_t buflen) wpa_sm_get_mib() argument
349 wpa_sm_set_param(struct wpa_sm *sm, enum wpa_sm_conf_params param, unsigned int value) wpa_sm_set_param() argument
356 wpa_sm_get_status(struct wpa_sm *sm, char *buf, size_t buflen, int verbose) wpa_sm_get_status() argument
362 wpa_sm_pmf_enabled(struct wpa_sm *sm) wpa_sm_pmf_enabled() argument
367 wpa_sm_ext_key_id(struct wpa_sm *sm) wpa_sm_ext_key_id() argument
372 wpa_sm_ext_key_id_active(struct wpa_sm *sm) wpa_sm_ext_key_id_active() argument
377 wpa_sm_ocv_enabled(struct wpa_sm *sm) wpa_sm_ocv_enabled() argument
382 wpa_sm_key_request(struct wpa_sm *sm, int error, int pairwise) wpa_sm_key_request() argument
393 wpa_sm_aborted_cached(struct wpa_sm *sm) wpa_sm_aborted_cached() argument
397 wpa_sm_aborted_external_cached(struct wpa_sm *sm) wpa_sm_aborted_external_cached() argument
401 wpa_sm_rx_eapol(struct wpa_sm *sm, const u8 *src_addr, const u8 *buf, size_t len) wpa_sm_rx_eapol() argument
407 wpa_sm_parse_own_wpa_ie(struct wpa_sm *sm, struct wpa_ie_data *data) wpa_sm_parse_own_wpa_ie() argument
413 wpa_sm_pmksa_cache_list(struct wpa_sm *sm, char *buf, size_t len) wpa_sm_pmksa_cache_list() argument
419 wpa_sm_drop_sa(struct wpa_sm *sm) wpa_sm_drop_sa() argument
424 wpa_sm_pmksa_cache_get(struct wpa_sm *sm, const u8 *aa, const u8 *pmkid, const void *network_ctx, int akmp) wpa_sm_pmksa_cache_get() argument
430 wpa_sm_has_ptk(struct wpa_sm *sm) wpa_sm_has_ptk() argument
435 wpa_sm_update_replay_ctr(struct wpa_sm *sm, const u8 *replay_ctr) wpa_sm_update_replay_ctr() argument
440 wpa_sm_external_pmksa_cache_flush(struct wpa_sm *sm, void *network_ctx) wpa_sm_external_pmksa_cache_flush() argument
445 wpa_sm_pmksa_cache_flush(struct wpa_sm *sm, void *network_ctx) wpa_sm_pmksa_cache_flush() argument
450 wpa_sm_set_rx_replay_ctr(struct wpa_sm *sm, const u8 *rx_replay_counter) wpa_sm_set_rx_replay_ctr() argument
455 wpa_sm_set_ptk_kck_kek(struct wpa_sm *sm, const u8 *ptk_kck, size_t ptk_kck_len, const u8 *ptk_kek, size_t ptk_kek_len) wpa_sm_set_ptk_kck_kek() argument
461 wpa_fils_is_completed(struct wpa_sm *sm) wpa_fils_is_completed() argument
466 wpa_sm_pmksa_cache_reconfig(struct wpa_sm *sm) wpa_sm_pmksa_cache_reconfig() argument
470 wpa_sm_set_mlo_params(struct wpa_sm *sm, const struct wpa_sm_mlo *mlo) wpa_sm_set_mlo_params() argument
505 wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len) wpa_sm_set_ft_params() argument
510 wpa_ft_prepare_auth_request(struct wpa_sm *sm, const u8 *mdie) wpa_ft_prepare_auth_request() argument
516 wpa_ft_add_mdie(struct wpa_sm *sm, u8 *ies, size_t ies_len, const u8 *mdie) wpa_ft_add_mdie() argument
523 wpa_ft_process_response(struct wpa_sm *sm, const u8 *ies, size_t ies_len, int ft_action, const u8 *target_ap) wpa_ft_process_response() argument
529 wpa_ft_is_completed(struct wpa_sm *sm) wpa_ft_is_completed() argument
534 wpa_reset_ft_completed(struct wpa_sm *sm) wpa_reset_ft_completed() argument
539 wpa_ft_validate_reassoc_resp(struct wpa_sm *sm, const u8 *ies, size_t ies_len, const u8 *src_addr) wpa_ft_validate_reassoc_resp() argument
547 wpa_pasn_ft_derive_pmk_r1(struct wpa_sm *sm, int akmp, const u8 *r1kh_id, u8 *pmk_r1, size_t *pmk_r1_len, u8 *pmk_r1_name) wpa_pasn_ft_derive_pmk_r1() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
H A Dwpa_auth.c45 #define STATE_MACHINE_ADDR sm->addr
49 static int wpa_sm_step(struct wpa_state_machine *sm);
53 static int wpa_aead_decrypt(struct wpa_state_machine *sm, struct wpa_ptk *ptk,
55 static struct wpabuf * fils_prepare_plainbuf(struct wpa_state_machine *sm,
61 static void wpa_request_new_ptk(struct wpa_state_machine *sm);
66 static int wpa_derive_ptk(struct wpa_state_machine *sm, const u8 *snonce,
75 static int ieee80211w_kde_len(struct wpa_state_machine *sm);
76 static u8 * ieee80211w_kde_add(struct wpa_state_machine *sm, u8 *pos);
227 int (*cb)(struct wpa_state_machine *sm, void *ctx), in wpa_auth_for_each_sta()
379 struct wpa_state_machine *sm in wpa_rekey_ptk() local
226 wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_state_machine *sm, void *ctx), void *cb_ctx) wpa_auth_for_each_sta() argument
387 wpa_auth_set_ptk_rekey_timer(struct wpa_state_machine *sm) wpa_auth_set_ptk_rekey_timer() argument
400 wpa_auth_pmksa_clear_cb(struct wpa_state_machine *sm, void *ctx) wpa_auth_pmksa_clear_cb() argument
670 struct wpa_state_machine *sm; wpa_auth_sta_init() local
690 wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm) wpa_auth_sta_associated() argument
741 wpa_auth_sta_no_wpa(struct wpa_state_machine *sm) wpa_auth_sta_no_wpa() argument
753 wpa_free_sta_sm(struct wpa_state_machine *sm) wpa_free_sta_sm() argument
788 wpa_auth_sta_deinit(struct wpa_state_machine *sm) wpa_auth_sta_deinit() argument
824 wpa_request_new_ptk(struct wpa_state_machine *sm) wpa_request_new_ptk() argument
876 ft_check_msg_2_of_4(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_ie_parse *kde) ft_check_msg_2_of_4() argument
926 wpa_receive_error_report(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int group) wpa_receive_error_report() argument
956 wpa_try_alt_snonce(struct wpa_state_machine *sm, u8 *data, size_t data_len) wpa_try_alt_snonce() argument
1039 wpa_receive(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, u8 *data, size_t data_len) wpa_receive() argument
1505 struct wpa_state_machine *sm = timeout_ctx; wpa_send_eapol_timeout() local
1514 __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) __wpa_send_eapol() argument
1727 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) wpa_send_eapol() argument
1799 wpa_remove_ptk(struct wpa_state_machine *sm) wpa_remove_ptk() argument
1823 wpa_auth_sm_event(struct wpa_state_machine *sm, enum wpa_event event) wpa_auth_sm_event() argument
2093 wpa_auth_sm_ptk_update(struct wpa_state_machine *sm) wpa_auth_sm_ptk_update() argument
2323 wpa_derive_ptk(struct wpa_state_machine *sm, const u8 *snonce, const u8 *pmk, unsigned int pmk_len, struct wpa_ptk *ptk, int force_sha256) wpa_derive_ptk() argument
2374 fils_auth_pmk_to_ptk(struct wpa_state_machine *sm, const u8 *pmk, size_t pmk_len, const u8 *snonce, const u8 *anonce, const u8 *dhss, size_t dhss_len, struct wpabuf *g_sta, struct wpabuf *g_ap) fils_auth_pmk_to_ptk() argument
2452 wpa_aead_decrypt(struct wpa_state_machine *sm, struct wpa_ptk *ptk, u8 *buf, size_t buf_len, u16 *_key_data_len) wpa_aead_decrypt() argument
2507 wpa_fils_validate_fils_session(struct wpa_state_machine *sm, const u8 *ies, size_t ies_len, const u8 *fils_session) wpa_fils_validate_fils_session() argument
2561 wpa_fils_validate_key_confirm(struct wpa_state_machine *sm, const u8 *ies, size_t ies_len) wpa_fils_validate_key_confirm() argument
2604 fils_decrypt_assoc(struct wpa_state_machine *sm, const u8 *fils_session, const struct ieee80211_mgmt *mgmt, size_t frame_len, u8 *pos, size_t left) fils_decrypt_assoc() argument
2692 fils_encrypt_assoc(struct wpa_state_machine *sm, u8 *buf, size_t current_len, size_t max_len, const struct wpabuf *hlp) fils_encrypt_assoc() argument
2770 fils_prepare_plainbuf(struct wpa_state_machine *sm, const struct wpabuf *hlp) fils_prepare_plainbuf() argument
2879 fils_set_tk(struct wpa_state_machine *sm) fils_set_tk() argument
2911 hostapd_eid_assoc_fils_session(struct wpa_state_machine *sm, u8 *buf, const u8 *fils_session, struct wpabuf *hlp) hostapd_eid_assoc_fils_session() argument
2944 get_sta_tx_parameters(struct wpa_state_machine *sm, int ap_max_chanwidth, int ap_seg1_idx, int *bandwidth, int *seg1_idx) get_sta_tx_parameters() argument
3256 ieee80211w_kde_len(struct wpa_state_machine *sm) ieee80211w_kde_len() argument
3273 ieee80211w_kde_add(struct wpa_state_machine *sm, u8 *pos) ieee80211w_kde_add() argument
3332 ocv_oci_len(struct wpa_state_machine *sm) ocv_oci_len() argument
3342 ocv_oci_add(struct wpa_state_machine *sm, u8 **argpos, unsigned int freq) ocv_oci_add() argument
4155 wpa_group_update_sta(struct wpa_state_machine *sm, void *ctx) wpa_group_update_sta() argument
4190 wpa_wnmsleep_rekey_gtk(struct wpa_state_machine *sm) wpa_wnmsleep_rekey_gtk() argument
4199 wpa_set_wnmsleep(struct wpa_state_machine *sm, int flag) wpa_set_wnmsleep() argument
4206 wpa_wnmsleep_gtk_subelem(struct wpa_state_machine *sm, u8 *pos) wpa_wnmsleep_gtk_subelem() argument
4246 wpa_wnmsleep_igtk_subelem(struct wpa_state_machine *sm, u8 *pos) wpa_wnmsleep_igtk_subelem() argument
4285 wpa_wnmsleep_bigtk_subelem(struct wpa_state_machine *sm, u8 *pos) wpa_wnmsleep_bigtk_subelem() argument
4401 wpa_group_disconnect_cb(struct wpa_state_machine *sm, void *ctx) wpa_group_disconnect_cb() argument
4465 wpa_sm_step(struct wpa_state_machine *sm) wpa_sm_step() argument
4509 struct wpa_state_machine *sm = eloop_ctx; wpa_sm_call_step() local
4514 wpa_auth_sm_notify(struct wpa_state_machine *sm) wpa_auth_sm_notify() argument
4649 wpa_get_mib_sta(struct wpa_state_machine *sm, char *buf, size_t buflen) wpa_get_mib_sta() argument
4712 wpa_auth_pairwise_set(struct wpa_state_machine *sm) wpa_auth_pairwise_set() argument
4718 wpa_auth_get_pairwise(struct wpa_state_machine *sm) wpa_auth_get_pairwise() argument
4724 wpa_auth_get_pmk(struct wpa_state_machine *sm, int *len) wpa_auth_get_pmk() argument
4733 wpa_auth_sta_key_mgmt(struct wpa_state_machine *sm) wpa_auth_sta_key_mgmt() argument
4741 wpa_auth_sta_wpa_version(struct wpa_state_machine *sm) wpa_auth_sta_wpa_version() argument
4749 wpa_auth_sta_ft_tk_already_set(struct wpa_state_machine *sm) wpa_auth_sta_ft_tk_already_set() argument
4757 wpa_auth_sta_fils_tk_already_set(struct wpa_state_machine *sm) wpa_auth_sta_fils_tk_already_set() argument
4765 wpa_auth_sta_clear_pmksa(struct wpa_state_machine *sm, struct rsn_pmksa_cache_entry *entry) wpa_auth_sta_clear_pmksa() argument
4776 wpa_auth_sta_get_pmksa(struct wpa_state_machine *sm) wpa_auth_sta_get_pmksa() argument
4782 wpa_auth_sta_local_mic_failure_report(struct wpa_state_machine *sm) wpa_auth_sta_local_mic_failure_report() argument
4798 wpa_auth_pmksa_add(struct wpa_state_machine *sm, const u8 *pmk, unsigned int pmk_len, int session_timeout, struct eapol_state_machine *eapol) wpa_auth_pmksa_add() argument
4871 wpa_auth_add_sae_pmkid(struct wpa_state_machine *sm, const u8 *pmkid) wpa_auth_add_sae_pmkid() argument
4990 wpa_auth_pmksa_set_to_sm(struct rsn_pmksa_cache_entry *pmksa, struct wpa_state_machine *sm, struct wpa_authenticator *wpa_auth, u8 *pmkid, u8 *pmk) wpa_auth_pmksa_set_to_sm() argument
5175 wpa_auth_sta_set_vlan(struct wpa_state_machine *sm, int vlan_id) wpa_auth_sta_set_vlan() argument
5213 wpa_auth_eapol_key_tx_status(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int ack) wpa_auth_eapol_key_tx_status() argument
5251 wpa_auth_uses_sae(struct wpa_state_machine *sm) wpa_auth_uses_sae() argument
5259 wpa_auth_uses_ft_sae(struct wpa_state_machine *sm) wpa_auth_uses_ft_sae() argument
5268 wpa_auth_get_ip_addr(struct wpa_state_machine *sm, u8 *addr) wpa_auth_get_ip_addr() argument
5351 wpa_auth_get_fils_aead_params(struct wpa_state_machine *sm, u8 *fils_anonce, u8 *fils_snonce, u8 *fils_kek, size_t *fils_kek_len) wpa_auth_get_fils_aead_params() argument
5362 wpa_auth_add_fils_pmk_pmkid(struct wpa_state_machine *sm, const u8 *pmk, size_t pmk_len, const u8 *pmkid) wpa_auth_add_fils_pmk_pmkid() argument
5374 wpa_auth_set_auth_alg(struct wpa_state_machine *sm, u16 auth_alg) wpa_auth_set_auth_alg() argument
5382 wpa_auth_set_dpp_z(struct wpa_state_machine *sm, const struct wpabuf *z) wpa_auth_set_dpp_z() argument
5402 wpa_auth_resend_m1(struct wpa_state_machine *sm, int change_anonce, void (*cb)(void *ctx1, void *ctx2), void *ctx1, void *ctx2) wpa_auth_resend_m1() argument
5424 wpa_auth_resend_m3(struct wpa_state_machine *sm, void (*cb)(void *ctx1, void *ctx2), void *ctx1, void *ctx2) wpa_auth_resend_m3() argument
5604 wpa_auth_resend_group_m1(struct wpa_state_machine *sm, void (*cb)(void *ctx1, void *ctx2), void *ctx1, void *ctx2) wpa_auth_resend_group_m1() argument
5681 wpa_auth_rekey_ptk(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm) wpa_auth_rekey_ptk() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
H A Dwpa_auth.c36 #define STATE_MACHINE_ADDR sm->addr
40 static int wpa_sm_step(struct wpa_state_machine *sm);
44 static int wpa_aead_decrypt(struct wpa_state_machine *sm, struct wpa_ptk *ptk,
46 static struct wpabuf * fils_prepare_plainbuf(struct wpa_state_machine *sm,
52 static void wpa_request_new_ptk(struct wpa_state_machine *sm);
57 static int wpa_derive_ptk(struct wpa_state_machine *sm, const u8 *snonce,
66 static u8 * ieee80211w_kde_add(struct wpa_state_machine *sm, u8 *pos);
186 int (*cb)(struct wpa_state_machine *sm, void *ctx), in wpa_auth_for_each_sta()
321 struct wpa_state_machine *sm = timeout_ctx; in wpa_rekey_ptk() local
323 wpa_auth_logger(wpa_auth, sm in wpa_rekey_ptk()
185 wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_state_machine *sm, void *ctx), void *cb_ctx) wpa_auth_for_each_sta() argument
329 wpa_auth_set_ptk_rekey_timer(struct wpa_state_machine *sm) wpa_auth_set_ptk_rekey_timer() argument
342 wpa_auth_pmksa_clear_cb(struct wpa_state_machine *sm, void *ctx) wpa_auth_pmksa_clear_cb() argument
612 struct wpa_state_machine *sm; wpa_auth_sta_init() local
632 wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm) wpa_auth_sta_associated() argument
680 wpa_auth_sta_no_wpa(struct wpa_state_machine *sm) wpa_auth_sta_no_wpa() argument
692 wpa_free_sta_sm(struct wpa_state_machine *sm) wpa_free_sta_sm() argument
725 wpa_auth_sta_deinit(struct wpa_state_machine *sm) wpa_auth_sta_deinit() argument
758 wpa_request_new_ptk(struct wpa_state_machine *sm) wpa_request_new_ptk() argument
798 ft_check_msg_2_of_4(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_ie_parse *kde) ft_check_msg_2_of_4() argument
847 wpa_receive_error_report(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int group) wpa_receive_error_report() argument
880 wpa_try_alt_snonce(struct wpa_state_machine *sm, u8 *data, size_t data_len) wpa_try_alt_snonce() argument
950 wpa_receive(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, u8 *data, size_t data_len) wpa_receive() argument
1426 struct wpa_state_machine *sm = timeout_ctx; wpa_send_eapol_timeout() local
1435 __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) __wpa_send_eapol() argument
1651 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) wpa_send_eapol() argument
1717 wpa_remove_ptk(struct wpa_state_machine *sm) wpa_remove_ptk() argument
1733 wpa_auth_sm_event(struct wpa_state_machine *sm, enum wpa_event event) wpa_auth_sm_event() argument
1989 wpa_auth_sm_ptk_update(struct wpa_state_machine *sm) wpa_auth_sm_ptk_update() argument
2218 wpa_derive_ptk(struct wpa_state_machine *sm, const u8 *snonce, const u8 *pmk, unsigned int pmk_len, struct wpa_ptk *ptk) wpa_derive_ptk() argument
2257 fils_auth_pmk_to_ptk(struct wpa_state_machine *sm, const u8 *pmk, size_t pmk_len, const u8 *snonce, const u8 *anonce, const u8 *dhss, size_t dhss_len, struct wpabuf *g_sta, struct wpabuf *g_ap) fils_auth_pmk_to_ptk() argument
2333 wpa_aead_decrypt(struct wpa_state_machine *sm, struct wpa_ptk *ptk, u8 *buf, size_t buf_len, u16 *_key_data_len) wpa_aead_decrypt() argument
2388 wpa_fils_validate_fils_session(struct wpa_state_machine *sm, const u8 *ies, size_t ies_len, const u8 *fils_session) wpa_fils_validate_fils_session() argument
2442 wpa_fils_validate_key_confirm(struct wpa_state_machine *sm, const u8 *ies, size_t ies_len) wpa_fils_validate_key_confirm() argument
2485 fils_decrypt_assoc(struct wpa_state_machine *sm, const u8 *fils_session, const struct ieee80211_mgmt *mgmt, size_t frame_len, u8 *pos, size_t left) fils_decrypt_assoc() argument
2573 fils_encrypt_assoc(struct wpa_state_machine *sm, u8 *buf, size_t current_len, size_t max_len, const struct wpabuf *hlp) fils_encrypt_assoc() argument
2651 fils_prepare_plainbuf(struct wpa_state_machine *sm, const struct wpabuf *hlp) fils_prepare_plainbuf() argument
2740 fils_set_tk(struct wpa_state_machine *sm) fils_set_tk() argument
2769 hostapd_eid_assoc_fils_session(struct wpa_state_machine *sm, u8 *buf, const u8 *fils_session, struct wpabuf *hlp) hostapd_eid_assoc_fils_session() argument
2802 get_sta_tx_parameters(struct wpa_state_machine *sm, int ap_max_chanwidth, int ap_seg1_idx, int *bandwidth, int *seg1_idx) get_sta_tx_parameters() argument
3059 ieee80211w_kde_len(struct wpa_state_machine *sm) ieee80211w_kde_len() argument
3071 ieee80211w_kde_add(struct wpa_state_machine *sm, u8 *pos) ieee80211w_kde_add() argument
3107 ieee80211w_kde_len(struct wpa_state_machine *sm) ieee80211w_kde_len() argument
3113 ieee80211w_kde_add(struct wpa_state_machine *sm, u8 *pos) ieee80211w_kde_add() argument
3121 ocv_oci_len(struct wpa_state_machine *sm) ocv_oci_len() argument
3130 ocv_oci_add(struct wpa_state_machine *sm, u8 **argpos) ocv_oci_add() argument
3798 wpa_group_update_sta(struct wpa_state_machine *sm, void *ctx) wpa_group_update_sta() argument
3834 wpa_wnmsleep_rekey_gtk(struct wpa_state_machine *sm) wpa_wnmsleep_rekey_gtk() argument
3843 wpa_set_wnmsleep(struct wpa_state_machine *sm, int flag) wpa_set_wnmsleep() argument
3850 wpa_wnmsleep_gtk_subelem(struct wpa_state_machine *sm, u8 *pos) wpa_wnmsleep_gtk_subelem() argument
3882 wpa_wnmsleep_igtk_subelem(struct wpa_state_machine *sm, u8 *pos) wpa_wnmsleep_igtk_subelem() argument
3980 wpa_group_disconnect_cb(struct wpa_state_machine *sm, void *ctx) wpa_group_disconnect_cb() argument
4042 wpa_sm_step(struct wpa_state_machine *sm) wpa_sm_step() argument
4085 struct wpa_state_machine *sm = eloop_ctx; wpa_sm_call_step() local
4090 wpa_auth_sm_notify(struct wpa_state_machine *sm) wpa_auth_sm_notify() argument
4222 wpa_get_mib_sta(struct wpa_state_machine *sm, char *buf, size_t buflen) wpa_get_mib_sta() argument
4285 wpa_auth_pairwise_set(struct wpa_state_machine *sm) wpa_auth_pairwise_set() argument
4291 wpa_auth_get_pairwise(struct wpa_state_machine *sm) wpa_auth_get_pairwise() argument
4297 wpa_auth_get_pmk(struct wpa_state_machine *sm, int *len) wpa_auth_get_pmk() argument
4306 wpa_auth_sta_key_mgmt(struct wpa_state_machine *sm) wpa_auth_sta_key_mgmt() argument
4314 wpa_auth_sta_wpa_version(struct wpa_state_machine *sm) wpa_auth_sta_wpa_version() argument
4322 wpa_auth_sta_ft_tk_already_set(struct wpa_state_machine *sm) wpa_auth_sta_ft_tk_already_set() argument
4330 wpa_auth_sta_fils_tk_already_set(struct wpa_state_machine *sm) wpa_auth_sta_fils_tk_already_set() argument
4338 wpa_auth_sta_clear_pmksa(struct wpa_state_machine *sm, struct rsn_pmksa_cache_entry *entry) wpa_auth_sta_clear_pmksa() argument
4349 wpa_auth_sta_get_pmksa(struct wpa_state_machine *sm) wpa_auth_sta_get_pmksa() argument
4355 wpa_auth_sta_local_mic_failure_report(struct wpa_state_machine *sm) wpa_auth_sta_local_mic_failure_report() argument
4371 wpa_auth_pmksa_add(struct wpa_state_machine *sm, const u8 *pmk, unsigned int pmk_len, int session_timeout, struct eapol_state_machine *eapol) wpa_auth_pmksa_add() argument
4443 wpa_auth_add_sae_pmkid(struct wpa_state_machine *sm, const u8 *pmkid) wpa_auth_add_sae_pmkid() argument
4561 wpa_auth_pmksa_set_to_sm(struct rsn_pmksa_cache_entry *pmksa, struct wpa_state_machine *sm, struct wpa_authenticator *wpa_auth, u8 *pmkid, u8 *pmk) wpa_auth_pmksa_set_to_sm() argument
4746 wpa_auth_sta_set_vlan(struct wpa_state_machine *sm, int vlan_id) wpa_auth_sta_set_vlan() argument
4783 wpa_auth_eapol_key_tx_status(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int ack) wpa_auth_eapol_key_tx_status() argument
4821 wpa_auth_uses_sae(struct wpa_state_machine *sm) wpa_auth_uses_sae() argument
4829 wpa_auth_uses_ft_sae(struct wpa_state_machine *sm) wpa_auth_uses_ft_sae() argument
4838 wpa_auth_get_ip_addr(struct wpa_state_machine *sm, u8 *addr) wpa_auth_get_ip_addr() argument
4921 wpa_auth_get_fils_aead_params(struct wpa_state_machine *sm, u8 *fils_anonce, u8 *fils_snonce, u8 *fils_kek, size_t *fils_kek_len) wpa_auth_get_fils_aead_params() argument
4932 wpa_auth_add_fils_pmk_pmkid(struct wpa_state_machine *sm, const u8 *pmk, size_t pmk_len, const u8 *pmkid) wpa_auth_add_fils_pmk_pmkid() argument
4944 wpa_auth_set_auth_alg(struct wpa_state_machine *sm, u16 auth_alg) wpa_auth_set_auth_alg() argument
4952 wpa_auth_set_dpp_z(struct wpa_state_machine *sm, const struct wpabuf *z) wpa_auth_set_dpp_z() argument
4964 wpa_auth_resend_m1(struct wpa_state_machine *sm, int change_anonce, void (*cb)(void *ctx1, void *ctx2), void *ctx1, void *ctx2) wpa_auth_resend_m1() argument
4986 wpa_auth_resend_m3(struct wpa_state_machine *sm, void (*cb)(void *ctx1, void *ctx2), void *ctx1, void *ctx2) wpa_auth_resend_m3() argument
5161 wpa_auth_resend_group_m1(struct wpa_state_machine *sm, void (*cb)(void *ctx1, void *ctx2), void *ctx1, void *ctx2) wpa_auth_resend_group_m1() argument
[all...]

Completed in 221 milliseconds

1234567891011