Lines Matching refs:imsi

174 static int eap_sm_append_3gpp_realm(struct eap_sm *sm, char *imsi,  in eap_sm_append_3gpp_realm()  argument
190 mnc[1] = imsi[3]; in eap_sm_append_3gpp_realm()
191 mnc[2] = imsi[4]; in eap_sm_append_3gpp_realm()
193 mnc[0] = imsi[3]; in eap_sm_append_3gpp_realm()
194 mnc[1] = imsi[4]; in eap_sm_append_3gpp_realm()
195 mnc[2] = imsi[5]; in eap_sm_append_3gpp_realm()
199 pos = imsi + *imsi_len; in eap_sm_append_3gpp_realm()
200 pos += os_snprintf(pos, imsi + max_len - pos, in eap_sm_append_3gpp_realm()
202 mnc, imsi[0], imsi[1], imsi[2]); in eap_sm_append_3gpp_realm()
203 *imsi_len = pos - imsi; in eap_sm_append_3gpp_realm()
488 char imsi[100]; in eap_get_realm() local
494 imsi, &imsi_len); in eap_get_realm()
499 if (eap_sm_append_3gpp_realm(sm, imsi, sizeof(imsi), &imsi_len, in eap_get_realm()
505 realm = os_strdup(&imsi[pos]); in eap_get_realm()
1497 static int mnc_len_from_imsi(const char *imsi) in mnc_len_from_imsi() argument
1502 os_memcpy(mcc_str, imsi, 3); in mnc_len_from_imsi()
1519 char imsi[100]; in eap_sm_imsi_identity() local
1524 imsi_len = sizeof(imsi); in eap_sm_imsi_identity()
1525 if (scard_get_imsi(sm->scard_ctx, imsi, &imsi_len)) { in eap_sm_imsi_identity()
1530 wpa_hexdump_ascii(MSG_DEBUG, "IMSI", (u8 *) imsi, imsi_len); in eap_sm_imsi_identity()
1540 mnc_len = mnc_len_from_imsi(imsi); in eap_sm_imsi_identity()
1547 if (eap_sm_append_3gpp_realm(sm, imsi, sizeof(imsi), &imsi_len, in eap_sm_imsi_identity()
1552 wpa_hexdump_ascii(MSG_DEBUG, "IMSI + realm", (u8 *) imsi, imsi_len); in eap_sm_imsi_identity()
1588 os_memcpy(conf->identity + 1, imsi, imsi_len); in eap_sm_imsi_identity()