summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/src/mobile/subscriber.c
diff options
context:
space:
mode:
authorTim Ehlers <osmocom@ehlers.info>2012-02-14 23:54:25 +0100
committerSylvain Munaut <tnt@246tNt.com>2012-02-14 23:54:25 +0100
commitb4a8badc45a05283944859e2822a202197eed1c4 (patch)
tree0b549000918ad4539ff02bf9b31e7228bb16d955 /src/host/layer23/src/mobile/subscriber.c
parent978ec28b718597b57344761a2423f4967c9343d3 (diff)
mobile: Add vty option to force rekeying for every new channel
Written-by: Tim Ehlers <osmocom@ehlers.info> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/host/layer23/src/mobile/subscriber.c')
-rw-r--r--src/host/layer23/src/mobile/subscriber.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/host/layer23/src/mobile/subscriber.c b/src/host/layer23/src/mobile/subscriber.c
index b6dfc2f0..8ebb1738 100644
--- a/src/host/layer23/src/mobile/subscriber.c
+++ b/src/host/layer23/src/mobile/subscriber.c
@@ -1144,6 +1144,14 @@ int gsm_subscr_is_forbidden_plmn(struct gsm_subscriber *subscr, uint16_t mcc,
return 0;
}
+int gsm_subscr_get_key_seq(struct osmocom_ms *ms, struct gsm_subscriber *subscr)
+{
+ if (ms->settings.force_rekey)
+ return 7;
+ else
+ return subscr->key_seq;
+}
+
int gsm_subscr_dump_forbidden_plmn(struct osmocom_ms *ms,
void (*print)(void *, const char *, ...), void *priv)
{