Lines Matching defs:sm
57 static bool eapol_get_bool(struct eap_sm *sm, enum eapol_bool_var var) in eapol_get_bool()
63 static void eapol_set_bool(struct eap_sm *sm, enum eapol_bool_var var, in eapol_set_bool()
70 static unsigned int eapol_get_int(struct eap_sm *sm, enum eapol_int_var var) in eapol_get_int()
76 static void eapol_set_int(struct eap_sm *sm, enum eapol_int_var var, in eapol_set_int()
83 static struct wpabuf * eapol_get_eapReqData(struct eap_sm *sm) in eapol_get_eapReqData()
89 static void eap_notify_status(struct eap_sm *sm, const char *status, in eap_notify_status()
99 static void eap_report_error(struct eap_sm *sm, int error_code) in eap_report_error()
107 static void eap_sm_free_key(struct eap_sm *sm) in eap_sm_free_key()
116 static void eap_deinit_prev_method(struct eap_sm *sm, const char *txt) in eap_deinit_prev_method()
140 static int eap_config_allowed_method(struct eap_sm *sm, in eap_config_allowed_method()
167 int eap_allowed_method(struct eap_sm *sm, int vendor, u32 method) in eap_allowed_method()
175 static int eap_sm_append_3gpp_realm(struct eap_sm *sm, char *imsi, in eap_sm_append_3gpp_realm()
455 static char * eap_get_realm(struct eap_sm *sm, struct eap_peer_config *config) in eap_get_realm()
538 static char * eap_home_realm(struct eap_sm *sm) in eap_home_realm()
545 eap_erp_get_key(struct eap_sm *sm, const char *realm) in eap_erp_get_key()
565 eap_erp_get_key_nai(struct eap_sm *sm, const char *nai) in eap_erp_get_key_nai()
585 static void eap_erp_remove_keys_realm(struct eap_sm *sm, const char *realm) in eap_erp_remove_keys_realm()
597 int eap_peer_update_erp_next_seq_num(struct eap_sm *sm, u16 next_seq_num) in eap_peer_update_erp_next_seq_num()
631 int eap_peer_get_erp_info(struct eap_sm *sm, struct eap_peer_config *config, in eap_peer_get_erp_info()
682 void eap_peer_erp_free_keys(struct eap_sm *sm) in eap_peer_erp_free_keys()
696 void eap_peer_erp_init(struct eap_sm *sm, u8 *ext_session_id, in eap_peer_erp_init()
813 struct wpabuf * eap_peer_build_erp_reauth_start(struct eap_sm *sm, u8 eap_id) in eap_peer_build_erp_reauth_start()
870 static int eap_peer_erp_reauth_start(struct eap_sm *sm, u8 eap_id) in eap_peer_erp_reauth_start()
1135 static int eap_success_workaround(struct eap_sm *sm, int reqId, int lastId) in eap_success_workaround()
1165 static void eap_peer_sm_step_idle(struct eap_sm *sm) in eap_peer_sm_step_idle()
1197 static int eap_peer_req_is_duplicate(struct eap_sm *sm) in eap_peer_req_is_duplicate()
1223 static int eap_peer_sm_allow_canned(struct eap_sm *sm) in eap_peer_sm_allow_canned()
1232 static void eap_peer_sm_step_received(struct eap_sm *sm) in eap_peer_sm_step_received()
1294 static void eap_peer_sm_step_local(struct eap_sm *sm) in eap_peer_sm_step_local()
1396 static bool eap_sm_allowMethod(struct eap_sm *sm, int vendor, in eap_sm_allowMethod()
1413 struct eap_sm *sm, int id, const struct eap_method *methods, in eap_sm_build_expanded_nak()
1459 static struct wpabuf * eap_sm_buildNak(struct eap_sm *sm, int id) in eap_sm_buildNak()
1508 static void eap_sm_processIdentity(struct eap_sm *sm, const struct wpabuf *req) in eap_sm_processIdentity()
1560 static int eap_sm_imsi_identity(struct eap_sm *sm, in eap_sm_imsi_identity()
1640 static int eap_sm_set_scard_pin(struct eap_sm *sm, in eap_sm_set_scard_pin()
1659 static int eap_sm_get_scard_identity(struct eap_sm *sm, in eap_sm_get_scard_identity()
1682 struct wpabuf * eap_sm_buildIdentity(struct eap_sm *sm, int id, int encrypted) in eap_sm_buildIdentity()
1780 static void eap_sm_processNotify(struct eap_sm *sm, const struct wpabuf *req) in eap_sm_processNotify()
1813 static void eap_peer_initiate(struct eap_sm *sm, const struct eap_hdr *hdr, in eap_peer_initiate()
1864 void eap_peer_finish(struct eap_sm *sm, const struct eap_hdr *hdr, size_t len) in eap_peer_finish()
2025 static void eap_sm_parseEapReq(struct eap_sm *sm, const struct wpabuf *req) in eap_sm_parseEapReq()
2142 struct eap_sm *sm = ctx; in eap_peer_sm_tls_event() local
2202 struct eap_sm *sm = (struct eap_sm*) ctx; in tls_certificate_callback() local
2228 struct eap_sm *sm; in eap_peer_sm_init() local
2280 void eap_peer_sm_deinit(struct eap_sm *sm) in eap_peer_sm_deinit()
2304 int eap_peer_sm_step(struct eap_sm *sm) in eap_peer_sm_step()
2324 void eap_sm_abort(struct eap_sm *sm) in eap_sm_abort()
2429 int eap_sm_get_status(struct eap_sm *sm, char *buf, size_t buflen, int verbose) in eap_sm_get_status()
2489 static void eap_sm_request(struct eap_sm *sm, enum wpa_ctrl_req_type field, in eap_sm_request()
2554 const char * eap_sm_get_method_name(struct eap_sm *sm) in eap_sm_get_method_name()
2571 void eap_sm_request_identity(struct eap_sm *sm) in eap_sm_request_identity()
2586 void eap_sm_request_password(struct eap_sm *sm) in eap_sm_request_password()
2601 void eap_sm_request_new_password(struct eap_sm *sm) in eap_sm_request_new_password()
2616 void eap_sm_request_pin(struct eap_sm *sm) in eap_sm_request_pin()
2632 void eap_sm_request_otp(struct eap_sm *sm, const char *msg, size_t msg_len) in eap_sm_request_otp()
2647 void eap_sm_request_passphrase(struct eap_sm *sm) in eap_sm_request_passphrase()
2658 void eap_sm_request_sim(struct eap_sm *sm, const char *req) in eap_sm_request_sim()
2671 void eap_sm_notify_ctrl_attached(struct eap_sm *sm) in eap_sm_notify_ctrl_attached()
2780 void eap_set_fast_reauth(struct eap_sm *sm, int enabled) in eap_set_fast_reauth()
2791 void eap_set_workaround(struct eap_sm *sm, unsigned int workaround) in eap_set_workaround()
2807 struct eap_peer_config * eap_get_config(struct eap_sm *sm) in eap_get_config()
2819 const u8 * eap_get_config_identity(struct eap_sm *sm, size_t *len) in eap_get_config_identity()
2841 int eap_get_config_strict_conservative_peer_mode(struct eap_sm *sm) in eap_get_config_strict_conservative_peer_mode()
2867 const u8 * eap_get_config_realm(struct eap_sm *sm, size_t *len) { in eap_get_config_realm()
2911 static int eap_get_ext_password(struct eap_sm *sm, in eap_get_ext_password()
2948 const u8 * eap_get_config_password(struct eap_sm *sm, size_t *len) in eap_get_config_password()
2984 const u8 * eap_get_config_password2(struct eap_sm *sm, size_t *len, int *hash) in eap_get_config_password2()
3024 const u8 * eap_get_config_new_password(struct eap_sm *sm, size_t *len) in eap_get_config_new_password()
3040 const u8 * eap_get_config_otp(struct eap_sm *sm, size_t *len) in eap_get_config_otp()
3058 void eap_clear_config_otp(struct eap_sm *sm) in eap_clear_config_otp()
3075 const char * eap_get_config_phase1(struct eap_sm *sm) in eap_get_config_phase1()
3089 const char * eap_get_config_phase2(struct eap_sm *sm) in eap_get_config_phase2()
3098 int eap_get_config_fragment_size(struct eap_sm *sm) in eap_get_config_fragment_size()
3112 int eap_key_available(struct eap_sm *sm) in eap_key_available()
3122 void eap_notify_permanent_id_req_denied(struct eap_sm *sm) in eap_notify_permanent_id_req_denied()
3140 void eap_notify_success(struct eap_sm *sm) in eap_notify_success()
3156 void eap_notify_lower_layer_success(struct eap_sm *sm) in eap_notify_lower_layer_success()
3186 const u8 * eap_get_eapSessionId(struct eap_sm *sm, size_t *len) in eap_get_eapSessionId()
3209 const u8 * eap_get_eapKeyData(struct eap_sm *sm, size_t *len) in eap_get_eapKeyData()
3231 struct wpabuf * eap_get_eapRespData(struct eap_sm *sm) in eap_get_eapRespData()
3253 void eap_register_scard_ctx(struct eap_sm *sm, void *ctx) in eap_register_scard_ctx()
3268 void eap_set_config_blob(struct eap_sm *sm, struct wpa_config_blob *blob) in eap_set_config_blob()
3282 const struct wpa_config_blob * eap_get_config_blob(struct eap_sm *sm, in eap_get_config_blob()
3301 void eap_set_force_disabled(struct eap_sm *sm, int disabled) in eap_set_force_disabled()
3312 void eap_set_external_sim(struct eap_sm *sm, int external_sim) in eap_set_external_sim()
3327 void eap_notify_pending(struct eap_sm *sm) in eap_notify_pending()
3337 void eap_invalidate_cached_session(struct eap_sm *sm) in eap_invalidate_cached_session()
3370 void eap_sm_set_ext_pw_ctx(struct eap_sm *sm, struct ext_password_data *ext) in eap_sm_set_ext_pw_ctx()
3384 void eap_set_anon_id(struct eap_sm *sm, const u8 *id, size_t len) in eap_set_anon_id()
3391 int eap_peer_was_failure_expected(struct eap_sm *sm) in eap_peer_was_failure_expected()