aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc/gsm_04_08.c
diff options
context:
space:
mode:
authorIvan Kluchnikov <kluchnikovi@gmail.com>2013-09-11 18:33:18 +0400
committerIvan Kluchnikov <kluchnikovi@gmail.com>2013-09-11 18:33:18 +0400
commita706f4de43f65cc88bba2de981398eacdd46e1a2 (patch)
tree8b6814c32405422e1337944a411084fed9376122 /openbsc/src/libmsc/gsm_04_08.c
parent3ffd9bc0a4efe03022d87513dbde3efc7b4fb8e6 (diff)
Added new auth policy black-list.
In this mode by default we set authorized = 1 for all new subscribers. BSC accepts all MS, except subscribers not authorized in DB. All subscribers with authorized = 0 are part of the black list and not accepted.
Diffstat (limited to 'openbsc/src/libmsc/gsm_04_08.c')
-rw-r--r--openbsc/src/libmsc/gsm_04_08.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/libmsc/gsm_04_08.c b/openbsc/src/libmsc/gsm_04_08.c
index d81dab901..8f8eaa933 100644
--- a/openbsc/src/libmsc/gsm_04_08.c
+++ b/openbsc/src/libmsc/gsm_04_08.c
@@ -241,6 +241,8 @@ static int authorize_subscriber(struct gsm_loc_updating_operation *loc,
return (subscriber->flags & GSM_SUBSCRIBER_FIRST_CONTACT);
case GSM_AUTH_POLICY_ACCEPT_ALL:
return 1;
+ case GSM_AUTH_POLICY_BLACK_LIST:
+ return subscriber->authorized;
default:
return 0;
}