Home
last modified time | relevance | path

Searched refs:realm_len (Results 1 – 8 of 8) sorted by relevance

/external/dhcpcd-6.8.2/
Dauth.c114 size_t realm_len; in dhcp_auth_validate() local
175 realm_len = 0; in dhcp_auth_validate()
197 realm_len = dlen - (sizeof(secretid) + sizeof(hmac)); in dhcp_auth_validate()
198 if (realm_len) { in dhcp_auth_validate()
200 d += realm_len; in dhcp_auth_validate()
201 dlen -= realm_len; in dhcp_auth_validate()
233 state->reconf->realm_len = 0; in dhcp_auth_validate()
276 t->realm_len == realm_len && in dhcp_auth_validate()
277 (t->realm_len == 0 || in dhcp_auth_validate()
278 memcmp(t->realm, realm, t->realm_len) == 0)) in dhcp_auth_validate()
[all …]
Dauth.h51 size_t realm_len; member
Dif-options.c1868 token->realm_len = (size_t)s; in parse_option()
1869 token->realm = malloc(token->realm_len); in parse_option()
1875 parse_string((char *)token->realm, token->realm_len, in parse_option()
1878 token->realm_len = 0; in parse_option()
2408 if (token->realm_len)
/external/wpa_supplicant_8/src/ap/
Dgas_serv.c395 u8 num_realms, num_matching = 0, encoding, realm_len, *realm_list_len; in hs20_add_nai_home_realm_matches() local
420 realm_len = *pos++; in hs20_add_nai_home_realm_matches()
421 if (realm_len > end - pos) { in hs20_add_nai_home_realm_matches()
436 while (rpos < realm_name + realm_len && in hs20_add_nai_home_realm_matches()
439 rend < realm_name + realm_len; rend++) { in hs20_add_nai_home_realm_matches()
460 pos += realm_len; in hs20_add_nai_home_realm_matches()
497 u8 *realm_data_len, *realm_len; in anqp_add_nai_realm() local
503 realm_len = wpabuf_put(buf, 1); in anqp_add_nai_realm()
509 *realm_len = (u8 *) wpabuf_put(buf, 0) - realm_len - 1; in anqp_add_nai_realm()
/external/wpa_supplicant_8/src/eap_peer/
Deap_sim.c399 size_t realm_len = 0; in eap_sim_learn_ids() local
409 for (realm = identity, realm_len = identity_len; in eap_sim_learn_ids()
410 realm_len > 0; realm_len--, realm++) { in eap_sim_learn_ids()
416 realm_len); in eap_sim_learn_ids()
425 if (realm_len) { in eap_sim_learn_ids()
427 realm, realm_len); in eap_sim_learn_ids()
429 data->pseudonym_len = attr->next_pseudonym_len + realm_len; in eap_sim_learn_ids()
Deap.c378 size_t i, realm_len; in eap_home_realm() local
389 realm_len = config->identity_len - i - 1; in eap_home_realm()
390 realm = os_malloc(realm_len + 1); in eap_home_realm()
393 os_memcpy(realm, &config->identity[i + 1], realm_len); in eap_home_realm()
394 realm[realm_len] = '\0'; in eap_home_realm()
405 realm_len = config->anonymous_identity_len - i - 1; in eap_home_realm()
406 realm = os_malloc(realm_len + 1); in eap_home_realm()
410 realm_len); in eap_home_realm()
411 realm[realm_len] = '\0'; in eap_home_realm()
494 size_t realm_len, nai_buf_len; in eap_peer_erp_init() local
[all …]
Deap_aka.c377 size_t realm_len = 0; in eap_aka_learn_ids() local
387 for (realm = identity, realm_len = identity_len; in eap_aka_learn_ids()
388 realm_len > 0; realm_len--, realm++) { in eap_aka_learn_ids()
394 realm_len); in eap_aka_learn_ids()
403 if (realm_len) { in eap_aka_learn_ids()
405 realm, realm_len); in eap_aka_learn_ids()
407 data->pseudonym_len = attr->next_pseudonym_len + realm_len; in eap_aka_learn_ids()
/external/wpa_supplicant_8/wpa_supplicant/
Dinterworking.c461 u8 realm_len, e; in nai_realm_parse_realm() local
480 realm_len = *pos++; in nai_realm_parse_realm()
481 if (realm_len > f_end - pos) { in nai_realm_parse_realm()
484 realm_len, (unsigned int) (f_end - pos)); in nai_realm_parse_realm()
487 wpa_hexdump_ascii(MSG_DEBUG, "NAI Realm", pos, realm_len); in nai_realm_parse_realm()
488 r->realm = dup_binstr(pos, realm_len); in nai_realm_parse_realm()
491 pos += realm_len; in nai_realm_parse_realm()