This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Harald Welte gerrit-no-reply at lists.osmocom.orgHarald Welte has submitted this change and it was merged. Change subject: tests: test actual support status for auth. algo ...................................................................... tests: test actual support status for auth. algo Check if library actually support Milenage, COMP128 v2 and v3 algorithms instead of just printing enum values or nothing. Change-Id: I2b98481f56a8381058d4b29db5e8a36eb193eee9 --- M tests/auth/milenage_test.c M tests/auth/milenage_test.ok M tests/comp128/comp128_test.c M tests/comp128/comp128_test.ok 4 files changed, 10 insertions(+), 4 deletions(-) Approvals: Harald Welte: Looks good to me, approved Jenkins Builder: Verified diff --git a/tests/auth/milenage_test.c b/tests/auth/milenage_test.c index 0223764..473be92 100644 --- a/tests/auth/milenage_test.c +++ b/tests/auth/milenage_test.c @@ -50,6 +50,9 @@ const uint8_t op[16] = { 0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0 }; #endif + printf("MILENAGE supported: %d\n", + osmo_auth_supported(osmo_auth_alg_parse("MILENAGE"))); + rc = milenage_opc_gen(opc, aud->u.umts.k, op); printf("OP:\t%s\n", osmo_hexdump(op, sizeof(op))); diff --git a/tests/auth/milenage_test.ok b/tests/auth/milenage_test.ok index 00ffc22..49146a5 100644 --- a/tests/auth/milenage_test.ok +++ b/tests/auth/milenage_test.ok @@ -6,5 +6,6 @@ SRES: 21 5f db 4d Kc: 6d e8 16 a7 59 a4 29 12 AUTS success: SEQ.MS = 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 diff --git a/tests/comp128/comp128_test.c b/tests/comp128/comp128_test.c index eb6fb12..07c98fa 100644 --- a/tests/comp128/comp128_test.c +++ b/tests/comp128/comp128_test.c @@ -66,8 +66,10 @@ int main(int argc, char **argv) { - printf("COMP128v2 support: %d\n", osmo_auth_alg_parse("COMP128v2")); - printf("COMP128v3 support: %d\n", osmo_auth_alg_parse("COMP128v3")); + printf("COMP128v2 support: %d\n", + osmo_auth_supported(osmo_auth_alg_parse("COMP128v2"))); + printf("COMP128v3 support: %d\n", + osmo_auth_supported(osmo_auth_alg_parse("COMP128v3"))); test_comp128v2("00000000000000000000000000000000", "34B4225BF16B96E118A85800"); test_comp128v2("00102030405060708090A0B0C0D0E0F0", "A892A8EFD6D33E3650372C00"); diff --git a/tests/comp128/comp128_test.ok b/tests/comp128/comp128_test.ok index f9ba7ce..cdac5f2 100644 --- a/tests/comp128/comp128_test.ok +++ b/tests/comp128/comp128_test.ok @@ -1,5 +1,5 @@ -COMP128v2 support: 2 -COMP128v3 support: 3 +COMP128v2 support: 1 +COMP128v3 support: 1 0 OK 0 OK 0 OK -- To view, visit https://gerrit.osmocom.org/421 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I2b98481f56a8381058d4b29db5e8a36eb193eee9 Gerrit-PatchSet: 2 Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Owner: Max <msuraev at sysmocom.de> Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org> Gerrit-Reviewer: Jenkins Builder