Lines Matching refs:imsi
1277 static int mnc_len_from_imsi(const char *imsi) in mnc_len_from_imsi() argument
1282 os_memcpy(mcc_str, imsi, 3); in mnc_len_from_imsi()
1295 static int eap_sm_append_3gpp_realm(struct eap_sm *sm, char *imsi, in eap_sm_append_3gpp_realm() argument
1309 mnc_len = mnc_len_from_imsi(imsi); in eap_sm_append_3gpp_realm()
1318 mnc[1] = imsi[3]; in eap_sm_append_3gpp_realm()
1319 mnc[2] = imsi[4]; in eap_sm_append_3gpp_realm()
1321 mnc[0] = imsi[3]; in eap_sm_append_3gpp_realm()
1322 mnc[1] = imsi[4]; in eap_sm_append_3gpp_realm()
1323 mnc[2] = imsi[5]; in eap_sm_append_3gpp_realm()
1327 pos = imsi + *imsi_len; in eap_sm_append_3gpp_realm()
1328 pos += os_snprintf(pos, imsi + max_len - pos, in eap_sm_append_3gpp_realm()
1330 mnc, imsi[0], imsi[1], imsi[2]); in eap_sm_append_3gpp_realm()
1331 *imsi_len = pos - imsi; in eap_sm_append_3gpp_realm()
1341 char imsi[100]; in eap_sm_imsi_identity() local
1346 imsi_len = sizeof(imsi); in eap_sm_imsi_identity()
1347 if (scard_get_imsi(sm->scard_ctx, imsi, &imsi_len)) { in eap_sm_imsi_identity()
1352 wpa_hexdump_ascii(MSG_DEBUG, "IMSI", (u8 *) imsi, imsi_len); in eap_sm_imsi_identity()
1359 if (eap_sm_append_3gpp_realm(sm, imsi, sizeof(imsi), &imsi_len) < 0) { in eap_sm_imsi_identity()
1363 wpa_hexdump_ascii(MSG_DEBUG, "IMSI + realm", (u8 *) imsi, imsi_len); in eap_sm_imsi_identity()
1399 os_memcpy(conf->identity + 1, imsi, imsi_len); in eap_sm_imsi_identity()