aboutsummaryrefslogtreecommitdiffstats
path: root/src/libvlr/vlr.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-10-29 01:57:35 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2017-10-31 02:02:44 +0100
commit0b8dec70a24ffdc7898f1b66c605e047855bdcff (patch)
tree7fcf78f61099f7ac7606f8d4261037500bb33694 /src/libvlr/vlr.c
parent26a3e2560dfe8c0dd1b7efb71b14e346b49a17bc (diff)
defaults: assign TMSI by default
When using ciphering, the TMSI is an important part of the ciphering. To guard against users forgetting to set 'assign tmsi' in the config and compromising their ciphering unknowingly, the default should be to use a TMSI. To optimize in an unencrypted network, 'no assign tmsi' config can still switch off TMSI use. Change-Id: If115e95bebc314bedb50faf3993b52071fee5c1e
Diffstat (limited to 'src/libvlr/vlr.c')
-rw-r--r--src/libvlr/vlr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libvlr/vlr.c b/src/libvlr/vlr.c
index adfe258db..07c31ee8a 100644
--- a/src/libvlr/vlr.c
+++ b/src/libvlr/vlr.c
@@ -995,6 +995,9 @@ struct vlr_instance *vlr_alloc(void *ctx, const struct vlr_ops *ops)
INIT_LLIST_HEAD(&vlr->operations);
memcpy(&vlr->ops, ops, sizeof(vlr->ops));
+ /* defaults */
+ vlr->cfg.assign_tmsi = true;
+
/* osmo_auth_fsm.c */
osmo_fsm_register(&vlr_auth_fsm);
/* osmo_lu_fsm.c */