From 08b6f4c432d5e088d911b734fe1f71ae040adb98 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 7 Feb 2019 10:19:28 -0800 Subject: [PATCH] unit: fix test-sae bad group test When this test was written only group 19 was supported. The 'bad_group' test used, at the time, unsupported group 20. Now group 20 is supported so this test was expecting a failure. This updates the test to use group 0xff, which is not a valid ECC group and should always fail. --- unit/test-sae.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit/test-sae.c b/unit/test-sae.c index 1756af4d..0f5d8d15 100644 --- a/unit/test-sae.c +++ b/unit/test-sae.c @@ -333,7 +333,7 @@ static void test_malformed_confirm(const void *arg) } static uint8_t aa_commit_bad_group[] = { - 0x01, 0x00, 0x00, 0x00, 0x14, 0x00, 0x50, 0x5b, 0xb2, 0x1f, 0xaf, 0x7d, + 0x01, 0x00, 0x00, 0x00, 0xff, 0x00, 0x50, 0x5b, 0xb2, 0x1f, 0xaf, 0x7d, 0xaf, 0x14, 0x7c, 0x7b, 0x19, 0xc9, 0x72, 0x82, 0xbc, 0x1a, 0xdb, 0xa1, 0xbd, 0x6e, 0x5a, 0xc7, 0x58, 0x0a, 0x65, 0x1f, 0xd2, 0xde, 0xb0, 0x66, 0xa5, 0xf9, 0x3e, 0x95, 0x4a, 0xe1, 0x83, 0xdb, 0x8a, 0xf5, 0x47, 0x8a,