Home
last modified time | relevance | path

Searched refs:identity (Results 1 – 25 of 37) sorted by relevance

12

/hal_espressif-latest/components/wpa_supplicant/src/ap/
Deap_user_db.c121 os_memcmp(argv[id], user->identity, len) == 0 && in get_wildcard_cb()
135 eap_user_sqlite_get(struct hostapd_data *hapd, const u8 *identity, in eap_user_sqlite_get() argument
150 os_memcpy(id_str, identity, identity_len); in eap_user_sqlite_get()
168 bin_clear_free(hapd->tmp_eap_user.identity, in eap_user_sqlite_get()
174 hapd->tmp_eap_user.identity = os_zalloc(identity_len + 1); in eap_user_sqlite_get()
175 if (hapd->tmp_eap_user.identity == NULL) in eap_user_sqlite_get()
177 os_memcpy(hapd->tmp_eap_user.identity, identity, identity_len); in eap_user_sqlite_get()
214 os_free(user->identity); in eap_user_sqlite_get()
215 user->identity = user->password; in eap_user_sqlite_get()
232 hostapd_get_eap_user(struct hostapd_data *hapd, const u8 *identity, in hostapd_get_eap_user() argument
[all …]
Dieee802_1x.c141 sta->identity, NULL); in ieee802_1x_alloc_eapol_sm()
302 const u8 *identity; in ieee802_1x_eapol_send() local
306 identity = eap_get_identity(sm->eap, &identity_len); in ieee802_1x_eapol_send()
307 if (identity && in ieee802_1x_eapol_send()
309 os_memcmp(identity, WSC_ID_ENROLLEE, in ieee802_1x_eapol_send()
312 os_memcmp(identity, WSC_ID_REGISTRAR, in ieee802_1x_eapol_send()
346 static int ieee802_1x_get_eap_user(void *ctx, const u8 *identity, in ieee802_1x_get_eap_user() argument
355 eap_user = hostapd_get_eap_user(hapd, identity, identity_len, phase2); in ieee802_1x_get_eap_user()
Dpmksa_cache_auth.h25 u8 *identity; member
Dhostapd.h169 hostapd_get_eap_user(struct hostapd_data *hapd, const u8 *identity,
Dsta_info.h51 char *identity; /* User-Name from RADIUS */ member
/hal_espressif-latest/components/wpa_supplicant/src/eap_peer/
Deap.c354 const u8 *identity; in eap_sm_buildIdentity() local
364 (identity = sm->m->get_identity(sm, sm->eap_method_priv, in eap_sm_buildIdentity()
367 "identity", identity, identity_len); in eap_sm_buildIdentity()
369 identity = config->anonymous_identity; in eap_sm_buildIdentity()
372 identity, identity_len); in eap_sm_buildIdentity()
374 identity = config->identity; in eap_sm_buildIdentity()
377 identity, identity_len); in eap_sm_buildIdentity()
380 if (identity == NULL) { in eap_sm_buildIdentity()
386 identity = config->identity; in eap_sm_buildIdentity()
389 "IMSI", identity, identity_len); in eap_sm_buildIdentity()
[all …]
Dmschapv2.c33 int mschapv2_derive_response(const u8 *identity, size_t identity_len, in mschapv2_derive_response() argument
46 identity, identity_len); in mschapv2_derive_response()
48 username = mschapv2_remove_domain(identity, &username_len); in mschapv2_derive_response()
Deap_ttls.c423 const u8 *identity, *password; in eap_ttls_phase2_request_mschapv2()
429 identity = eap_get_config_identity(sm, &identity_len); in eap_ttls_phase2_request_mschapv2()
431 if (identity == NULL || password == NULL) in eap_ttls_phase2_request_mschapv2()
443 identity, identity_len); in eap_ttls_phase2_request_mschapv2()
477 if (mschapv2_derive_response(identity, identity_len, password, in eap_ttls_phase2_request_mschapv2()
527 const u8 *identity, *password; in eap_ttls_phase2_request_mschap()
533 identity = eap_get_config_identity(sm, &identity_len); in eap_ttls_phase2_request_mschap()
535 if (identity == NULL || password == NULL) in eap_ttls_phase2_request_mschap()
548 identity, identity_len); in eap_ttls_phase2_request_mschap()
611 const u8 *identity, *password; in eap_ttls_phase2_request_pap() local
[all …]
Deap_mschapv2.c140 const u8 *identity, *password; in eap_mschapv2_challenge_reply() local
145 identity = eap_get_config_identity(sm, &identity_len); in eap_mschapv2_challenge_reply()
147 if (identity == NULL || password == NULL) in eap_mschapv2_challenge_reply()
189 if (mschapv2_derive_response(identity, identity_len, password, in eap_mschapv2_challenge_reply()
203 wpabuf_put_data(resp, identity, identity_len); in eap_mschapv2_challenge_reply()
672 if (config->identity == NULL || in eap_mschapv2_check_config()
Deap_config.h22 u8 *identity; member
/hal_espressif-latest/components/wpa_supplicant/src/eap_server/
Deap_server_identity.c129 if (sm->identity) in eap_identity_process()
131 os_free(sm->identity); in eap_identity_process()
132 sm->identity = os_malloc(len ? len : 1); in eap_identity_process()
133 if (sm->identity == NULL) { in eap_identity_process()
136 os_memcpy(sm->identity, pos, len); in eap_identity_process()
Deap_server_wsc.c67 if (sm->identity && sm->identity_len == WSC_ID_REGISTRAR_LEN && in eap_wsc_init()
68 os_memcmp(sm->identity, WSC_ID_REGISTRAR, WSC_ID_REGISTRAR_LEN) == in eap_wsc_init()
71 else if (sm->identity && sm->identity_len == WSC_ID_ENROLLEE_LEN && in eap_wsc_init()
72 os_memcmp(sm->identity, WSC_ID_ENROLLEE, WSC_ID_ENROLLEE_LEN) in eap_wsc_init()
77 sm->identity, sm->identity_len); in eap_wsc_init()
Deap_i.h159 u8 *identity; member
197 int eap_user_get(struct eap_sm *sm, const u8 *identity, size_t identity_len,
Deap_server.c160 int eap_user_get(struct eap_sm *sm, const u8 *identity, size_t identity_len, in eap_user_get() argument
176 if (sm->eapol_cb->get_eap_user(sm->eapol_ctx, identity, in eap_user_get()
227 if (sm->eap_if.eapRestart && !sm->cfg->eap_server && sm->identity) { in SM_STATE()
876 sm->identity = (u8 *) dup_binstr(parse.keyname, in SM_STATE()
878 if (!sm->identity) in SM_STATE()
1713 if (sm->identity == NULL || sm->currentId == -1) { in eap_sm_Policy_getNextMethod()
1735 if (!sm->cfg->eap_server && sm->identity && !sm->start_reauth) { in eap_sm_Policy_getDecision()
1756 if ((sm->user == NULL || sm->update_user) && sm->identity && in eap_sm_Policy_getDecision()
1769 if (eap_user_get(sm, sm->identity, sm->identity_len, 0) != 0) { in eap_sm_Policy_getDecision()
1796 if (!sm->identity && eap_get_erp_send_reauth_start(sm) && in eap_sm_Policy_getDecision()
[all …]
Deap.h101 int (*get_eap_user)(void *ctx, const u8 *identity, size_t identity_len,
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/
Desp_wpa2_api_port.c19 esp_err_t esp_wifi_sta_wpa2_ent_set_identity(const unsigned char *identity, int len) in esp_wifi_sta_wpa2_ent_set_identity() argument
21 return esp_eap_client_set_identity(identity, len); in esp_wifi_sta_wpa2_ent_set_identity()
Desp_hostpad_wps.c62 os_memcpy(sm->identity, WSC_ID_REGISTRAR, sm->identity_len); in wifi_ap_wps_init()
170 if (sm && os_memcmp(sm->identity, WSC_ID_ENROLLEE, sm->identity_len) == 0) { in wifi_ap_wps_enable_internal()
228 if (sm && os_memcmp(sm->identity, WSC_ID_ENROLLEE, sm->identity_len) == 0) { in wifi_ap_wps_disable_internal()
Desp_wps_i.h67 char identity[32]; member
/hal_espressif-latest/components/wpa_supplicant/src/eapol_auth/
Deapol_auth_sm.h50 int (*get_eap_user)(void *ctx, const u8 *identity, size_t identity_len,
72 const char *identity, const char *radius_cui);
Deapol_auth_sm.c773 const char *identity, const char *radius_cui) in eapol_auth_alloc() argument
840 if (identity) { in eapol_auth_alloc()
841 sm->identity = (u8 *) os_strdup(identity); in eapol_auth_alloc()
842 if (sm->identity) in eapol_auth_alloc()
843 sm->identity_len = os_strlen(identity); in eapol_auth_alloc()
874 os_free(sm->identity); in eapol_auth_free()
1012 static int eapol_sm_get_eap_user(void *ctx, const u8 *identity, in eapol_sm_get_eap_user() argument
1019 ret = sm->eapol->cb.get_eap_user(sm->eapol->conf.ctx, identity, in eapol_sm_get_eap_user()
Deapol_auth_sm_i.h153 u8 *identity; member
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/include/
Desp_eap_client.h95 esp_err_t esp_eap_client_set_identity(const unsigned char *identity, int len);
Desp_wpa2.h62 esp_err_t esp_wifi_sta_wpa2_ent_set_identity(const unsigned char *identity, int len);
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/include/
Dcfg_cli.h232 uint8_t identity; member
287 uint16_t net_idx, uint8_t identity);
Dcfg_srv.h176 uint8_t identity; member

12