aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-12-01 12:44:24 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-12-08 10:51:38 +0100
commit8ff3fb04f2e3ea192cb337c8a6dcee19fe40060a (patch)
tree77e3c9e7323d666a12f40f024d0a70a08962bcc0 /openbsc/include/openbsc
parentbd0cf1190a839bbaad38b86157eaa13b7c3f7ec4 (diff)
sgsn: Do authentication based on SRES values
Currently the SRES value in the Auth & Ciph Response is ignored. This patch checks the SRES value in response against the value stored in mm->auth_triplet.sres. If they don't match, an Auth & Ciph Reject message is sent to the MS. If they match, the mm->is_authenticated flag is set. Note that the procedure will not be started yet. Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/include/openbsc')
-rw-r--r--openbsc/include/openbsc/gprs_sgsn.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gprs_sgsn.h b/openbsc/include/openbsc/gprs_sgsn.h
index 1ffeb9fe7..3e80ae21f 100644
--- a/openbsc/include/openbsc/gprs_sgsn.h
+++ b/openbsc/include/openbsc/gprs_sgsn.h
@@ -130,6 +130,7 @@ struct sgsn_mm_ctx {
* whether one of them can be dropped. */
enum sgsn_auth_state auth_state;
+ int is_authenticated;
struct gsm_subscriber *subscr;
};