Home
last modified time | relevance | path

Searched refs:imsi (Results 1 – 19 of 19) sorted by relevance

/external/wpa_supplicant_8/hostapd/
Dhlr_auc_gw.c73 char imsi[20]; member
84 char imsi[20]; member
209 unsigned long long imsi; in db_get_milenage() local
212 imsi = atoll(imsi_txt); in db_get_milenage()
213 os_snprintf(db_tmp_milenage.imsi, sizeof(db_tmp_milenage.imsi), in db_get_milenage()
214 "%llu", imsi); in db_get_milenage()
216 "SELECT * FROM milenage WHERE imsi=%llu;", imsi); in db_get_milenage()
239 val, m->imsi); in db_update_milenage_sqn()
242 m->imsi); in db_update_milenage_sqn()
323 if (strlen(pos) >= sizeof(g->imsi)) { in read_gsm_triplets()
[all …]
Dhlr_auc_gw.txt44 imsi INTEGER PRIMARY KEY NOT NULL,
50 INSERT INTO milenage(imsi,ki,opc,amf,sqn) VALUES(
57 INSERT INTO milenage(imsi,ki,opc,amf,sqn) VALUES(
/external/wpa_supplicant_8/src/eap_server/
Deap_sim_db.c38 char imsi[20]; member
372 eap_sim_db_get_pending(struct eap_sim_db_data *data, const char *imsi, int aka) in eap_sim_db_get_pending() argument
378 if (entry->aka == aka && os_strcmp(entry->imsi, imsi) == 0) { in eap_sim_db_get_pending()
401 const char *imsi, char *buf) in eap_sim_db_sim_resp_auth() argument
413 entry = eap_sim_db_get_pending(data, imsi, 0); in eap_sim_db_sim_resp_auth()
480 const char *imsi, char *buf) in eap_sim_db_aka_resp_auth() argument
491 entry = eap_sim_db_get_pending(data, imsi, 1); in eap_sim_db_aka_resp_auth()
573 char buf[1000], *pos, *cmd, *imsi; in eap_sim_db_receive() local
598 imsi = pos + 1; in eap_sim_db_receive()
599 pos = os_strchr(imsi, ' '); in eap_sim_db_receive()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dinterworking.c159 if (cred->pcsc || cred->imsi) in cred_with_3gpp()
171 if (cred->pcsc || cred->imsi) in cred_with_nai_realm()
187 if (cred->domain || cred->pcsc || cred->imsi || in cred_with_domain()
719 static int plmn_id_match(struct wpabuf *anqp, const char *imsi, int mnc_len) in plmn_id_match() argument
737 plmn[0] = (imsi[0] - '0') | ((imsi[1] - '0') << 4); in plmn_id_match()
738 plmn[1] = (imsi[2] - '0') | ((imsi[5] - '0') << 4); in plmn_id_match()
739 plmn[2] = (imsi[3] - '0') | ((imsi[4] - '0') << 4); in plmn_id_match()
741 plmn2[0] = (imsi[0] - '0') | ((imsi[1] - '0') << 4); in plmn_id_match()
742 plmn2[1] = (imsi[2] - '0') | 0xf0; in plmn_id_match()
743 plmn2[2] = (imsi[3] - '0') | ((imsi[4] - '0') << 4); in plmn_id_match()
[all …]
Deapol_test.c977 char imsi[20]; in scard_test() local
1013 len = sizeof(imsi); in scard_test()
1014 if (scard_get_imsi(scard, imsi, &len)) in scard_test()
1016 wpa_hexdump_ascii(MSG_DEBUG, "SCARD: IMSI", (u8 *) imsi, len); in scard_test()
1039 printf("%c", imsi[j]); in scard_test()
1086 char imsi[20]; in scard_get_triplets() local
1115 len = sizeof(imsi); in scard_get_triplets()
1116 if (scard_get_imsi(scard, imsi, &len)) { in scard_get_triplets()
1128 printf("%c", imsi[j]); in scard_get_triplets()
Dwpas_glue.c866 wpa_s->imsi, &len); in wpa_supplicant_eap_proxy_cb()
868 wpa_s->imsi[len] = '\0'; in wpa_supplicant_eap_proxy_cb()
870 wpa_s->imsi, wpa_s->mnc_len); in wpa_supplicant_eap_proxy_cb()
DREADME-HS20166 # imsi: IMSI in <MCC> | <MNC> | '-' | <MSIN> format
287 # imsi="310026-000000000"
340 > set_cred 1 imsi "23456-0000000000"
356 > set_cred 1 imsi "23456-0000000000"
Dconfig.h159 char *imsi; member
Dwpa_supplicant.c3649 len = sizeof(wpa_s->imsi) - 1; in pcsc_reader_init()
3650 if (scard_get_imsi(wpa_s->scard, wpa_s->imsi, &len)) { in pcsc_reader_init()
3656 wpa_s->imsi[len] = '\0'; in pcsc_reader_init()
3661 wpa_s->imsi, wpa_s->mnc_len); in pcsc_reader_init()
4287 wpa_s->mnc_len = eapol_sm_get_eap_proxy_imsi(wpa_s->eapol, wpa_s->imsi, in wpa_supplicant_init_iface()
4290 wpa_s->imsi[len] = '\0'; in wpa_supplicant_init_iface()
4292 wpa_s->imsi, wpa_s->mnc_len); in wpa_supplicant_init_iface()
Dconfig_file.c847 if (cred->imsi) in wpa_config_write_cred()
848 fprintf(f, "\timsi=\"%s\"\n", cred->imsi); in wpa_config_write_cred()
Dwpa_supplicant_i.h542 char imsi[20]; member
Dconfig.c2174 os_free(cred->imsi); in wpa_config_free_cred()
2891 os_free(cred->imsi); in wpa_config_set_cred()
2892 cred->imsi = val; in wpa_config_set_cred()
3202 return alloc_strdup(cred->imsi); in wpa_config_get_cred_no_key()
Dctrl_iface.c3153 cred->imsi ? cred->imsi : ""); in wpa_supplicant_ctrl_iface_list_creds()
/external/wpa_supplicant_8/src/eap_peer/
Deap.c1248 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()
[all …]
/external/wpa_supplicant_8/src/utils/
Dpcsc_funcs.h17 int scard_get_imsi(struct scard_data *scard, char *imsi, size_t *len);
Dpcsc_funcs.c1090 int scard_get_imsi(struct scard_data *scard, char *imsi, size_t *len) in scard_get_imsi() argument
1131 pos = imsi; in scard_get_imsi()
/external/wpa_supplicant_8/hs20/client/
Dosu_client.c1561 char *imsi, *eaptype, *str, buf[20]; in set_pps_cred_sim() local
1603 imsi = xml_node_get_text(ctx->xml, node); in set_pps_cred_sim()
1604 if (imsi == NULL) { in set_pps_cred_sim()
1608 wpa_printf(MSG_INFO, " - Credential/SIM/IMSI = %s", imsi); in set_pps_cred_sim()
1609 imsi_len = os_strlen(imsi); in set_pps_cred_sim()
1612 xml_node_get_text_free(ctx->xml, imsi); in set_pps_cred_sim()
1621 if (os_strncmp(imsi + 3, pos + 3, 3) == 0) in set_pps_cred_sim()
1623 else if (os_strncmp(imsi + 3, pos + 4, 2) == 0) in set_pps_cred_sim()
1629 os_memcpy(buf, imsi, 3 + mnc_len); in set_pps_cred_sim()
1631 os_strlcpy(buf + 3 + mnc_len + 1, imsi + 3 + mnc_len, in set_pps_cred_sim()
[all …]
/external/wpa_supplicant_8/src/eapol_supp/
Deapol_supp_sm.h331 int eapol_sm_get_eap_proxy_imsi(struct eapol_sm *sm, char *imsi, size_t *len);
Deapol_supp_sm.c2123 int eapol_sm_get_eap_proxy_imsi(struct eapol_sm *sm, char *imsi, size_t *len) in eapol_sm_get_eap_proxy_imsi() argument
2128 return eap_proxy_get_imsi(sm->eap_proxy, imsi, len); in eapol_sm_get_eap_proxy_imsi()