aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-08-13 16:00:37 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2019-08-13 23:52:31 +0200
commit4dfb2babf213f679ee93ea16e000f228f2b766b4 (patch)
tree71d56c475d7cfdf396bf99c2e3e1a75a9c074882 /include
parentcd64af7cd4e6b0a6b1123a0e8a01fa1633bc234b (diff)
add 'encryption uea 1 2' cfg / fix ttcn3 iu tests
Recently, the ability to run UTRAN without encryption was added, but the config for it was tied to the A5 GERAN encryption configuration. This affected osmo-msc's default behavior of Iu, breaking osmo-msc ttcn3 Iu tests: the ttcn3 test suite sets A5 to 0 (no encryption) but still expects Iu to enable air encryption. Fix this "regression". Add a separate vty config option for UEA encryption, even if it does not provide full granularity to select individual UEA algorithms yet. As a result, Iu default behavior remains to enable encryption regardless of the A5 config. UTRAN encryption can be disabled by the new cfg option "encryption uea 0" alone. Even though the new vty command already allows passing various combinations of the UEA algorithm numbers, only '0' and '1 2' are accepted as valid combinations, to reflect current osmo-msc capabilities. Revert most changes to the msc_vlr test suite in commit "do not force encryption on UTRAN" (I04ecd7a3b1cc603b2e3feb630e8c7c93fc36ccd7): use new net->iu_encryption instead of net->a5_encryption_mask. Adjust/add to test_nodes.vty transcript tests. Related: OS#4144 Change-Id: Ie138f2fcb105533f7bc06a6d2e6deccf6faccc5b
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/msc/gsm_data.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/osmocom/msc/gsm_data.h b/include/osmocom/msc/gsm_data.h
index e926b3f87..a90b732af 100644
--- a/include/osmocom/msc/gsm_data.h
+++ b/include/osmocom/msc/gsm_data.h
@@ -149,6 +149,11 @@ struct gsm_network {
bool authentication_required;
int send_mm_info;
+ /* Whether to use encryption on UTRAN.
+ * TODO: we should offer a choice of UEA1 and/or UEA2, and probably replace this bool with a bit-mask of
+ * permitted Iu encryption algorithms. See also OS#4143 and the 'encryption uea' vty command. */
+ bool uea_encryption;
+
struct rate_ctr_group *msc_ctrs;
struct osmo_stat_item_group *statg;