aboutsummaryrefslogtreecommitdiffstats
path: root/tests/msc_vlr/msc_vlr_test_gsm_authen.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-03-11 01:24:33 +0100
committerHarald Welte <laforge@gnumonks.org>2018-03-15 14:24:57 +0000
commitfe718bc760574e49fa09885a99496464a10096c0 (patch)
tree0d598e9c28bc8137eb13ee41ec3c309227eaeb9c /tests/msc_vlr/msc_vlr_test_gsm_authen.c
parentc813355a737ee9eec6e80d9a53841b8633ca51b2 (diff)
cosmetic: vlr_auth: log decision to send UMTS or GSM AKA challenge
Also indicate in msc_vlr_test_gsm_authen.c that we're indeed sending no capability to do R99 in the Classmark 1 during LU request. Change-Id: Id79a77ca1f218d55dad21d9dd3de92445fb5d6bf
Diffstat (limited to 'tests/msc_vlr/msc_vlr_test_gsm_authen.c')
-rw-r--r--tests/msc_vlr/msc_vlr_test_gsm_authen.c24
1 files changed, 18 insertions, 6 deletions
diff --git a/tests/msc_vlr/msc_vlr_test_gsm_authen.c b/tests/msc_vlr/msc_vlr_test_gsm_authen.c
index b0db12d08..dda84f667 100644
--- a/tests/msc_vlr/msc_vlr_test_gsm_authen.c
+++ b/tests/msc_vlr/msc_vlr_test_gsm_authen.c
@@ -35,7 +35,9 @@ static void test_gsm_authen()
btw("Location Update request causes a GSUP Send Auth Info request to HLR");
lu_result_sent = RES_NONE;
gsup_expect_tx("08010809710000004026f0");
- ms_sends_msg("050802008168000130089910070000006402");
+ ms_sends_msg("0508020081680001"
+ "30" /* <-- Revision Level == 1, i.e. is_r99 == false */
+ "089910070000006402");
OSMO_ASSERT(gsup_tx_confirmed);
VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
@@ -226,7 +228,9 @@ static void test_gsm_authen_tmsi()
btw("Location Update request causes a GSUP Send Auth Info request to HLR");
lu_result_sent = RES_NONE;
gsup_expect_tx("08010809710000004026f0");
- ms_sends_msg("050802008168000130089910070000006402");
+ ms_sends_msg("0508020081680001"
+ "30" /* <-- Revision Level == 1, i.e. is_r99 == false */
+ "089910070000006402");
OSMO_ASSERT(gsup_tx_confirmed);
VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
@@ -433,7 +437,9 @@ static void test_gsm_authen_tmsi()
lu_result_sent = RES_NONE;
auth_request_sent = false;
auth_request_expect_rand = "fa8f20b781b5881329d4fea26b1a3c51";
- ms_sends_msg("050802008168000130" "05f4" "03020100");
+ ms_sends_msg("0508020081680001"
+ "30" /* <-- Revision Level == 1, i.e. is_r99 == false */
+ "05f4" "03020100");
VERBOSE_ASSERT(auth_request_sent, == true, "%d");
VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
@@ -503,7 +509,9 @@ static void test_gsm_authen_imei()
btw("Location Update request causes a GSUP Send Auth Info request to HLR");
lu_result_sent = RES_NONE;
gsup_expect_tx("08010809710000004026f0");
- ms_sends_msg("050802008168000130089910070000006402");
+ ms_sends_msg("0508020081680001"
+ "30" /* <-- Revision Level == 1, i.e. is_r99 == false */
+ "089910070000006402");
OSMO_ASSERT(gsup_tx_confirmed);
VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
@@ -600,7 +608,9 @@ static void test_gsm_authen_tmsi_imei()
btw("Location Update request causes a GSUP Send Auth Info request to HLR");
lu_result_sent = RES_NONE;
gsup_expect_tx("08010809710000004026f0");
- ms_sends_msg("050802008168000130089910070000006402");
+ ms_sends_msg("0508020081680001"
+ "30" /* <-- Revision Level == 1, i.e. is_r99 == false */
+ "089910070000006402");
OSMO_ASSERT(gsup_tx_confirmed);
VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
@@ -924,7 +934,9 @@ static void test_wrong_sres_length()
btw("Location Update request causes a GSUP Send Auth Info request to HLR");
lu_result_sent = RES_NONE;
gsup_expect_tx("08010809710000004026f0");
- ms_sends_msg("050802008168000130089910070000006402");
+ ms_sends_msg("0508020081680001"
+ "30" /* <-- Revision Level == 1, i.e. is_r99 == false */
+ "089910070000006402");
OSMO_ASSERT(gsup_tx_confirmed);
VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");