Searched refs:nai_buf_len (Results 1 – 2 of 2) sorted by relevance
420 size_t domain_len, nai_buf_len; in eap_server_erp_init() local430 nai_buf_len = 2 * EAP_EMSK_NAME_LEN + 1 + domain_len; in eap_server_erp_init()431 if (nai_buf_len > 253) { in eap_server_erp_init()440 nai_buf_len++; /* null termination */ in eap_server_erp_init()441 erp = os_zalloc(sizeof(*erp) + nai_buf_len); in eap_server_erp_init()464 pos = wpa_snprintf_hex(erp->keyname_nai, nai_buf_len, in eap_server_erp_init()
494 size_t realm_len, nai_buf_len; in eap_peer_erp_init() local505 nai_buf_len = 2 * EAP_EMSK_NAME_LEN + 1 + realm_len; in eap_peer_erp_init()506 if (nai_buf_len > 253) { in eap_peer_erp_init()515 nai_buf_len++; /* null termination */ in eap_peer_erp_init()516 erp = os_zalloc(sizeof(*erp) + nai_buf_len); in eap_peer_erp_init()538 pos = wpa_snprintf_hex(erp->keyname_nai, nai_buf_len, in eap_peer_erp_init()