aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/gprs_sgsn.h
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-12-08 15:26:47 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-12-10 12:45:22 +0100
commit2e5e94c3283fa4f5160962f42e7cd5d4e39b7d1e (patch)
treebd2e4951b0e688162b08147f96c0bc6090e6078c /openbsc/include/openbsc/gprs_sgsn.h
parent4adb136da63a1d3ed523ad85e12fd99fc62f5701 (diff)
sgsn: Support subscriber based authentication
This commit mainly extends sgsn_auth.c to use and support the auth_state SGSN_AUTH_AUTHENTICATE. It will be activated when IMSI and IMEI are available, authentication is required (subscr->sgsn_data->authenticate is set), but the MM context is not marked as authenticated. If the state has been set to SGSN_AUTH_AUTHENTICATE and sgsn_auth_update() is called, the GMM layer will be informed by invoking gsm0408_gprs_authenticate(). Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/include/openbsc/gprs_sgsn.h')
-rw-r--r--openbsc/include/openbsc/gprs_sgsn.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/include/openbsc/gprs_sgsn.h b/openbsc/include/openbsc/gprs_sgsn.h
index 1b6338998..d3cd8bb2f 100644
--- a/openbsc/include/openbsc/gprs_sgsn.h
+++ b/openbsc/include/openbsc/gprs_sgsn.h
@@ -272,8 +272,8 @@ struct imsi_acl_entry {
};
struct sgsn_subscriber_data {
- struct sgsn_mm_ctx *mm;
- enum sgsn_auth_state auth_state;
+ struct sgsn_mm_ctx *mm;
+ int authenticate;
};
struct sgsn_config;