Home | History | Annotate | Download | only in eap_server

Lines Matching refs:sim

2  * hostapd / EAP-SIM database/authenticator gateway
14 * This is an example implementation of the EAP-SIM/AKA database/authentication
18 * EAP-SIM/AKA pseudonyms and re-auth identities. It can be used with different
53 } sim;
116 * SIM-RESP-AUTH <IMSI> Kc(i):SRES(i):RAND(i) ...
117 * SIM-RESP-AUTH <IMSI> FAILURE
123 wpa_printf(MSG_DEBUG, "EAP-SIM DB: No pending entry for the "
130 wpa_printf(MSG_DEBUG, "EAP-SIM DB: External server reported "
148 if (hexstr2bin(start, entry->u.sim.kc[num_chal],
157 if (hexstr2bin(start, entry->u.sim.sres[num_chal],
162 if (hexstr2bin(start, entry->u.sim.rand[num_chal],
172 entry->u.sim.num_chal = num_chal;
175 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Authentication data parsed "
182 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Failed to parse response string");
201 wpa_printf(MSG_DEBUG, "EAP-SIM DB: No pending entry for the "
208 wpa_printf(MSG_DEBUG, "EAP-SIM DB: External server reported "
258 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Too long RES");
266 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Authentication data parsed "
273 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Failed to parse response string");
287 wpa_hexdump_ascii_key(MSG_MSGDUMP, "EAP-SIM DB: Received from an "
296 wpa_printf(MSG_DEBUG, "EAP-SIM DB: No get_complete_cb "
313 wpa_printf(MSG_DEBUG, "EAP-SIM DB: External response=%s for IMSI %s",
316 if (os_strcmp(cmd, "SIM-RESP-AUTH") == 0)
321 wpa_printf(MSG_INFO, "EAP-SIM DB: Unknown external response "
326 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Failed to parse response string");
391 * eap_sim_db_init - Initialize EAP-SIM DB / authentication gateway interface
446 * eap_sim_db_deinit - Deinitialize EAP-SIM DB/authentication gw interface
491 perror("send[EAP-SIM DB UNIX]");
500 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Reconnected to the "
503 perror("send[EAP-SIM DB UNIX]");
559 wpa_hexdump_ascii(MSG_DEBUG, "EAP-SIM DB: unexpected identity",
572 wpa_hexdump_ascii(MSG_DEBUG, "EAP-SIM DB: unexpected identity",
576 wpa_hexdump_ascii(MSG_DEBUG, "EAP-SIM DB: Get GSM triplets for IMSI",
583 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Pending entry -> "
590 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Pending entry -> "
596 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Pending entry -> "
597 "%d challenges", entry->u.sim.num_chal);
598 num_chal = entry->u.sim.num_chal;
601 os_memcpy(_rand, entry->u.sim.rand, num_chal * GSM_RAND_LEN);
602 os_memcpy(sres, entry->u.sim.sres,
604 os_memcpy(kc, entry->u.sim.kc, num_chal * EAP_SIM_KC_LEN);
614 len = os_snprintf(msg, sizeof(msg), "SIM-REQ-AUTH ");
624 wpa_hexdump(MSG_DEBUG, "EAP-SIM DB: requesting SIM authentication "
817 * identity is known. If it is, EAP-SIM/AKA can skip identity request.
849 * eap_sim_db_get_next_pseudonym - EAP-SIM DB: Get next pseudonym
851 * @aka: Using EAP-AKA instead of EAP-SIM
854 * This function is used to generate a pseudonym for EAP-SIM. The returned
868 * eap_sim_db_get_next_reauth_id - EAP-SIM DB: Get next reauth_id
870 * @aka: Using EAP-AKA instead of EAP-SIM
874 * EAP-SIM. The returned reauth_id is not added to database at this point; it
888 * eap_sim_db_add_pseudonym - EAP-SIM DB: Add new pseudonym
897 * This function adds a new pseudonym for EAP-SIM user. EAP-SIM DB is
905 wpa_hexdump_ascii(MSG_DEBUG, "EAP-SIM DB: Add pseudonym for identity",
907 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Pseudonym: %s", pseudonym);
915 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Replacing previous "
940 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Added new pseudonym entry");
951 wpa_hexdump_ascii(MSG_DEBUG, "EAP-SIM DB: Add reauth_id for identity",
953 wpa_printf(MSG_DEBUG, "EAP-SIM DB: reauth_id: %s", reauth_id);
960 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Replacing previous "
982 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Added new reauth entry");
992 * eap_sim_db_add_reauth - EAP-SIM DB: Add new re-authentication entry
1003 * This function adds a new re-authentication entry for an EAP-SIM user.
1004 * EAP-SIM DB is responsible of freeing reauth_id buffer once it is not needed
1042 * EAP-SIM DB is responsible of freeing reauth_id buffer once it is not needed
1069 * eap_sim_db_get_permanent - EAP-SIM DB: Get permanent identity
1097 * eap_sim_db_get_reauth_entry - EAP-SIM DB: Get re-authentication entry
1121 * eap_sim_db_remove_reauth - EAP-SIM DB: Remove re-authentication entry
1187 wpa_hexdump_ascii(MSG_DEBUG, "EAP-SIM DB: unexpected identity",
1200 wpa_hexdump_ascii(MSG_DEBUG, "EAP-SIM DB: unexpected identity",
1204 wpa_hexdump_ascii(MSG_DEBUG, "EAP-SIM DB: Get AKA auth for IMSI",
1211 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Failure");
1217 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Pending");
1221 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Returning successfully "
1244 wpa_hexdump(MSG_DEBUG, "EAP-SIM DB: requesting AKA authentication "
1290 wpa_hexdump_ascii(MSG_DEBUG, "EAP-SIM DB: unexpected identity",
1303 wpa_hexdump_ascii(MSG_DEBUG, "EAP-SIM DB: unexpected identity",
1330 wpa_hexdump(MSG_DEBUG, "EAP-SIM DB: reporting AKA AUTS for "