The EAP-SIM/AKA code is already validating the prefix and the following
lookup would not find matches if the prefix is incorrect, so there is no
need for the extra checks here.
Signed-hostap: Jouni Malinen <j@w1.fi>
{
struct eap_sim_pseudonym *p;
- if (pseudonym[0] != EAP_SIM_PSEUDONYM_PREFIX &&
- pseudonym[0] != EAP_AKA_PSEUDONYM_PREFIX &&
- pseudonym[0] != EAP_AKA_PRIME_PSEUDONYM_PREFIX)
- return NULL;
-
#ifdef CONFIG_SQLITE
if (data->sqlite_db)
return db_get_pseudonym(data, pseudonym);
{
struct eap_sim_reauth *r;
- if (reauth_id[0] != EAP_SIM_REAUTH_ID_PREFIX &&
- reauth_id[0] != EAP_AKA_REAUTH_ID_PREFIX &&
- reauth_id[0] != EAP_AKA_PRIME_REAUTH_ID_PREFIX)
- return NULL;
-
#ifdef CONFIG_SQLITE
if (data->sqlite_db)
return db_get_reauth(data, reauth_id);