From 3f7958f08b05d251ecbc88ac2988650308e23f3b Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Mon, 30 May 2016 15:06:55 +0200 Subject: move subscr auth check to gsm_subscriber.c add subscr_authorized(), subscr_authorized_imsi() Change-Id: If2ef06b1229351127c61477ca14653d6ae4cb6bb --- openbsc/include/openbsc/gsm_subscriber.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openbsc/include/openbsc/gsm_subscriber.h') diff --git a/openbsc/include/openbsc/gsm_subscriber.h b/openbsc/include/openbsc/gsm_subscriber.h index 7c4a0205f..6fe3cf9b0 100644 --- a/openbsc/include/openbsc/gsm_subscriber.h +++ b/openbsc/include/openbsc/gsm_subscriber.h @@ -131,6 +131,9 @@ void subscr_update_from_db(struct gsm_subscriber *subscr); void subscr_expire(struct gsm_subscriber_group *sgrp); int subscr_update_expire_lu(struct gsm_subscriber *subscr); +bool subscr_authorized_imsi(const struct gsm_network *net, const char *imsi); +bool subscr_authorized(struct gsm_subscriber *subsc); + /* * Paging handling with authentication */ -- cgit v1.2.3