Home
last modified time | relevance | path

Searched defs:sm (Results 1 – 25 of 30) sorted by relevance

12

/hal_espressif-latest/components/wpa_supplicant/src/rsn_supp/
Dwpa.c72 static inline enum wpa_states wpa_sm_get_state(struct wpa_sm *sm) in wpa_sm_get_state()
77 static inline void wpa_sm_cancel_auth_timeout(struct wpa_sm *sm) in wpa_sm_cancel_auth_timeout()
202 static inline int wpa_sm_get_bssid(struct wpa_sm *sm, u8 *bssid) in wpa_sm_get_bssid()
217 static inline int wpa_sm_ether_send(struct wpa_sm *sm, const u8 *dest, u16 proto, in wpa_sm_ether_send()
235 void wpa_eapol_key_send(struct wpa_sm *sm, const u8 *kck, size_t kck_len, in wpa_eapol_key_send()
280 static void wpa_sm_key_request(struct wpa_sm *sm, int error, int pairwise) in wpa_sm_key_request()
354 struct wpa_sm *sm = ctx; in wpa_sm_pmksa_free_cb() local
394 static int wpa_supplicant_get_pmk(struct wpa_sm *sm, in wpa_supplicant_get_pmk()
545 int wpa_supplicant_send_2_of_4(struct wpa_sm *sm, const unsigned char *dst, in wpa_supplicant_send_2_of_4()
646 static int wpa_derive_ptk(struct wpa_sm *sm, const unsigned char *src_addr, in wpa_derive_ptk()
[all …]
Dwpa_ft.c23 int wpa_derive_ptk_ft(struct wpa_sm *sm, const unsigned char *src_addr, in wpa_derive_ptk_ft()
63 int wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len) in wpa_sm_set_ft_params()
153 static u8 * wpa_ft_gen_req_ies(struct wpa_sm *sm, size_t *len, in wpa_ft_gen_req_ies()
327 static int wpa_ft_install_ptk(struct wpa_sm *sm, const u8 *bssid) in wpa_ft_install_ptk()
360 int wpa_ft_prepare_auth_request(struct wpa_sm *sm, const u8 *mdie) in wpa_ft_prepare_auth_request()
383 int wpa_ft_add_mdie(struct wpa_sm *sm, u8 *buf, size_t buf_len, in wpa_ft_add_mdie()
408 const u8 * wpa_sm_get_ft_md(struct wpa_sm *sm) in wpa_sm_get_ft_md()
414 int wpa_ft_process_response(struct wpa_sm *sm, const u8 *ies, size_t ies_len, in wpa_ft_process_response()
566 int wpa_ft_is_completed(struct wpa_sm *sm) in wpa_ft_is_completed()
578 void wpa_reset_ft_completed(struct wpa_sm *sm) in wpa_reset_ft_completed()
[all …]
Dwpa.h83 wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len) in wpa_sm_set_ft_params()
88 static inline int wpa_ft_prepare_auth_request(struct wpa_sm *sm, in wpa_ft_prepare_auth_request()
94 static inline int wpa_ft_add_mdie(struct wpa_sm *sm, u8 *ies, size_t ies_len, in wpa_ft_add_mdie()
101 wpa_ft_process_response(struct wpa_sm *sm, const u8 *ies, size_t ies_len, in wpa_ft_process_response()
107 static inline int wpa_ft_is_completed(struct wpa_sm *sm) in wpa_ft_is_completed()
112 static inline void wpa_reset_ft_completed(struct wpa_sm *sm) in wpa_reset_ft_completed()
117 wpa_ft_validate_reassoc_resp(struct wpa_sm *sm, const u8 *ies, size_t ies_len, in wpa_ft_validate_reassoc_resp()
Dpmksa_cache.c27 struct wpa_sm *sm; /* TODO: get rid of this reference(?) */ member
385 struct rsn_pmksa_cache_entry * pmksa_cache_get_current(struct wpa_sm *sm) in pmksa_cache_get_current()
397 void pmksa_cache_clear_current(struct wpa_sm *sm) in pmksa_cache_clear_current()
414 int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid, in pmksa_cache_set_current()
505 void *ctx, struct wpa_sm *sm) in pmksa_cache_init()
Dpmksa_cache.h78 void *ctx, struct wpa_sm *sm) in pmksa_cache_init()
95 pmksa_cache_get_current(struct wpa_sm *sm) in pmksa_cache_get_current()
114 static inline void pmksa_cache_clear_current(struct wpa_sm *sm) in pmksa_cache_clear_current()
118 static inline int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid, in pmksa_cache_set_current()
Dwpa_ie.c116 struct wpa_sm *sm) in wpa_gen_wpa_ie_rsn()
272 int wpa_gen_wpa_ie(struct wpa_sm *sm, u8 *wpa_ie, size_t wpa_ie_len) in wpa_gen_wpa_ie()
291 int wpa_gen_rsnxe(struct wpa_sm *sm, u8 *rsnxe, size_t rsnxe_len) in wpa_gen_rsnxe()
/hal_espressif-latest/components/wpa_supplicant/src/eap_peer/
Deap.c109 static int eap_config_allowed_method(struct eap_sm *sm, in eap_config_allowed_method()
149 int eap_allowed_method(struct eap_sm *sm, int vendor, u32 method) in eap_allowed_method()
265 bool eap_sm_allowMethod(struct eap_sm *sm, int vendor, in eap_sm_allowMethod()
317 void eap_deinit_prev_method(struct eap_sm *sm, const char *txt) in eap_deinit_prev_method()
326 static int eap_sm_set_scard_pin(struct eap_sm *sm, in eap_sm_set_scard_pin()
332 static int eap_sm_get_scard_identity(struct eap_sm *sm, in eap_sm_get_scard_identity()
350 struct wpabuf * eap_sm_buildIdentity(struct eap_sm *sm, int id, int encrypted) in eap_sm_buildIdentity()
410 struct wpabuf * eap_sm_build_identity_resp(struct eap_sm *sm, u8 id, int encrypted) in eap_sm_build_identity_resp()
449 struct wpabuf * eap_sm_build_nak(struct eap_sm *sm, EapType type, u8 id) in eap_sm_build_nak()
511 struct eap_sm *sm, const u8 *private_key_passwd, in eap_peer_config_init()
[all …]
Deap_ttls.c70 static void * eap_ttls_init(struct eap_sm *sm) in eap_ttls_init()
118 static void eap_ttls_phase2_eap_deinit(struct eap_sm *sm, in eap_ttls_phase2_eap_deinit()
129 static void eap_ttls_deinit(struct eap_sm *sm, void *priv) in eap_ttls_deinit()
206 static int eap_ttls_v0_derive_key(struct eap_sm *sm, in eap_ttls_v0_derive_key()
240 static u8 * eap_ttls_implicit_challenge(struct eap_sm *sm, in eap_ttls_implicit_challenge()
270 static int eap_ttls_phase2_eap_process(struct eap_sm *sm, in eap_ttls_phase2_eap_process()
296 static int eap_ttls_phase2_request_eap_method(struct eap_sm *sm, in eap_ttls_phase2_request_eap_method()
368 static int eap_ttls_phase2_request_eap(struct eap_sm *sm, in eap_ttls_phase2_request_eap()
411 static int eap_ttls_phase2_request_mschapv2(struct eap_sm *sm, in eap_ttls_phase2_request_mschapv2()
516 static int eap_ttls_phase2_request_mschap(struct eap_sm *sm, in eap_ttls_phase2_request_mschap()
[all …]
Deap_tls_common.c31 static int eap_tls_check_blob(struct eap_sm *sm, const char **name, in eap_tls_check_blob()
94 static int eap_tls_params_from_conf(struct eap_sm *sm, in eap_tls_params_from_conf()
146 static int eap_tls_init_connection(struct eap_sm *sm, in eap_tls_init_connection()
208 int eap_peer_tls_ssl_init(struct eap_sm *sm, struct eap_ssl_data *data, in eap_peer_tls_ssl_init()
246 void eap_peer_tls_ssl_deinit(struct eap_sm *sm, struct eap_ssl_data *data) in eap_peer_tls_ssl_deinit()
268 u8 * eap_peer_tls_derive_key(struct eap_sm *sm, struct eap_ssl_data *data, in eap_peer_tls_derive_key()
299 u8 * eap_peer_tls_derive_session_id(struct eap_sm *sm, in eap_peer_tls_derive_session_id()
446 static int eap_tls_process_input(struct eap_sm *sm, struct eap_ssl_data *data, in eap_tls_process_input()
597 int eap_peer_tls_process_helper(struct eap_sm *sm, struct eap_ssl_data *data, in eap_peer_tls_process_helper()
697 int eap_peer_tls_reauth_init(struct eap_sm *sm, struct eap_ssl_data *data) in eap_peer_tls_reauth_init()
[all …]
Deap_fast.c145 static void * eap_fast_init(struct eap_sm *sm) in eap_fast_init()
229 static void eap_fast_deinit(struct eap_sm *sm, void *priv) in eap_fast_deinit()
268 static int eap_fast_derive_key_auth(struct eap_sm *sm, in eap_fast_derive_key_auth()
299 static int eap_fast_derive_key_provisioning(struct eap_sm *sm, in eap_fast_derive_key_provisioning()
331 static int eap_fast_derive_keys(struct eap_sm *sm, struct eap_fast_data *data) in eap_fast_derive_keys()
343 static int eap_fast_init_phase2_method(struct eap_sm *sm, in eap_fast_init_phase2_method()
413 static int eap_fast_phase2_request(struct eap_sm *sm, in eap_fast_phase2_request()
557 struct eap_sm *sm, struct eap_fast_data *data, in eap_fast_process_eap_payload_tlv()
646 static int eap_fast_get_phase2_key(struct eap_sm *sm, in eap_fast_get_phase2_key()
693 static int eap_fast_get_cmk(struct eap_sm *sm, struct eap_fast_data *data, in eap_fast_get_cmk()
[all …]
Deap_peap.c149 eap_peap_init(struct eap_sm *sm) in eap_peap_init()
191 eap_peap_deinit(struct eap_sm *sm, void *priv) in eap_peap_deinit()
237 eap_peap_get_isk(struct eap_sm *sm, struct eap_peap_data *data, in eap_peap_get_isk()
267 eap_peap_derive_cmk(struct eap_sm *sm, struct eap_peap_data *data) in eap_peap_derive_cmk()
322 eap_tlv_add_cryptobinding(struct eap_sm *sm, in eap_tlv_add_cryptobinding()
373 eap_tlv_build_result(struct eap_sm *sm, in eap_tlv_build_result()
407 eap_tlv_validate_cryptobinding(struct eap_sm *sm, in eap_tlv_validate_cryptobinding()
467 static bool peap_phase2_sufficient(struct eap_sm *sm, in peap_phase2_sufficient()
496 eap_tlv_process(struct eap_sm *sm, struct eap_peap_data *data, in eap_tlv_process()
653 static int eap_peap_phase2_request(struct eap_sm *sm, in eap_peap_phase2_request()
[all …]
Deap_tls.c33 static void * eap_tls_init(struct eap_sm *sm) in eap_tls_init()
62 static void eap_tls_deinit(struct eap_sm *sm, void *priv) in eap_tls_deinit()
74 static struct wpabuf * eap_tls_failure(struct eap_sm *sm, in eap_tls_failure()
110 static void eap_tls_success(struct eap_sm *sm, struct eap_tls_data *data, in eap_tls_success()
146 static struct wpabuf * eap_tls_process(struct eap_sm *sm, void *priv, in eap_tls_process()
188 static bool eap_tls_isKeyAvailable(struct eap_sm *sm, void *priv) in eap_tls_isKeyAvailable()
194 static u8 * eap_tls_getKey(struct eap_sm *sm, void *priv, size_t *len) in eap_tls_getKey()
Deap_mschapv2.c83 eap_mschapv2_deinit(struct eap_sm *sm, void *priv) in eap_mschapv2_deinit()
94 eap_mschapv2_init(struct eap_sm *sm) in eap_mschapv2_init()
131 struct eap_sm *sm, struct eap_mschapv2_data *data, in eap_mschapv2_challenge_reply()
222 struct eap_sm *sm, struct eap_mschapv2_data *data, in eap_mschapv2_challenge()
279 eap_mschapv2_password_changed(struct eap_sm *sm, in eap_mschapv2_password_changed()
310 eap_mschapv2_success(struct eap_sm *sm, in eap_mschapv2_success()
366 static int eap_mschapv2_failure_txt(struct eap_sm *sm, in eap_mschapv2_failure_txt()
472 struct eap_sm *sm, struct eap_mschapv2_data *data, in eap_mschapv2_change_password()
606 static struct wpabuf * eap_mschapv2_failure(struct eap_sm *sm, in eap_mschapv2_failure()
665 static int eap_mschapv2_check_config(struct eap_sm *sm) in eap_mschapv2_check_config()
[all …]
Deap_fast_pac.c254 static int eap_fast_init_pac_data(struct eap_sm *sm, const char *pac_file, in eap_fast_init_pac_data()
412 int eap_fast_load_pac(struct eap_sm *sm, struct eap_fast_pac **pac_root, in eap_fast_load_pac()
538 static int eap_fast_write_pac(struct eap_sm *sm, const char *pac_file, in eap_fast_write_pac()
622 int eap_fast_save_pac(struct eap_sm *sm, struct eap_fast_pac *pac_root, in eap_fast_save_pac()
753 int eap_fast_load_pac_bin(struct eap_sm *sm, struct eap_fast_pac **pac_root, in eap_fast_load_pac_bin()
877 int eap_fast_save_pac_bin(struct eap_sm *sm, struct eap_fast_pac *pac_root, in eap_fast_save_pac_bin()
/hal_espressif-latest/components/wpa_supplicant/src/eap_server/
Deap_server.c46 static int eap_get_erp_send_reauth_start(struct eap_sm *sm) in eap_get_erp_send_reauth_start()
52 static const char * eap_get_erp_domain(struct eap_sm *sm) in eap_get_erp_domain()
62 static struct eap_server_erp_key * eap_erp_get_key(struct eap_sm *sm, in eap_erp_get_key()
71 static int eap_erp_add_key(struct eap_sm *sm, struct eap_server_erp_key *erp) in eap_erp_add_key()
81 static struct wpabuf * eap_sm_buildInitiateReauthStart(struct eap_sm *sm, in eap_sm_buildInitiateReauthStart()
160 int eap_user_get(struct eap_sm *sm, const u8 *identity, size_t identity_len, in eap_user_get()
189 void eap_log_msg(struct eap_sm *sm, const char *fmt, ...) in eap_log_msg()
421 static void eap_server_erp_init(struct eap_sm *sm) in eap_server_erp_init()
705 static void erp_send_finish_reauth(struct eap_sm *sm, in erp_send_finish_reauth()
1440 static int eap_sm_calculateTimeout(struct eap_sm *sm, int retransCount, in eap_sm_calculateTimeout()
[all …]
Deap_server_identity.c21 static void * eap_identity_init(struct eap_sm *sm) in eap_identity_init()
34 static void * eap_identity_initPickUp(struct eap_sm *sm) in eap_identity_initPickUp()
45 static void eap_identity_reset(struct eap_sm *sm, void *priv) in eap_identity_reset()
52 static struct wpabuf * eap_identity_buildReq(struct eap_sm *sm, void *priv, in eap_identity_buildReq()
82 static bool eap_identity_check(struct eap_sm *sm, void *priv, in eap_identity_check()
99 static void eap_identity_process(struct eap_sm *sm, void *priv, in eap_identity_process()
143 static bool eap_identity_isDone(struct eap_sm *sm, void *priv) in eap_identity_isDone()
150 static bool eap_identity_isSuccess(struct eap_sm *sm, void *priv) in eap_identity_isSuccess()
Deap_server_wsc.c62 static void * eap_wsc_init(struct eap_sm *sm) in eap_wsc_init()
99 static void eap_wsc_reset(struct eap_sm *sm, void *priv) in eap_wsc_reset()
116 static struct wpabuf * eap_wsc_build_start(struct eap_sm *sm, in eap_wsc_build_start()
193 static struct wpabuf * eap_wsc_buildReq(struct eap_sm *sm, void *priv, u8 id) in eap_wsc_buildReq()
224 static bool eap_wsc_check(struct eap_sm *sm, void *priv, in eap_wsc_check()
299 static void eap_wsc_process(struct eap_sm *sm, void *priv, in eap_wsc_process()
414 static bool eap_wsc_isDone(struct eap_sm *sm, void *priv) in eap_wsc_isDone()
421 static bool eap_wsc_isSuccess(struct eap_sm *sm, void *priv) in eap_wsc_isSuccess()
428 static int eap_wsc_getTimeout(struct eap_sm *sm, void *priv) in eap_wsc_getTimeout()
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/
Desp_wps.c265 static inline int wps_sm_ether_send(struct wps_sm *sm, u16 proto, in wps_sm_ether_send()
280 u8 *wps_sm_alloc_eapol(struct wps_sm *sm, u8 type, in wps_sm_alloc_eapol()
298 struct wps_sm *sm = gWpsSm; in wps_build_ic_appie_wps_pr() local
360 struct wps_sm *sm = gWpsSm; in wps_parse_scan_result() local
451 struct wps_sm *sm = gWpsSm; in wps_send_eap_identity_rsp() local
491 struct wps_sm *sm = gWpsSm; in wps_send_frag_ack() local
529 struct wps_sm *sm = gWpsSm; in wps_enrollee_process_msg_frag() local
574 struct wps_sm *sm = gWpsSm; in wps_process_wps_mX_req() local
663 struct wps_sm *sm = gWpsSm; in wps_send_wps_mX_rsp() local
717 struct wps_sm *sm = gWpsSm; in wps_tx_start() local
[all …]
Desp_wpas_glue.c17 u8 *wpa_alloc_eapol(void *sm, u8 type, in wpa_alloc_eapol()
101 void wpa_supplicant_transition_disable(struct wpa_sm *sm, u8 bitmap) in wpa_supplicant_transition_disable()
129 u8 *wpa_sm_alloc_eapol(struct wpa_sm *sm, u8 type, in wpa_sm_alloc_eapol()
141 void wpa_sm_deauthenticate(struct wpa_sm *sm, u8 reason_code) in wpa_sm_deauthenticate()
166 int wpa_sm_mlme_setprotection(struct wpa_sm *sm, const u8 *addr, in wpa_sm_mlme_setprotection()
175 int wpa_sm_get_beacon_ie(struct wpa_sm *sm) in wpa_sm_get_beacon_ie()
188 void wpa_sm_disassociate(struct wpa_sm *sm, int reason_code) in wpa_sm_disassociate()
Desp_eap_client.c200 struct eap_sm *sm = gEapSm; in wpa2_task() local
270 struct eap_sm *sm = gEapSm; in wpa2_post() local
308 int eap_sm_send_eapol(struct eap_sm *sm, struct wpabuf *resp) in eap_sm_send_eapol()
338 int eap_sm_process_request(struct eap_sm *sm, struct wpabuf *reqData) in eap_sm_process_request()
465 struct eap_sm *sm = gEapSm; in eap_sm_rx_eapol() local
523 struct eap_sm *sm = gEapSm; in eap_sm_rx_eapol_internal() local
629 struct eap_sm *sm = gEapSm; in wpa2_start_eapol_internal() local
679 struct eap_sm *sm; in eap_peer_sm_init() local
761 struct eap_sm *sm = gEapSm; in eap_peer_sm_deinit() local
832 struct wpa_sm *sm = &gWpaSm; in esp_wifi_sta_enterprise_enable() local
[all …]
Desp_hostpad_wps.c40 struct wps_sm *sm = NULL; in wifi_ap_wps_init() local
116 struct wps_sm *sm = gWpsSm; in wifi_ap_wps_deinit() local
146 struct wps_sm *sm = gWpsSm; in wifi_ap_wps_enable_internal() local
226 struct wps_sm *sm = gWpsSm; in wifi_ap_wps_disable_internal() local
Desp_owe.c14 struct wpa_sm *sm = NULL; in owe_build_dhie() local
21 struct wpa_sm *sm; in owe_deinit() local
/hal_espressif-latest/components/wpa_supplicant/src/ap/
Dwpa_auth.c73 static void wpa_auth_add_sm(struct wpa_state_machine *sm) in wpa_auth_add_sm()
93 static void wpa_auth_del_sm(struct wpa_state_machine *sm) in wpa_auth_del_sm()
211 int (*cb)(struct wpa_state_machine *sm, void *ctx), in wpa_auth_for_each_sta()
225 static int wpa_use_aes_cmac(struct wpa_state_machine *sm) in wpa_use_aes_cmac()
261 struct wpa_state_machine *sm = timeout_ctx; in wpa_rekey_ptk() local
268 static int wpa_auth_pmksa_clear_cb(struct wpa_state_machine *sm, void *ctx) in wpa_auth_pmksa_clear_cb()
417 struct wpa_state_machine *sm; in wpa_auth_sta_init() local
432 struct wpa_state_machine *sm) in wpa_auth_sta_associated()
463 void wpa_auth_sta_no_wpa(struct wpa_state_machine *sm) in wpa_auth_sta_no_wpa()
475 static void wpa_free_sta_sm(struct wpa_state_machine *sm) in wpa_free_sta_sm()
[all …]
Dieee802_1x.c70 struct eapol_state_machine *sm = sta->eapol_sm; in handle_eap_response() local
284 struct eapol_state_machine *sm = sta->eapol_sm; in ieee802_1x_free_station() local
304 struct eapol_state_machine *sm = sta->eapol_sm; in ieee802_1x_eapol_send() local
/hal_espressif-latest/components/wpa_supplicant/src/eapol_auth/
Deapol_auth_sm.c90 static void eapol_auth_tx_canned_eap(struct eapol_state_machine *sm, in eapol_auth_tx_canned_eap()
111 static void eapol_auth_tx_req(struct eapol_state_machine *sm) in eapol_auth_tx_req()
775 struct eapol_state_machine *sm; in eapol_auth_alloc() local
861 void eapol_auth_free(struct eapol_state_machine *sm) in eapol_auth_free()
886 static void eapol_sm_step_run(struct eapol_state_machine *sm) in eapol_sm_step_run()
971 struct eapol_state_machine *sm = eloop_ctx; in eapol_sm_step_cb() local
983 void eapol_auth_step(struct eapol_state_machine *sm) in eapol_auth_step()
995 static void eapol_auth_initialize(struct eapol_state_machine *sm) in eapol_auth_initialize()
1016 struct eapol_state_machine *sm = ctx; in eapol_sm_get_eap_user() local
1029 struct eapol_state_machine *sm = ctx; in eapol_sm_get_eap_req_id_text() local
[all …]

12