Home
last modified time | relevance | path

Searched refs:identity_len (Results 1 – 21 of 21) sorted by relevance

/hal_espressif-3.7.0/components/wpa_supplicant/src/ap/
Deap_user_db.c120 if (len <= user->identity_len && in get_wildcard_cb()
136 size_t identity_len, int phase2) in eap_user_sqlite_get() argument
144 if (identity_len >= sizeof(id_str)) { in eap_user_sqlite_get()
146 __func__, (int) identity_len, in eap_user_sqlite_get()
150 os_memcpy(id_str, identity, identity_len); in eap_user_sqlite_get()
151 id_str[identity_len] = '\0'; in eap_user_sqlite_get()
152 for (i = 0; i < identity_len; i++) { in eap_user_sqlite_get()
169 hapd->tmp_eap_user.identity_len); in eap_user_sqlite_get()
174 hapd->tmp_eap_user.identity = os_zalloc(identity_len + 1); in eap_user_sqlite_get()
177 os_memcpy(hapd->tmp_eap_user.identity, identity, identity_len); in eap_user_sqlite_get()
[all …]
Dieee802_1x.c303 size_t identity_len; in ieee802_1x_eapol_send() local
306 identity = eap_get_identity(sm->eap, &identity_len); in ieee802_1x_eapol_send()
308 ((identity_len == WSC_ID_ENROLLEE_LEN && in ieee802_1x_eapol_send()
311 (identity_len == WSC_ID_REGISTRAR_LEN && in ieee802_1x_eapol_send()
347 size_t identity_len, int phase2, 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.h26 size_t identity_len; member
Dhostapd.h170 size_t identity_len, int phase2);
Dap_config.h112 size_t identity_len; member
/hal_espressif-3.7.0/components/wpa_supplicant/src/eap_peer/
Deap.c355 size_t identity_len; in eap_sm_buildIdentity() local
365 &identity_len)) != NULL) { in eap_sm_buildIdentity()
367 "identity", identity, identity_len); in eap_sm_buildIdentity()
370 identity_len = config->anonymous_identity_len; in eap_sm_buildIdentity()
372 identity, identity_len); in eap_sm_buildIdentity()
375 identity_len = config->identity_len; in eap_sm_buildIdentity()
377 identity, identity_len); in eap_sm_buildIdentity()
387 identity_len = config->identity_len; in eap_sm_buildIdentity()
389 "IMSI", identity, identity_len); in eap_sm_buildIdentity()
399 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_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()
47 username_len = identity_len; in mschapv2_derive_response()
Deap_ttls.c424 size_t identity_len, password_len; in eap_ttls_phase2_request_mschapv2()
429 identity = eap_get_config_identity(sm, &identity_len); in eap_ttls_phase2_request_mschapv2()
434 msg = wpabuf_alloc(identity_len + 1000); 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()
528 size_t identity_len, password_len; in eap_ttls_phase2_request_mschap()
533 identity = eap_get_config_identity(sm, &identity_len); in eap_ttls_phase2_request_mschap()
538 msg = wpabuf_alloc(identity_len + 1000); in eap_ttls_phase2_request_mschap()
548 identity, identity_len); in eap_ttls_phase2_request_mschap()
612 size_t identity_len, password_len; in eap_ttls_phase2_request_pap() local
[all …]
Deap_mschapv2.c139 size_t identity_len, password_len; in eap_mschapv2_challenge_reply() local
145 identity = eap_get_config_identity(sm, &identity_len); in eap_mschapv2_challenge_reply()
150 ms_len = sizeof(*ms) + 1 + sizeof(*r) + identity_len; 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()
673 config->identity_len == 0) { in eap_mschapv2_check_config()
Deap_config.h27 size_t identity_len; member
/hal_espressif-3.7.0/components/wpa_supplicant/esp_supplicant/src/
Desp_hostpad_wps.c58 sm->identity_len = WSC_ID_REGISTRAR_LEN; in wifi_ap_wps_init()
59 os_memcpy(sm->identity, WSC_ID_REGISTRAR, sm->identity_len); in wifi_ap_wps_init()
197 if (sm && os_memcmp(sm->identity, WSC_ID_ENROLLEE, sm->identity_len) == 0) { in esp_wifi_ap_wps_enable()
219 if (sm && os_memcmp(sm->identity, WSC_ID_ENROLLEE, sm->identity_len) == 0) { in esp_wifi_ap_wps_disable()
Desp_wps_i.h62 u8 identity_len; member
Desp_wps.c430 eap_buf = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_IDENTITY, sm->identity_len, in wps_send_eap_identity_rsp()
439 wpabuf_put_data(eap_buf, sm->identity, sm->identity_len); in wps_send_eap_identity_rsp()
1397 sm->identity_len = WSC_ID_ENROLLEE_LEN; in wifi_station_wps_init()
1398 os_memcpy(sm->identity, WSC_ID_ENROLLEE, sm->identity_len); in wifi_station_wps_init()
1812 if (sm && os_memcmp(sm->identity, WSC_ID_REGISTRAR, sm->identity_len) == 0) { in esp_wifi_wps_enable()
1894 if (wps_sm && os_memcmp(wps_sm->identity, WSC_ID_REGISTRAR, wps_sm->identity_len) == 0) { in esp_wifi_wps_disable()
/hal_espressif-3.7.0/components/wpa_supplicant/src/eap_server/
Deap_i.h160 size_t identity_len; member
197 int eap_user_get(struct eap_sm *sm, const u8 *identity, size_t identity_len,
Deap_server_wsc.c67 if (sm->identity && sm->identity_len == WSC_ID_REGISTRAR_LEN && in eap_wsc_init()
71 else if (sm->identity && sm->identity_len == WSC_ID_ENROLLEE_LEN && in eap_wsc_init()
77 sm->identity, sm->identity_len); in eap_wsc_init()
Deap.h101 int (*get_eap_user)(void *ctx, const u8 *identity, size_t identity_len,
Deap_server_identity.c137 sm->identity_len = len; in eap_identity_process()
Deap_server.c160 int eap_user_get(struct eap_sm *sm, const u8 *identity, size_t identity_len, in eap_user_get() argument
177 identity_len, phase2, user) != 0) { in eap_user_get()
880 sm->identity_len = parse.keyname_len; in SM_STATE()
1769 if (eap_user_get(sm, sm->identity, sm->identity_len, 0) != 0) { in eap_sm_Policy_getDecision()
1981 *len = sm->identity_len; in eap_get_identity()
2053 sm->identity_len = parse.keyname_len; in eap_erp_update_identity()
2055 sm->identity_len = 0; in eap_erp_update_identity()
/hal_espressif-3.7.0/components/wpa_supplicant/src/eapol_auth/
Deapol_auth_sm.h50 int (*get_eap_user)(void *ctx, const u8 *identity, size_t identity_len,
Deapol_auth_sm_i.h154 size_t identity_len; member
Deapol_auth_sm.c843 sm->identity_len = os_strlen(identity); in eapol_auth_alloc()
1013 size_t identity_len, int phase2, in eapol_sm_get_eap_user() argument
1020 identity_len, phase2, user); in eapol_sm_get_eap_user()