From 4877c71817a8608a8594414a2707ce2c47b1a699 Mon Sep 17 00:00:00 2001 From: winckel Date: Mon, 20 Jan 2014 10:32:31 +0000 Subject: [PATCH] Modified RES length to match XRES size in authentication process. git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4906 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- openair-cn/NAS/EURECOM-NAS/src/emm/Authentication.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openair-cn/NAS/EURECOM-NAS/src/emm/Authentication.c b/openair-cn/NAS/EURECOM-NAS/src/emm/Authentication.c index bf12329b0d..0346101068 100644 --- a/openair-cn/NAS/EURECOM-NAS/src/emm/Authentication.c +++ b/openair-cn/NAS/EURECOM-NAS/src/emm/Authentication.c @@ -200,7 +200,7 @@ int emm_proc_authentication_request(int native_ksi, int ksi, int rc = RETURNerror; - LOG_TRACE(INFO, "EMM-PROC - Authentication requested ksi = %d", ksi); + LOG_TRACE(INFO, "EMM-PROC - Authentication requested ksi type = %s, ksi = %d", native_ksi ? "native" : "mapped", ksi); /* 3GPP TS 24.301, section 5.4.2.1 * The UE shall proceed with an EPS authentication challenge only if a @@ -245,6 +245,9 @@ int emm_proc_authentication_request(int native_ksi, int ksi, * Get the "separation bit" of the AMF field of AUTN */ int sbit = AUTH_AMF_SEPARATION_BIT(autn->value[AUTH_AMF_INDEX]); if (sbit != 0) { + /* LW: only 64 bits from the response field are used for the authentication response for this algorithms */ + res.length = 8; /* Bytes */ + /* * Perform EPS authentication challenge to check the authenticity * of the core network by means of the received AUTN parameter and