diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-03-13 17:36:36 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-03-15 12:46:08 +0000 |
commit | 8e1b598c8ae408f0dd15a4460920a4d82eb05a27 (patch) | |
tree | 9a7d0146dd35c44b3e32edc4745ba823b3e6199a /tests | |
parent | c733d1421aff288e4ede3a532085104217c27370 (diff) |
milenage_test: cosmetic fix: shown value is not SEQ.MS
In the milenage_test, the console output printed "SEQ.MS = 33", but 33 is
a) the SQN, not SEQ;
b) the SQN *after* the next auth generation, i.e. SQN.MS would have been 31.
While at it also use the proper PRIu64 from inttypes.h to output the sqn value.
This prepares for upcoming sparation of SQN incrementing by SEQ and IND,
particularly to clearly show where the changes in auth/milenage_test's
expectations originate.
Related: OS#1968
Change-Id: Ie83201f1362f3d793ada774f3fc5f89cc0b3fbb7
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auth/milenage_test.c | 4 | ||||
-rw-r--r-- | tests/auth/milenage_test.ok | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/auth/milenage_test.c b/tests/auth/milenage_test.c index 473be92a..187b9adb 100644 --- a/tests/auth/milenage_test.c +++ b/tests/auth/milenage_test.c @@ -3,6 +3,7 @@ #include <stdio.h> #include <errno.h> #include <string.h> +#include <inttypes.h> #include <osmocom/crypt/auth.h> #include <osmocom/core/utils.h> @@ -93,7 +94,8 @@ int main(int argc, char **argv) if (rc < 0) { printf("AUTS failed\n"); } else { - printf("AUTS success: SEQ.MS = %llu\n", (unsigned long long)test_aud.u.umts.sqn); + printf("AUTS success: tuple generated with SQN = %" PRIu64 "\n", + test_aud.u.umts.sqn); } opc_test(&test_aud); diff --git a/tests/auth/milenage_test.ok b/tests/auth/milenage_test.ok index 49146a55..20c47c61 100644 --- a/tests/auth/milenage_test.ok +++ b/tests/auth/milenage_test.ok @@ -5,7 +5,7 @@ CK: 72 00 a1 84 d8 f2 c7 58 fb df 87 90 0d db f2 75 RES: e9 fc 88 cc c8 a3 53 81 SRES: 21 5f db 4d Kc: 6d e8 16 a7 59 a4 29 12 -AUTS success: SEQ.MS = 33 +AUTS success: tuple generated with SQN = 33 MILENAGE supported: 1 OP: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 OPC: c6 a1 3b 37 87 8f 5b 82 6f 4f 81 62 a1 c8 d8 79 |