aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_server/eap_server_aka.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-09-01 15:41:35 (GMT)
committerJouni Malinen <j@w1.fi>2012-09-01 15:41:35 (GMT)
commite87982ea4c009fddc1ab824434bccac0db3a1b76 (patch)
treefdd85ae5891eaf56c6d5c2351647fc3ad4eeea98 /src/eap_server/eap_server_aka.c
parentbcdf2096bd7e89161ada76c6915eb04ad98f6c77 (diff)
downloadhostap-e87982ea4c009fddc1ab824434bccac0db3a1b76.zip
hostap-e87982ea4c009fddc1ab824434bccac0db3a1b76.tar.gz
hostap-e87982ea4c009fddc1ab824434bccac0db3a1b76.tar.bz2
EAP-SIM DB: Remove unnecessary aka_prime parameter
The reauth_id prefix can be used to determine which AKA version is used, so there is no need to store the aka_prime information in a separate field. 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eap_server/eap_server_aka.c b/src/eap_server/eap_server_aka.c
index 9cd5509..78d78c8 100644
--- a/src/eap_server/eap_server_aka.c
+++ b/src/eap_server/eap_server_aka.c
@@ -650,7 +650,8 @@ static void eap_aka_determine_identity(struct eap_sm *sm,
sm->eap_sim_db_priv, sm->identity,
sm->identity_len);
if (data->reauth &&
- data->reauth->aka_prime !=
+ (data->reauth->reauth_id[0] ==
+ EAP_AKA_PRIME_REAUTH_ID_PREFIX) !=
(data->eap_method == EAP_TYPE_AKA_PRIME)) {
wpa_printf(MSG_DEBUG, "EAP-AKA: Reauth data "
"was for different AKA version");