From a1d00805a4b30fb9e26737272015332ae04344a6 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 13 Feb 2015 18:38:29 -0600 Subject: [PATCH] unit: Excercise eapol_verify_ptk_4_of_4 --- unit/test-eapol.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/unit/test-eapol.c b/unit/test-eapol.c index 6e28fba1..9fe1bf44 100644 --- a/unit/test-eapol.c +++ b/unit/test-eapol.c @@ -500,6 +500,7 @@ static void eapol_4way_test(const void *data) const struct eapol_key *step1; const struct eapol_key *step2; const struct eapol_key *step3; + const struct eapol_key *step4; step1 = eapol_verify_ptk_1_of_4(eapol_key_data_3, sizeof(eapol_key_data_3)); @@ -546,6 +547,10 @@ static void eapol_4way_test(const void *data) assert(step3); assert(!memcmp(anonce, step3->key_nonce, sizeof(step3->key_nonce))); + step4 = eapol_verify_ptk_4_of_4(eapol_key_data_6, + sizeof(eapol_key_data_6)); + assert(step4); + l_free(ptk); }