3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 02:18:49 +02:00

unit: Add a call to eapol_verify in unit test

This commit is contained in:
Denis Kenzior 2014-12-24 13:44:58 -06:00
parent 1504e947ff
commit c1b3858a07

View File

@ -192,6 +192,8 @@ static void eapol_key_test(const void *data)
const struct eapol_key_data *test = data; const struct eapol_key_data *test = data;
struct eapol_key *packet; struct eapol_key *packet;
assert(eapol_verify(test->frame, test->frame_len));
packet = (struct eapol_key *)test->frame; packet = (struct eapol_key *)test->frame;
assert(packet->protocol_version == test->protocol_version); assert(packet->protocol_version == test->protocol_version);