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
This commit is contained in:
Neels Hofmeyr 2017-03-13 17:36:36 +01:00 committed by Harald Welte
parent c733d1421a
commit 8e1b598c8a
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -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