HomeSort by: relevance | last modified time | path
    Searched refs:imsi (Results 1 - 23 of 23) sorted by relevancy

  /src/external/bsd/wpa/dist/hostapd/
hlr_auc_gw.c 18 * SIM-REQ-AUTH <IMSI> <max_chal>
19 * SIM-RESP-AUTH <IMSI> Kc1:SRES1:RAND1 Kc2:SRES2:RAND2 [Kc3:SRES3:RAND3]
20 * SIM-RESP-AUTH <IMSI> FAILURE
21 * GSM-AUTH-REQ <IMSI> RAND1:RAND2[:RAND3]
22 * GSM-AUTH-RESP <IMSI> Kc1:SRES1:Kc2:SRES2[:Kc3:SRES3]
23 * GSM-AUTH-RESP <IMSI> FAILURE
26 * AKA-REQ-AUTH <IMSI>
27 * AKA-RESP-AUTH <IMSI> <RAND> <AUTN> <IK> <CK> <RES>
28 * AKA-RESP-AUTH <IMSI> FAILURE
31 * AKA-AUTS <IMSI> <AUTS> <RAND
73 char imsi[20]; member in struct:gsm_triplet
84 char imsi[20]; member in struct:milenage_parameters
209 unsigned long long imsi; local
    [all...]
  /src/external/bsd/wpa/dist/src/eap_server/
eap_sim_db.c 38 char imsi[20]; member in struct:eap_sim_db_pending
377 eap_sim_db_get_pending(struct eap_sim_db_data *data, const char *imsi, int aka)
383 if (entry->aka == aka && os_strcmp(entry->imsi, imsi) == 0) {
457 const char *imsi, char *buf)
464 * SIM-RESP-AUTH <IMSI> Kc(i):SRES(i):RAND(i) ...
465 * SIM-RESP-AUTH <IMSI> FAILURE
466 * (IMSI = ASCII string, Kc/SRES/RAND = hex string)
469 entry = eap_sim_db_get_pending(data, imsi, 0);
536 const char *imsi, char *buf
629 char buf[1000], *pos, *cmd, *imsi; local
933 const char *imsi; local
1400 const char *imsi; local
1493 const char *imsi; local
    [all...]
eap_i.h 162 char imsi[20]; member in struct:eap_sm
eap_server_sim.c 581 "EAP-SIM: Received encrypted identity, but no IMSI privacy key configured to decrypt it");
677 os_strlcpy(sm->imsi, &data->permanent[1], sizeof(sm->imsi));
eap_server_aka.c 837 "EAP-AKA: Received encrypted identity, but no IMSI privacy key configured to decrypt it");
926 os_strlcpy(sm->imsi, &data->permanent[1], sizeof(sm->imsi));
eap_server.c 1997 * eap_get_imsi - Get IMSI of the user
1999 * Returns: Pointer to IMSI or %NULL if not available
2003 if (!sm || sm->imsi[0] == '\0')
2005 return sm->imsi;
  /src/external/bsd/wpa/dist/src/utils/
pcsc_funcs.h 17 int scard_get_imsi(struct scard_data *scard, char *imsi, size_t *len);
pcsc_funcs.c 1094 * scard_get_imsi - Read IMSI from SIM/USIM card
1096 * @imsi: Buffer for IMSI
1097 * @len: Length of imsi buffer; set to IMSI length on success
1098 * Returns: 0 on success, -1 if IMSI file cannot be selected, -2 if IMSI file
1100 * (USIM only), -4 if IMSI does not fit in the provided imsi buffer (len is set
1101 * to needed length), -5 if reading IMSI file fails
    [all...]
  /src/external/bsd/wpa/dist/wpa_supplicant/
interworking.c 163 if (cred->pcsc || cred->imsi)
175 if (cred->pcsc || cred->imsi)
191 if (cred->domain || cred->pcsc || cred->imsi ||
738 static int plmn_id_match(struct wpabuf *anqp, const char *imsi, int mnc_len)
756 plmn[0] = (imsi[0] - '0') | ((imsi[1] - '0') << 4);
757 plmn[1] = (imsi[2] - '0') | ((imsi[5] - '0') << 4);
758 plmn[2] = (imsi[3] - '0') | ((imsi[4] - '0') << 4)
2027 const char *imsi; local
2297 char *imsi = NULL; local
    [all...]
eapol_test.c 1096 char imsi[20]; local
1132 len = sizeof(imsi);
1133 if (scard_get_imsi(scard, imsi, &len))
1135 wpa_hexdump_ascii(MSG_DEBUG, "SCARD: IMSI", (u8 *) imsi, len);
1136 /* NOTE: Permanent Username: 1 | IMSI */
1158 printf("%c", imsi[j]);
1205 char imsi[20]; local
1234 len = sizeof(imsi);
1235 if (scard_get_imsi(scard, imsi, &len))
    [all...]
config.h 174 * imsi - IMSI in <MCC> | <MNC> | '-' | <MSIN> format
176 char *imsi; member in struct:wpa_cred
185 * imsi_privacy_cert - IMSI privacy certificate
188 * identity (IMSI) to improve privacy. The referenced PEM-encoded
195 * imsi_privacy_attr - IMSI privacy attribute
wpas_glue.c 1006 wpa_s->imsi, &len);
1008 wpa_s->imsi[len] = '\0';
1009 wpa_printf(MSG_DEBUG, "eap_proxy: IMSI %s (MNC length %d)",
1010 wpa_s->imsi, wpa_s->mnc_len);
1012 wpa_printf(MSG_DEBUG, "eap_proxy: IMSI not available");
config_file.c 930 if (cred->imsi)
931 fprintf(f, "\timsi=\"%s\"\n", cred->imsi);
wpa_supplicant.c 6413 len = sizeof(wpa_s->imsi) - 1;
6414 if (scard_get_imsi(wpa_s->scard, wpa_s->imsi, &len)) {
6417 wpa_msg(wpa_s, MSG_ERROR, "Could not read IMSI");
6420 wpa_s->imsi[len] = '\0';
6424 wpa_printf(MSG_DEBUG, "SCARD: IMSI %s (MNC length %d)",
6425 wpa_s->imsi, wpa_s->mnc_len);
7532 wpa_s->imsi, &len);
7534 wpa_s->imsi[len] = '\0';
7535 wpa_printf(MSG_DEBUG, "eap_proxy: IMSI %s (MNC length %d)",
7536 wpa_s->imsi, wpa_s->mnc_len)
    [all...]
config.c 2981 os_free(cred->imsi);
3877 if (os_strcmp(var, "imsi") == 0) {
3878 os_free(cred->imsi);
3879 cred->imsi = val;
4244 if (os_strcmp(var, "imsi") == 0)
4245 return alloc_strdup(cred->imsi);
wpa_supplicant_i.h 833 char imsi[20]; member in struct:wpa_supplicant
ctrl_iface.c 3863 "cred id / realm / username / domain / imsi\n");
3874 cred->imsi ? cred->imsi : "");
  /src/external/bsd/wpa/dist/src/eap_peer/
eap.c 175 static int eap_sm_append_3gpp_realm(struct eap_sm *sm, char *imsi,
182 wpa_printf(MSG_WARNING, "No room for realm in IMSI buffer");
191 mnc[1] = imsi[3];
192 mnc[2] = imsi[4];
194 mnc[0] = imsi[3];
195 mnc[1] = imsi[4];
196 mnc[2] = imsi[5];
200 pos = imsi + *imsi_len;
201 pos += os_snprintf(pos, imsi + max_len - pos,
203 mnc, imsi[0], imsi[1], imsi[2])
497 char imsi[100]; local
1553 char imsi[100]; local
    [all...]
eap.h 267 * get_imsi - Get the IMSI value from eap_proxy
269 * @sim_num: SIM/USIM number to get the IMSI value for
270 * @imsi: Buffer for IMSI value
271 * @len: Buffer for returning IMSI length in octets
274 int (*get_imsi)(void *ctx, int sim_num, char *imsi, size_t *len);
  /src/external/bsd/wpa/dist/src/eapol_supp/
eapol_supp_sm.h 368 int eapol_sm_get_eap_proxy_imsi(void *ctx, int sim_num, char *imsi,
eapol_supp_sm.c 2220 int eapol_sm_get_eap_proxy_imsi(void *ctx, int sim_num, char *imsi, size_t *len)
2226 return eap_proxy_get_imsi(sm->eap_proxy, sim_num, imsi, len);
  /src/external/bsd/wpa/dist/hs20/client/
osu_client.c 1677 char *imsi, *eaptype, *str, buf[20]; local
1714 node = get_node(ctx->xml, sim, "IMSI");
1716 wpa_printf(MSG_INFO, "No SIM/IMSI node in credential");
1719 imsi = xml_node_get_text(ctx->xml, node);
1720 if (imsi == NULL) {
1721 wpa_printf(MSG_INFO, "Could not extract SIM/IMSI");
1724 wpa_printf(MSG_INFO, " - Credential/SIM/IMSI = %s", imsi);
1725 imsi_len = os_strlen(imsi);
1727 wpa_printf(MSG_INFO, "Invalid IMSI length")
    [all...]
  /src/external/bsd/wpa/dist/src/radius/
radius_server.c 264 " imsi TEXT,"
851 const char *imsi, *eap_method; local
858 imsi = eap_get_imsi(sess->eap);
859 if (!imsi)
872 sql = sqlite3_mprintf("INSERT INTO sim_provisioning(mobile_identifier_hash,imsi,mac_addr,eap_method,timestamp) VALUES (%Q,%Q,%Q,%Q,%u)",
873 hash_txt, imsi, addr_txt, eap_method, now.sec);

Completed in 107 milliseconds