aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_server/eap_server_aka.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-05-02 17:40:11 (GMT)
committerJouni Malinen <j@w1.fi>2012-05-02 17:40:11 (GMT)
commit83519983138b0e9c19a4beb3a763e2289d5a51cb (patch)
treee1db0db30b9da9aa6d9e90bd0ccf93f18ee90473 /src/eap_server/eap_server_aka.c
parent1c7447d08b2b7368201e4df456ee3da50a00f5aa (diff)
downloadhostap-83519983138b0e9c19a4beb3a763e2289d5a51cb.zip
hostap-83519983138b0e9c19a4beb3a763e2289d5a51cb.tar.gz
hostap-83519983138b0e9c19a4beb3a763e2289d5a51cb.tar.bz2
EAP-AKA' server: Fix identity for MK derivation
Incorrect identity string could end up being used with EAP-AKA' when the EAP client is using pseudonym. This code was supposed to use sm->identity just like the EAP-AKA case. Signed-hostap: Jouni Malinen <j@w1.fi> intended-for: hostap-1
Diffstat (limited to 'src/eap_server/eap_server_aka.c')
-rw-r--r--src/eap_server/eap_server_aka.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eap_server/eap_server_aka.c b/src/eap_server/eap_server_aka.c
index 1dc8dd1..54f6ba1 100644
--- a/src/eap_server/eap_server_aka.c
+++ b/src/eap_server/eap_server_aka.c
@@ -736,7 +736,7 @@ static void eap_aka_determine_identity(struct eap_sm *sm,
sm->identity, identity_len);
if (data->eap_method == EAP_TYPE_AKA_PRIME) {
- eap_aka_prime_derive_keys(identity, identity_len, data->ik,
+ eap_aka_prime_derive_keys(sm->identity, identity_len, data->ik,
data->ck, data->k_encr, data->k_aut,
data->k_re, data->msk, data->emsk);
} else {