Home
last modified time | relevance | path

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

123

/external/wpa_supplicant_8/src/ap/
Deap_user_db.c118 if (len <= user->identity_len && in get_wildcard_cb()
134 size_t identity_len, int phase2) in eap_user_sqlite_get() argument
141 if (identity_len >= sizeof(id_str)) { in eap_user_sqlite_get()
143 __func__, (int) identity_len, in eap_user_sqlite_get()
147 os_memcpy(id_str, identity, identity_len); in eap_user_sqlite_get()
148 id_str[identity_len] = '\0'; in eap_user_sqlite_get()
149 for (i = 0; i < identity_len; i++) { in eap_user_sqlite_get()
166 hapd->tmp_eap_user.identity_len); in eap_user_sqlite_get()
171 hapd->tmp_eap_user.identity = os_zalloc(identity_len + 1); in eap_user_sqlite_get()
174 os_memcpy(hapd->tmp_eap_user.identity, identity, identity_len); in eap_user_sqlite_get()
[all …]
Dpmksa_cache_auth.c150 entry->identity = os_malloc(eapol->identity_len); in pmksa_cache_from_eapol_data()
152 entry->identity_len = eapol->identity_len; in pmksa_cache_from_eapol_data()
154 eapol->identity_len); in pmksa_cache_from_eapol_data()
189 eapol->identity = os_malloc(entry->identity_len); in pmksa_cache_to_eapol_data()
191 eapol->identity_len = entry->identity_len; in pmksa_cache_to_eapol_data()
193 entry->identity_len); in pmksa_cache_to_eapol_data()
196 eapol->identity, eapol->identity_len); in pmksa_cache_to_eapol_data()
412 entry->identity = os_malloc(old_entry->identity_len); in pmksa_cache_add_okc()
414 entry->identity_len = old_entry->identity_len; in pmksa_cache_add_okc()
416 old_entry->identity_len); in pmksa_cache_add_okc()
[all …]
Dieee802_1x.c309 size_t identity_len; in ieee802_1x_learn_identity() local
322 identity = eap_get_identity(sm->eap, &identity_len); in ieee802_1x_learn_identity()
328 sm->identity = (u8 *) dup_binstr(identity, identity_len); in ieee802_1x_learn_identity()
330 sm->identity_len = 0; in ieee802_1x_learn_identity()
334 sm->identity_len = identity_len; in ieee802_1x_learn_identity()
624 sm->identity, sm->identity_len)) { in ieee802_1x_encapsulate_radius()
1469 sm->identity_len = len; in ieee802_1x_update_sta_identity()
2008 size_t identity_len; in ieee802_1x_eapol_send() local
2011 identity = eap_get_identity(sm->eap, &identity_len); in ieee802_1x_eapol_send()
2013 ((identity_len == WSC_ID_ENROLLEE_LEN && in ieee802_1x_eapol_send()
[all …]
/external/wpa_supplicant_8/src/eap_server/
Deap_server_gtc.c132 (pos2 - pos != (int) sm->identity_len || in eap_gtc_process()
133 os_memcmp(pos, sm->identity, sm->identity_len))) { in eap_gtc_process()
138 sm->identity, sm->identity_len); in eap_gtc_process()
143 sm->identity_len = pos2 - pos; in eap_gtc_process()
144 sm->identity = os_malloc(sm->identity_len); in eap_gtc_process()
149 os_memcpy(sm->identity, pos, sm->identity_len); in eap_gtc_process()
152 if (eap_user_get(sm, sm->identity, sm->identity_len, 1) != 0) { in eap_gtc_process()
156 sm->identity, sm->identity_len); in eap_gtc_process()
Deap_server_sim.c129 } else if (sm->identity && sm->identity_len > 0 && in eap_sim_build_start()
263 sm->identity_len, data->nonce_s, data->mk, in eap_sim_build_reauth()
418 size_t identity_len; in eap_sim_process_start() local
437 if (!attr->identity || attr->identity_len == 0) { in eap_sim_process_start()
443 new_identity = os_malloc(attr->identity_len); in eap_sim_process_start()
448 os_memcpy(sm->identity, attr->identity, attr->identity_len); in eap_sim_process_start()
449 sm->identity_len = attr->identity_len; in eap_sim_process_start()
452 sm->identity, sm->identity_len); in eap_sim_process_start()
453 username = sim_get_username(sm->identity, sm->identity_len); in eap_sim_process_start()
538 identity_len = sm->identity_len; in eap_sim_process_start()
[all …]
Deap_server_aka.c138 username = sim_get_username(sm->identity, sm->identity_len); in eap_aka_check_identity()
370 } else if (sm->identity && sm->identity_len > 0 && in eap_aka_build_identity()
556 sm->identity_len, in eap_aka_build_reauth()
563 sm->identity_len, data->nonce_s, in eap_aka_build_reauth()
720 sm->identity, sm->identity_len); in eap_aka_determine_identity()
722 username = sim_get_username(sm->identity, sm->identity_len); in eap_aka_determine_identity()
786 size_t identity_len; in eap_aka_fullauth() local
826 identity_len = sm->identity_len; in eap_aka_fullauth()
827 while (identity_len > 0 && sm->identity[identity_len - 1] == '\0') { in eap_aka_fullauth()
830 identity_len--; in eap_aka_fullauth()
[all …]
Deap_server_fast.c62 size_t identity_len; member
132 size_t identity_len = 0; in eap_fast_session_ticket_cb() local
219 identity_len = elen; in eap_fast_session_ticket_cb()
236 "PAC-Opaque", identity, identity_len); in eap_fast_session_ticket_cb()
238 data->identity = os_malloc(identity_len); in eap_fast_session_ticket_cb()
240 os_memcpy(data->identity, identity, identity_len); in eap_fast_session_ticket_cb()
241 data->identity_len = identity_len; in eap_fast_session_ticket_cb()
703 (2 + sm->identity_len) + 8; in eap_fast_build_pac()
723 *pos++ = sm->identity_len; in eap_fast_build_pac()
724 os_memcpy(pos, sm->identity, sm->identity_len); in eap_fast_build_pac()
[all …]
Deap_server_ttls.c87 buf = wpabuf_alloc(1 + 1 + sm->identity_len); in eap_ttls_valid_session()
94 if (sm->identity_len <= 255) in eap_ttls_valid_session()
95 id_len = sm->identity_len; in eap_ttls_valid_session()
655 sm->identity, sm->identity_len, in eap_ttls_process_phase2_mschap()
730 username_len = sm->identity_len; in eap_ttls_process_phase2_mschapv2()
921 if (eap_user_get(sm, sm->identity, sm->identity_len, 1) != 0) { in eap_ttls_process_phase2_eap_response()
925 sm->identity, sm->identity_len); in eap_ttls_process_phase2_eap_response()
1060 sm->identity_len = parse.user_name_len; in eap_ttls_process_phase2()
1232 sm->identity_len = 0; in eap_ttls_process()
1238 sm->identity_len = id_len; in eap_ttls_process()
[all …]
Deap_i.h161 size_t identity_len; member
220 int eap_user_get(struct eap_sm *sm, const u8 *identity, size_t identity_len,
Deap_server_peap.c112 buf = wpabuf_alloc(1 + 1 + sm->identity_len); in eap_peap_valid_session()
119 if (sm->identity_len <= 255) in eap_peap_valid_session()
120 id_len = sm->identity_len; in eap_peap_valid_session()
1007 if (eap_user_get(sm, sm->identity, sm->identity_len, 1) != 0) { in eap_peap_process_phase2_response()
1011 sm->identity, sm->identity_len); in eap_peap_process_phase2_response()
1264 sm->identity_len = 0; in eap_peap_process()
1270 sm->identity_len = id_len; in eap_peap_process()
1272 if (eap_user_get(sm, sm->identity, sm->identity_len, 1) != 0) { in eap_peap_process()
1274 sm->identity, sm->identity_len); in eap_peap_process()
/external/wpa_supplicant_8/src/eap_common/
Deap_sim_common.h74 void eap_sim_derive_mk(const u8 *identity, size_t identity_len,
78 void eap_aka_derive_mk(const u8 *identity, size_t identity_len,
83 const u8 *identity, size_t identity_len,
92 void eap_aka_prime_derive_keys(const u8 *identity, size_t identity_len,
96 const u8 *identity, size_t identity_len,
109 size_t identity_len, in eap_aka_prime_derive_keys() argument
118 size_t identity_len, in eap_aka_prime_derive_keys_reauth() argument
191 size_t next_pseudonym_len, next_reauth_id_len, identity_len, res_len; member
Deap_sim_common.c28 void eap_sim_derive_mk(const u8 *identity, size_t identity_len, in eap_sim_derive_mk() argument
38 len[0] = identity_len; in eap_sim_derive_mk()
56 void eap_aka_derive_mk(const u8 *identity, size_t identity_len, in eap_aka_derive_mk() argument
63 len[0] = identity_len; in eap_aka_derive_mk()
108 const u8 *identity, size_t identity_len, in eap_sim_derive_keys_reauth() argument
118 while (identity_len > 0 && identity[identity_len - 1] == 0) { in eap_sim_derive_keys_reauth()
121 identity_len--; in eap_sim_derive_keys_reauth()
124 len[0] = identity_len; in eap_sim_derive_keys_reauth()
136 identity, identity_len); in eap_sim_derive_keys_reauth()
276 void eap_aka_prime_derive_keys(const u8 *identity, size_t identity_len, in eap_aka_prime_derive_keys() argument
[all …]
/external/wpa_supplicant_8/src/eap_peer/
Deap_gtc.c51 size_t password_len, identity_len, len, plen; in eap_gtc_process() local
99 identity = eap_get_config_identity(sm, &identity_len); in eap_gtc_process()
103 plen += 9 + identity_len + 1; in eap_gtc_process()
110 wpabuf_put_data(resp, identity, identity_len); in eap_gtc_process()
Deap_leap.c67 size_t identity_len, password_len, len; in eap_leap_process_request() local
72 identity = eap_get_config_identity(sm, &identity_len); in eap_leap_process_request()
110 3 + LEAP_RESPONSE_LEN + identity_len, in eap_leap_process_request()
125 wpabuf_put_data(resp, identity, identity_len); in eap_leap_process_request()
141 size_t identity_len; in eap_leap_process_success() local
145 identity = eap_get_config_identity(sm, &identity_len); in eap_leap_process_success()
157 3 + LEAP_CHALLENGE_LEN + identity_len, in eap_leap_process_success()
175 wpabuf_put_data(resp, identity, identity_len); in eap_leap_process_success()
Dmschapv2.c36 int mschapv2_derive_response(const u8 *identity, size_t identity_len, in mschapv2_derive_response() argument
49 identity, identity_len); in mschapv2_derive_response()
50 username_len = identity_len; in mschapv2_derive_response()
Deap_sim.c400 size_t identity_len = 0; in eap_sim_learn_ids() local
410 identity = eap_get_config_identity(sm, &identity_len); in eap_sim_learn_ids()
412 for (realm = identity, realm_len = identity_len; in eap_sim_learn_ids()
483 size_t identity_len = 0; in eap_sim_response_start() local
489 identity_len = data->reauth_id_len; in eap_sim_response_start()
494 identity_len = data->pseudonym_len; in eap_sim_response_start()
497 identity = eap_get_config_identity(sm, &identity_len); in eap_sim_response_start()
522 identity, identity_len); in eap_sim_response_start()
523 eap_sim_msg_add(msg, EAP_SIM_AT_IDENTITY, identity_len, in eap_sim_response_start()
524 identity, identity_len); in eap_sim_response_start()
[all …]
Deap_ttls.c487 size_t identity_len, password_len; in eap_ttls_phase2_request_mschapv2()
492 identity = eap_get_config_identity(sm, &identity_len); in eap_ttls_phase2_request_mschapv2()
497 msg = wpabuf_alloc(identity_len + 1000); in eap_ttls_phase2_request_mschapv2()
507 identity, identity_len); in eap_ttls_phase2_request_mschapv2()
541 if (mschapv2_derive_response(identity, identity_len, password, in eap_ttls_phase2_request_mschapv2()
581 size_t identity_len, password_len; in eap_ttls_phase2_request_mschap()
586 identity = eap_get_config_identity(sm, &identity_len); in eap_ttls_phase2_request_mschap()
591 msg = wpabuf_alloc(identity_len + 1000); in eap_ttls_phase2_request_mschap()
601 identity, identity_len); in eap_ttls_phase2_request_mschap()
665 size_t identity_len, password_len; in eap_ttls_phase2_request_pap() local
[all …]
Deap_aka.c378 size_t identity_len = 0; in eap_aka_learn_ids() local
388 identity = eap_get_config_identity(sm, &identity_len); in eap_aka_learn_ids()
390 for (realm = identity, realm_len = identity_len; in eap_aka_learn_ids()
602 size_t identity_len = 0; in eap_aka_response_identity() local
608 identity_len = data->reauth_id_len; in eap_aka_response_identity()
613 identity_len = data->pseudonym_len; in eap_aka_response_identity()
616 identity = eap_get_config_identity(sm, &identity_len); in eap_aka_response_identity()
631 identity, identity_len); in eap_aka_response_identity()
632 eap_sim_msg_add(msg, EAP_SIM_AT_IDENTITY, identity_len, in eap_aka_response_identity()
633 identity, identity_len); in eap_aka_response_identity()
[all …]
Deap.c384 for (i = 0; i < config->identity_len; i++) { in eap_home_realm()
388 if (i < config->identity_len) { in eap_home_realm()
389 realm_len = config->identity_len - i - 1; in eap_home_realm()
1400 conf->identity_len = 1 + imsi_len; in eap_sm_imsi_identity()
1453 size_t identity_len; in eap_sm_buildIdentity() local
1463 &identity_len)) != NULL) { in eap_sm_buildIdentity()
1465 "identity", identity, identity_len); in eap_sm_buildIdentity()
1468 identity_len = config->anonymous_identity_len; in eap_sm_buildIdentity()
1470 identity, identity_len); in eap_sm_buildIdentity()
1473 identity_len = config->identity_len; in eap_sm_buildIdentity()
[all …]
Deap_ikev2.c62 size_t identity_len, password_len; in eap_ikev2_init() local
65 identity = eap_get_config_identity(sm, &identity_len); in eap_ikev2_init()
86 data->ikev2.IDr = os_malloc(identity_len); in eap_ikev2_init()
89 os_memcpy(data->ikev2.IDr, identity, identity_len); in eap_ikev2_init()
90 data->ikev2.IDr_len = identity_len; in eap_ikev2_init()
Deap_wsc.c142 size_t identity_len; in eap_wsc_init() local
159 identity = eap_get_config_identity(sm, &identity_len); in eap_wsc_init()
161 if (identity && identity_len == WSC_ID_REGISTRAR_LEN && in eap_wsc_init()
164 else if (identity && identity_len == WSC_ID_ENROLLEE_LEN && in eap_wsc_init()
169 identity, identity_len); in eap_wsc_init()
Deap_psk.c37 size_t identity_len, password_len; in eap_psk_init() local
57 identity = eap_get_config_identity(sm, &identity_len); in eap_psk_init()
59 data->id_p = os_malloc(identity_len); in eap_psk_init()
61 os_memcpy(data->id_p, identity, identity_len); in eap_psk_init()
62 data->id_p_len = identity_len; in eap_psk_init()
Deap_sake.c72 size_t identity_len, password_len; in eap_sake_init() local
86 identity = eap_get_config_identity(sm, &identity_len); in eap_sake_init()
88 data->peerid = os_malloc(identity_len); in eap_sake_init()
93 os_memcpy(data->peerid, identity, identity_len); in eap_sake_init()
94 data->peerid_len = identity_len; in eap_sake_init()
Deap_pax.c52 size_t identity_len, password_len; in eap_pax_init() local
54 identity = eap_get_config_identity(sm, &identity_len); in eap_pax_init()
72 data->cid = os_malloc(identity_len); in eap_pax_init()
77 os_memcpy(data->cid, identity, identity_len); in eap_pax_init()
78 data->cid_len = identity_len; in eap_pax_init()
Deap_mschapv2.c156 size_t identity_len, password_len; in eap_mschapv2_challenge_reply() local
162 identity = eap_get_config_identity(sm, &identity_len); in eap_mschapv2_challenge_reply()
167 ms_len = sizeof(*ms) + 1 + sizeof(*r) + identity_len; in eap_mschapv2_challenge_reply()
207 if (mschapv2_derive_response(identity, identity_len, password, in eap_mschapv2_challenge_reply()
221 wpabuf_put_data(resp, identity, identity_len); in eap_mschapv2_challenge_reply()

123