aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-05-02 15:02:32 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-05-02 16:30:10 +0200
commit00007897d42232db0c29ebe543b2483311e56785 (patch)
tree6d4ceea507f42c5049f63c06d6423bb7c706d215 /openbsc/include/openbsc
parent5c4386c6928d65252eaf327044aae63b5dfbc01e (diff)
gsm_04_08: factor out subscr authorization check
Add function subscr_authorized(), absorbing the guts of static authorize_subscriber() from gsm_04_08.c, except the parts specific to Location Updating. subscr_authorized() is a check that is to be added to validation of a paging response.
Diffstat (limited to 'openbsc/include/openbsc')
-rw-r--r--openbsc/include/openbsc/gsm_subscriber.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gsm_subscriber.h b/openbsc/include/openbsc/gsm_subscriber.h
index 151f3dd0e..56c72a246 100644
--- a/openbsc/include/openbsc/gsm_subscriber.h
+++ b/openbsc/include/openbsc/gsm_subscriber.h
@@ -1,6 +1,8 @@
#ifndef _GSM_SUBSCR_H
#define _GSM_SUBSCR_H
+#include <stdbool.h>
+
#include "gsm_data.h"
#include <osmocom/core/linuxlist.h>
@@ -130,6 +132,8 @@ void subscr_update_from_db(struct gsm_subscriber *subscr);
void subscr_expire(struct gsm_subscriber_group *sgrp);
int subscr_update_expire_lu(struct gsm_network *network, struct gsm_subscriber *subscr);
+bool subscr_authorized(struct gsm_subscriber *subsc);
+
/*
* Paging handling with authentication
*/