neels has uploaded this change for review.

View Change

bsc: add TC_ho_into_this_bsc_a5_mismatch

Change-Id: I44b464a0bedbff09c467c4bccd7c985480fb883a
---
M bsc/BSC_Tests.ttcn
1 file changed, 8 insertions(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/47/27247/1
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index 2cf6bc8..aadf956 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -6155,6 +6155,13 @@
f_tc_ho_into_this_bsc_a5(f_encr_params(alg_permitted := '0a'O, alg_expect := '08'O));
}

+/* Send a permitted algo mask that does not intersect with osmo-bsc.cfg */
+testcase TC_ho_into_this_bsc_a5_mismatch() runs on test_CT {
+ f_vty_encryption_a5("0 1");
+ f_tc_ho_into_this_bsc_a5(f_encr_params(alg_permitted := '18'O)); // 0x18 = A5/3 and A5/4
+ f_vty_encryption_a5_reset();
+}
+
testcase TC_ho_into_this_bsc_tla_v6() runs on test_CT {
var TestHdlrParams pars := f_gen_test_hdlr_pars();
pars.host_aoip_tla := "::6";
@@ -11261,6 +11268,7 @@
execute( TC_ho_into_this_bsc_a5_4() );
execute( TC_ho_into_this_bsc_a5_1_3_no_chosen_enc_alg() );
execute( TC_ho_into_this_bsc_a5_1_3() );
+ execute( TC_ho_into_this_bsc_a5_mismatch() );
if (mp_bssap_cfg[0].transport == BSSAP_TRANSPORT_AoIP) {
execute( TC_ho_into_this_bsc_tla_v6() );
}

To view, visit change 27247. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I44b464a0bedbff09c467c4bccd7c985480fb883a
Gerrit-Change-Number: 27247
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr@sysmocom.de>
Gerrit-MessageType: newchange