Home | History | Annotate | Download | only in eap_server

Lines Matching defs:imsi

38 	char imsi[20];
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)
542 * AKA-RESP-AUTH <IMSI> <RAND> <AUTN> <IK> <CK> <RES>
543 * AKA-RESP-AUTH <IMSI> FAILURE
544 * (IMSI = ASCII string, RAND/AUTN/IK/CK/RES = hex string)
547 entry = eap_sim_db_get_pending(data, imsi, 1);
629 char buf[1000], *pos, *cmd, *imsi;
647 /* <cmd> <IMSI> ... */
654 imsi = pos + 1;
655 pos = os_strchr(imsi, ' ');
659 wpa_printf(MSG_DEBUG, "EAP-SIM DB: External response=%s for IMSI %s",
660 cmd, imsi);
663 eap_sim_db_sim_resp_auth(data, imsi, pos + 1);
665 eap_sim_db_aka_resp_auth(data, imsi, pos + 1);
905 * @username: Permanent username (prefix | IMSI)
933 const char *imsi;
937 username[1] == '\0' || os_strlen(username) > sizeof(entry->imsi)) {
942 imsi = username + 1;
943 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Get GSM triplets for IMSI '%s'",
944 imsi);
946 entry = eap_sim_db_get_pending(data, imsi, 0);
981 imsi_len = os_strlen(imsi);
986 os_memcpy(msg + len, imsi, imsi_len);
994 "data for IMSI '%s'", imsi);
1002 os_strlcpy(entry->imsi, imsi, sizeof(entry->imsi));
1372 * @username: Permanent username (prefix | IMSI)
1400 const char *imsi;
1406 username[1] == '\0' || os_strlen(username) > sizeof(entry->imsi)) {
1411 imsi = username + 1;
1412 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Get AKA auth for IMSI '%s'",
1413 imsi);
1415 entry = eap_sim_db_get_pending(data, imsi, 1);
1446 imsi_len = os_strlen(imsi);
1451 os_memcpy(msg + len, imsi, imsi_len);
1455 "data for IMSI '%s'", imsi);
1464 os_strlcpy(entry->imsi, imsi, sizeof(entry->imsi));
1493 const char *imsi;
1504 imsi = username + 1;
1505 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Get AKA auth for IMSI '%s'",
1506 imsi);
1512 imsi_len = os_strlen(imsi);
1517 os_memcpy(msg + len, imsi, imsi_len);
1533 "IMSI '%s'", imsi);