Home
last modified time | relevance | path

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

12

/hostap-latest/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()
317 if (!pos || os_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(
/hostap-latest/src/eap_server/
Deap_sim_db.c38 char imsi[20]; member
377 eap_sim_db_get_pending(struct eap_sim_db_data *data, const char *imsi, int aka) in eap_sim_db_get_pending() argument
383 if (entry->aka == aka && os_strcmp(entry->imsi, imsi) == 0) { in eap_sim_db_get_pending()
457 const char *imsi, char *buf) in eap_sim_db_sim_resp_auth() argument
469 entry = eap_sim_db_get_pending(data, imsi, 0); in eap_sim_db_sim_resp_auth()
536 const char *imsi, char *buf) in eap_sim_db_aka_resp_auth() argument
547 entry = eap_sim_db_get_pending(data, imsi, 1); in eap_sim_db_aka_resp_auth()
629 char buf[1000], *pos, *cmd, *imsi; in eap_sim_db_receive() local
654 imsi = pos + 1; in eap_sim_db_receive()
655 pos = os_strchr(imsi, ' '); in eap_sim_db_receive()
[all …]
Deap_i.h162 char imsi[20]; member
Deap_server_sim.c677 os_strlcpy(sm->imsi, &data->permanent[1], sizeof(sm->imsi)); in eap_sim_process_start()
Deap_server_aka.c926 os_strlcpy(sm->imsi, &data->permanent[1], sizeof(sm->imsi)); in eap_aka_fullauth()
/hostap-latest/wpadebug/src/w1/fi/wpadebug/
DWpaCredActivity.java36 String imsi; field in Credential
55 imsi = fields[4]; in Credential()
57 imsi = null; in Credential()
67 imsi = _imsi; in Credential()
77 if (imsi != null) in toString()
78 res += " (imsi=" + imsi + ")"; in toString()
141 String imsi = data.getStringExtra("imsi"); in onActivityResult() local
142 if (imsi != null && imsi.length() == 0) in onActivityResult()
143 imsi = null; in onActivityResult()
176 (imsi != null && !set_cred_quoted(id, "imsi", imsi))) { in onActivityResult()
[all …]
/hostap-latest/wpa_supplicant/
Dinterworking.c163 if (cred->pcsc || cred->imsi) in cred_with_3gpp()
175 if (cred->pcsc || cred->imsi) in cred_with_nai_realm()
191 if (cred->domain || cred->pcsc || cred->imsi || in cred_with_domain()
738 static int plmn_id_match(struct wpabuf *anqp, const char *imsi, int mnc_len) in plmn_id_match() argument
756 plmn[0] = (imsi[0] - '0') | ((imsi[1] - '0') << 4); in plmn_id_match()
757 plmn[1] = (imsi[2] - '0') | ((imsi[5] - '0') << 4); in plmn_id_match()
758 plmn[2] = (imsi[3] - '0') | ((imsi[4] - '0') << 4); in plmn_id_match()
760 plmn2[0] = (imsi[0] - '0') | ((imsi[1] - '0') << 4); in plmn_id_match()
761 plmn2[1] = (imsi[2] - '0') | 0xf0; in plmn_id_match()
762 plmn2[2] = (imsi[3] - '0') | ((imsi[4] - '0') << 4); in plmn_id_match()
[all …]
Deapol_test.c1096 char imsi[20]; in scard_test() local
1132 len = sizeof(imsi); in scard_test()
1133 if (scard_get_imsi(scard, imsi, &len)) in scard_test()
1135 wpa_hexdump_ascii(MSG_DEBUG, "SCARD: IMSI", (u8 *) imsi, len); in scard_test()
1158 printf("%c", imsi[j]); in scard_test()
1205 char imsi[20]; in scard_get_triplets() local
1234 len = sizeof(imsi); in scard_get_triplets()
1235 if (scard_get_imsi(scard, imsi, &len)) { in scard_get_triplets()
1247 printf("%c", imsi[j]); in scard_get_triplets()
Dconfig.h176 char *imsi; member
DREADME-HS20166 # imsi: IMSI in <MCC> | <MNC> | '-' | <MSIN> format
338 # imsi="310026-000000000"
392 > set_cred 1 imsi "23456-0000000000"
408 > set_cred 1 imsi "23456-0000000000"
Dwpas_glue.c1022 wpa_s->imsi, &len); in wpa_supplicant_eap_proxy_cb()
1024 wpa_s->imsi[len] = '\0'; in wpa_supplicant_eap_proxy_cb()
1026 wpa_s->imsi, wpa_s->mnc_len); in wpa_supplicant_eap_proxy_cb()
/hostap-latest/src/eap_peer/
Deap.c175 static int eap_sm_append_3gpp_realm(struct eap_sm *sm, char *imsi, in eap_sm_append_3gpp_realm() argument
191 mnc[1] = imsi[3]; in eap_sm_append_3gpp_realm()
192 mnc[2] = imsi[4]; in eap_sm_append_3gpp_realm()
194 mnc[0] = imsi[3]; in eap_sm_append_3gpp_realm()
195 mnc[1] = imsi[4]; in eap_sm_append_3gpp_realm()
196 mnc[2] = imsi[5]; in eap_sm_append_3gpp_realm()
200 pos = imsi + *imsi_len; in eap_sm_append_3gpp_realm()
201 pos += os_snprintf(pos, imsi + max_len - pos, in eap_sm_append_3gpp_realm()
203 mnc, imsi[0], imsi[1], imsi[2]); in eap_sm_append_3gpp_realm()
204 *imsi_len = pos - imsi; in eap_sm_append_3gpp_realm()
[all …]
Deap.h274 int (*get_imsi)(void *ctx, int sim_num, char *imsi, size_t *len);
/hostap-latest/hs20/server/www/
Dspp.php105 $imsi = $row['imsi']; variable
116 error_log("spp.php - SIM provisioning for IMSI $imsi");
118 putenv("HS20IMSI=$imsi");
/hostap-latest/hs20/server/
Dhs20_spp_server.c93 ctx->imsi = getenv("HS20IMSI"); in process()
94 if (ctx->imsi) in process()
95 debug_print(ctx, 1, "IMSI %s", ctx->imsi); in process()
Dspp_server.h20 const char *imsi; member
Dsql.txt104 imsi TEXT,
Dspp_server.c1449 const char *imsi, const char *dmacc_username, in build_pps() argument
1469 if (imsi) in build_pps()
1541 if (imsi) { in build_pps()
1546 add_text_node(ctx, sim, "IMSI", imsi); in build_pps()
1987 if (!ctx->imsi) { in hs20_sim_provisioning()
2021 pps = build_pps(ctx, NULL, realm, NULL, NULL, 0, NULL, ctx->imsi, in hs20_sim_provisioning()
2031 user = ctx->imsi; in hs20_sim_provisioning()
/hostap-latest/src/utils/
Dpcsc_funcs.h17 int scard_get_imsi(struct scard_data *scard, char *imsi, size_t *len);
Dpcsc_funcs.c1107 int scard_get_imsi(struct scard_data *scard, char *imsi, size_t *len) in scard_get_imsi() argument
1148 pos = imsi; in scard_get_imsi()
/hostap-latest/tests/hwsim/auth_serv/
Das.conf23 imsi_privacy_key=auth_serv/imsi-privacy-key.pem
/hostap-latest/hs20/client/
Dosu_client.c1677 char *imsi, *eaptype, *str, buf[20]; in set_pps_cred_sim() local
1719 imsi = xml_node_get_text(ctx->xml, node); in set_pps_cred_sim()
1720 if (imsi == NULL) { in set_pps_cred_sim()
1724 wpa_printf(MSG_INFO, " - Credential/SIM/IMSI = %s", imsi); in set_pps_cred_sim()
1725 imsi_len = os_strlen(imsi); in set_pps_cred_sim()
1728 xml_node_get_text_free(ctx->xml, imsi); in set_pps_cred_sim()
1737 if (os_strncmp(imsi + 3, pos + 3, 3) == 0) in set_pps_cred_sim()
1739 else if (os_strncmp(imsi + 3, pos + 4, 2) == 0) in set_pps_cred_sim()
1745 os_memcpy(buf, imsi, 3 + mnc_len); in set_pps_cred_sim()
1747 os_strlcpy(buf + 3 + mnc_len + 1, imsi + 3 + mnc_len, in set_pps_cred_sim()
[all …]
/hostap-latest/src/eapol_supp/
Deapol_supp_sm.h368 int eapol_sm_get_eap_proxy_imsi(void *ctx, int sim_num, char *imsi,
/hostap-latest/src/radius/
Dradius_server.c851 const char *imsi, *eap_method; in radius_server_sim_provisioning_session() local
858 imsi = eap_get_imsi(sess->eap); in radius_server_sim_provisioning_session()
859 if (!imsi) in radius_server_sim_provisioning_session()
873 hash_txt, imsi, addr_txt, eap_method, now.sec); in radius_server_sim_provisioning_session()

12