diff options
author | Max <msuraev@sysmocom.de> | 2016-06-27 15:44:16 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-06-29 16:33:40 +0000 |
commit | eb59f241ec571c3bdfcd8b3fa25d8687a1191f39 (patch) | |
tree | 366145931db9ef66f0229311155cf93ee0f47ea8 /tests/auth/milenage_test.c | |
parent | a337b9c37a9ff561b9c6a2e7c4b2a65dfa3b0e7f (diff) |
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
Diffstat (limited to 'tests/auth/milenage_test.c')
-rw-r--r-- | tests/auth/milenage_test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auth/milenage_test.c b/tests/auth/milenage_test.c index 0223764a..473be92a 100644 --- a/tests/auth/milenage_test.c +++ b/tests/auth/milenage_test.c @@ -50,6 +50,9 @@ static int opc_test(const struct osmo_sub_auth_data *aud) 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))); |