diff options
author | Harald Welte <laforge@osmocom.org> | 2021-01-04 14:02:55 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2021-01-04 14:03:25 +0100 |
commit | bd94b41fa83baa45030dec37eb8518b7a7beac9b (patch) | |
tree | 3670db6c803852c1c0147e65be5922719533fc8e | |
parent | 6e237d3a90c1bed9121f9ea7c9858b2ac0b579c2 (diff) |
auc_test.c: Add some comments on what the test cases actually do
Change-Id: Id2b9cf12823e05aeadc6f15df396f8a46ae1639d
-rw-r--r-- | tests/auc/auc_test.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auc/auc_test.c b/tests/auc/auc_test.c index db7edcb..c0620db 100644 --- a/tests/auc/auc_test.c +++ b/tests/auc/auc_test.c @@ -113,6 +113,7 @@ int rand_get(uint8_t *rand, unsigned int len) return len; } +/* Subscriber with 2G-only (COMP128v1) authentication data */ static void test_gen_vectors_2g_only(void) { struct osmo_sub_auth_data aud2g; @@ -174,6 +175,8 @@ static void test_gen_vectors_2g_only(void) comment_end(); } +/* Subscriber with separate 2G (COMP128v1) and 3G (MILENAGE) authentication data, + * reflects the default configuration of sysmoUSIM-SJS1 */ static void test_gen_vectors_2g_plus_3g(void) { struct osmo_sub_auth_data aud2g; @@ -284,6 +287,9 @@ void _test_gen_vectors_3g_only__expect_vecs(struct osmo_auth_vector vecs[3]) ); } +/* Subscriber with only 3G (MILENAGE) authentication data, + * reflects the default configuration of sysmoISIM-SJA2. Resulting + * tuples are suitable for both 2G and 3G authentication */ static void test_gen_vectors_3g_only(void) { struct osmo_sub_auth_data aud2g; @@ -454,6 +460,10 @@ static void test_gen_vectors_3g_only(void) comment_end(); } +/* Subscriber with only 3G (XOR) authentication data, + * reflects the default configuration of sysmoTSIM-SJAx as well + * as many "Test USIM" cards. Resulting tuples are suitable for both + * 2G and 3G authentication */ static void test_gen_vectors_3g_xor(void) { struct osmo_sub_auth_data aud2g; @@ -498,6 +508,7 @@ static void test_gen_vectors_3g_xor(void) comment_end(); } +/* Test a variety of invalid authentication data combinations */ void test_gen_vectors_bad_args() { struct osmo_auth_vector vec; |