From 9d4f46c975c3a4c92071c70ebadd6edc345581da Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Wed, 17 Dec 2014 13:20:08 +0100 Subject: sgsn: Replace subscr.authenticate by global require_authentication flag Currently the flag 'authenticate' is managed per subscriber. This patch replaces that flag by a global cfg.require_authentication flag that enables/disables the use of the Auth & Ciph procedure for every subscriber. The flag is set by the VTY, if and only if the authorization policy is 'remote'. The VTY command - update-subscriber imsi IMSI insert authenticate <0-1> is removed. Sponsored-by: On-Waves ehf --- openbsc/tests/sgsn/sgsn_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbsc/tests/sgsn') diff --git a/openbsc/tests/sgsn/sgsn_test.c b/openbsc/tests/sgsn/sgsn_test.c index ebe12c906..7c48eef0a 100644 --- a/openbsc/tests/sgsn/sgsn_test.c +++ b/openbsc/tests/sgsn/sgsn_test.c @@ -876,7 +876,7 @@ static void test_gmm_attach_subscr_fake_auth(void) subscr = gprs_subscr_get_or_create("123456789012345"); subscr->authorized = 1; - subscr->sgsn_data->authenticate = 1; + sgsn->cfg.require_authentication = 1; subscr_put(subscr); printf("Auth policy 'remote', auth faked: "); @@ -918,7 +918,7 @@ static void test_gmm_attach_subscr_real_auth(void) subscr = gprs_subscr_get_or_create("123456789012345"); subscr->authorized = 1; - subscr->sgsn_data->authenticate = 1; + sgsn->cfg.require_authentication = 1; subscr_put(subscr); printf("Auth policy 'remote', triplet based auth: "); -- cgit v1.2.3