Lines Matching refs:imsi
1248 static int mnc_len_from_imsi(const char *imsi) in mnc_len_from_imsi() argument
1253 os_memcpy(mcc_str, imsi, 3); in mnc_len_from_imsi()
1266 static int eap_sm_append_3gpp_realm(struct eap_sm *sm, char *imsi, in eap_sm_append_3gpp_realm() argument
1280 mnc_len = mnc_len_from_imsi(imsi); in eap_sm_append_3gpp_realm()
1289 mnc[1] = imsi[3]; in eap_sm_append_3gpp_realm()
1290 mnc[2] = imsi[4]; in eap_sm_append_3gpp_realm()
1292 mnc[0] = imsi[3]; in eap_sm_append_3gpp_realm()
1293 mnc[1] = imsi[4]; in eap_sm_append_3gpp_realm()
1294 mnc[2] = imsi[5]; in eap_sm_append_3gpp_realm()
1298 pos = imsi + *imsi_len; in eap_sm_append_3gpp_realm()
1299 pos += os_snprintf(pos, imsi + max_len - pos, in eap_sm_append_3gpp_realm()
1301 mnc, imsi[0], imsi[1], imsi[2]); in eap_sm_append_3gpp_realm()
1302 *imsi_len = pos - imsi; in eap_sm_append_3gpp_realm()
1312 char imsi[100]; in eap_sm_imsi_identity() local
1317 imsi_len = sizeof(imsi); in eap_sm_imsi_identity()
1318 if (scard_get_imsi(sm->scard_ctx, imsi, &imsi_len)) { in eap_sm_imsi_identity()
1323 wpa_hexdump_ascii(MSG_DEBUG, "IMSI", (u8 *) imsi, imsi_len); in eap_sm_imsi_identity()
1330 if (eap_sm_append_3gpp_realm(sm, imsi, sizeof(imsi), &imsi_len) < 0) { in eap_sm_imsi_identity()
1334 wpa_hexdump_ascii(MSG_DEBUG, "IMSI + realm", (u8 *) imsi, imsi_len); in eap_sm_imsi_identity()
1370 os_memcpy(conf->identity + 1, imsi, imsi_len); in eap_sm_imsi_identity()