diff options
author | James Prestwood <james.prestwood@linux.intel.com> | 2018-01-19 10:29:56 -0800 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2018-01-19 12:50:53 -0600 |
commit | 62382e8ac3150be2b851ff61a5be57a4b63e0a5a (patch) | |
tree | 6718a5154f74f14290d058c7bc7d79afc7f5be32 /unit | |
parent | 007a855bab062af81da3cc5caf68734a974d1e20 (diff) | |
download | ofono-62382e8ac3150be2b851ff61a5be57a4b63e0a5a.tar.gz |
unit: fix test-simutil failure
A fixup was made in simauth to fix the AUTS length
and the simutil unit test was never updated to reflect
the length change.
Diffstat (limited to 'unit')
-rw-r--r-- | unit/test-simutil.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unit/test-simutil.c b/unit/test-simutil.c index ddf9d28e..1b27a953 100644 --- a/unit/test-simutil.c +++ b/unit/test-simutil.c @@ -539,15 +539,15 @@ static void test_auth_build_parse(void) 0x89, 0xab, 0xcd, 0xef, 0xfe, 0xdc, 0xba, 0x98, 0x76, 0x54, 0x32, 0x10, 0x08, 0xab, 0xcd, 0xef, 0x12, 0x34, 0x56, 0x78, 0x9a }; - const unsigned char umts_sync_failure[] = { 0xdc, 0x10, 0xde, 0xea, + const unsigned char umts_sync_failure[] = { 0xdc, 0x0e, 0xde, 0xea, 0xbe, 0xef, 0xde, 0xea, 0xbe, 0xef, 0xde, 0xea, 0xbe, - 0xef, 0xde, 0xea, 0xbe, 0xef }; + 0xef, 0xde, 0xea }; int len = 0; /* test GSM auth command */ len = sim_build_gsm_authenticate(auth_cmd, 40, rand); - g_assert(len == 22); + g_assert(len == 23); g_assert(auth_cmd[0] == 0x00); g_assert(auth_cmd[1] == 0x88); g_assert(auth_cmd[2] == 0x00); @@ -589,7 +589,7 @@ static void test_auth_build_parse(void) sizeof(umts_sync_failure), &res_p, &ck_p, &ik_p, &auts_p, &kc_p)); - g_assert(!memcmp(auts_p, auts, 16)); + g_assert(!memcmp(auts_p, auts, 14)); /* test UMTS success parse, with kc */ g_assert(sim_parse_umts_authenticate(umts_success_kc, |