From 90877476e6c71085591f172cfa768971ff3573ee Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 12 Feb 2015 22:04:09 -0600 Subject: [PATCH] unit: Better describe test data --- unit/test-eapol.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unit/test-eapol.c b/unit/test-eapol.c index 1a376370..36d322ca 100644 --- a/unit/test-eapol.c +++ b/unit/test-eapol.c @@ -66,6 +66,7 @@ struct eapol_key_data { uint16_t key_data_len; }; +/* Random WPA EAPoL frame, using 2001 protocol */ static const unsigned char eapol_key_data_1[] = { 0x01, 0x03, 0x00, 0x5f, 0xfe, 0x00, 0x89, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xd5, 0xe2, 0x13, 0x9b, 0x1b, 0x1c, 0x1e, @@ -109,6 +110,7 @@ static struct eapol_key_data eapol_key_test_1 = { .key_data_len = 0, }; +/* Random WPA2 EAPoL frame, using 2004 protocol */ static const unsigned char eapol_key_data_2[] = { 0x02, 0x03, 0x00, 0x75, 0x02, 0x00, 0x8a, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x6a, 0xce, 0x64, 0xc1, 0xa6, 0x44, @@ -154,6 +156,7 @@ static struct eapol_key_data eapol_key_test_2 = { .key_data_len = 22, }; +/* WPA2 frame, 1 of 4. For parameters see eapol_4way_test */ static const unsigned char eapol_key_data_3[] = { 0x02, 0x03, 0x00, 0x5f, 0x02, 0x00, 0x8a, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc2, 0xbb, 0x57, 0xab, 0x58, 0x8f, 0x92, @@ -197,6 +200,7 @@ static struct eapol_key_data eapol_key_test_3 = { .key_data_len = 0, }; +/* WPA2 frame, 2 of 4. For parameters see eapol_4way_test */ static const unsigned char eapol_key_data_4[] = { 0x01, 0x03, 0x00, 0x75, 0x02, 0x01, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x32, 0x89, 0xe9, 0x15, 0x65, 0x09, 0x4f,