diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-08-26 22:43:50 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-08-29 12:46:46 +0000 |
commit | 2066a42d5a46c0fe501a6036cb57b7255e955e7d (patch) | |
tree | deb6b994c65b1104739a2a8d50c9ab3e5bb4e298 /tests | |
parent | 95500c88b47c228b00ec89b8ffff405ce630c83f (diff) |
umts aka: add sqn_ms out-param, print SQN.MS in osmo-auc-gen
When doing UMTS AKA with AUTS, it can be interesting to know the SQN.MS that
was encoded in the AUTS. The only way to know this is to provide it as a
separate out-parameter from milenage_gen_vec_auts(), because the SQN.MS from
AUTS stored in umts.sqn is immediately modified non-trivially by
milenage_gen_vec(). Add sqn_ms to struct osmo_sub_auth_data to retain SQN.MS
even after a vector was generated.
Use this to print out SQN.MS for 'osmo-auc-gen -3 -A'.
Adjust test suite expectations.
Related: OS#2464
Change-Id: I9fc05bbf169d06716f40b995154fd42a3f91bef3
Diffstat (limited to 'tests')
-rw-r--r-- | tests/osmo-auc-gen/osmo-auc-gen_test.ok | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/osmo-auc-gen/osmo-auc-gen_test.ok b/tests/osmo-auc-gen/osmo-auc-gen_test.ok index 82923f10..2840783a 100644 --- a/tests/osmo-auc-gen/osmo-auc-gen_test.ok +++ b/tests/osmo-auc-gen/osmo-auc-gen_test.ok @@ -103,6 +103,7 @@ SRES: 9b36efdf Kc: 059a4f668f6fbe39 SQN: 32 IND: 0 +SQN.MS: 23 > osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c --ind 5 @@ -118,6 +119,7 @@ SRES: 9b36efdf Kc: 059a4f668f6fbe39 SQN: 37 IND: 5 +SQN.MS: 23 > osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c --ind 23 @@ -133,6 +135,7 @@ SRES: 9b36efdf Kc: 059a4f668f6fbe39 SQN: 55 IND: 23 +SQN.MS: 23 > osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c --ind 31 @@ -148,6 +151,7 @@ SRES: 9b36efdf Kc: 059a4f668f6fbe39 SQN: 63 IND: 31 +SQN.MS: 23 > osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c --ind-len 0 @@ -163,6 +167,7 @@ SRES: 9b36efdf Kc: 059a4f668f6fbe39 SQN: 24 IND: 0 +SQN.MS: 23 > osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c --ind-len 1 @@ -178,6 +183,7 @@ SRES: 9b36efdf Kc: 059a4f668f6fbe39 SQN: 24 IND: 0 +SQN.MS: 23 > osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c --ind-len 1 --ind 1 @@ -193,6 +199,7 @@ SRES: 9b36efdf Kc: 059a4f668f6fbe39 SQN: 25 IND: 1 +SQN.MS: 23 > osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c --ind-len 8 @@ -208,6 +215,7 @@ SRES: 9b36efdf Kc: 059a4f668f6fbe39 SQN: 256 IND: 0 +SQN.MS: 23 > osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c --ind-len 8 --ind 1 @@ -223,6 +231,7 @@ SRES: 9b36efdf Kc: 059a4f668f6fbe39 SQN: 257 IND: 1 +SQN.MS: 23 expecting error: |