aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_server/eap_server_aka.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-09-01 16:37:49 (GMT)
committerJouni Malinen <j@w1.fi>2012-09-01 16:37:49 (GMT)
commitccea4fb1072df1b372947630083b4546799c1b00 (patch)
treef9984840696fe19b813df23e3970f00e331f57a9 /src/eap_server/eap_server_aka.c
parent02a0ce13bc5961e1d451e11699bee72e78a3d2e1 (diff)
downloadhostap-ccea4fb1072df1b372947630083b4546799c1b00.zip
hostap-ccea4fb1072df1b372947630083b4546799c1b00.tar.gz
hostap-ccea4fb1072df1b372947630083b4546799c1b00.tar.bz2
EAP-AKA server: Split fullauth setup into a separate function
This is an initial cleanup step for AKA/Identity processing. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/eap_server/eap_server_aka.c')
-rw-r--r--src/eap_server/eap_server_aka.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/eap_server/eap_server_aka.c b/src/eap_server/eap_server_aka.c
index e98eaa4..a8104cd 100644
--- a/src/eap_server/eap_server_aka.c
+++ b/src/eap_server/eap_server_aka.c
@@ -621,13 +621,15 @@ static Boolean eap_aka_subtype_ok(struct eap_aka_data *data, u8 subtype)
}
+static void eap_aka_fullauth(struct eap_sm *sm, struct eap_aka_data *data,
+ const u8 *identity, size_t identity_len);
+
static void eap_aka_determine_identity(struct eap_sm *sm,
struct eap_aka_data *data,
int before_identity, int after_reauth)
{
const u8 *identity;
size_t identity_len;
- int res;
identity = NULL;
identity_len = 0;
@@ -706,6 +708,16 @@ static void eap_aka_determine_identity(struct eap_sm *sm,
return;
}
+
+ eap_aka_fullauth(sm, data, identity, identity_len);
+}
+
+
+static void eap_aka_fullauth(struct eap_sm *sm, struct eap_aka_data *data,
+ const u8 *identity, size_t identity_len)
+{
+ int res;
+
res = eap_sim_db_get_aka_auth(sm->eap_sim_db_priv, identity,
identity_len, data->rand, data->autn,
data->ik, data->ck, data->res,