3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 09:39:25 +01:00

unit: Update to the new eapol_key_validate API

eapol_key_validate will directly return a const pointer if the
validation succeeds.
This commit is contained in:
Tomasz Bursztyka 2015-01-22 17:58:24 +02:00 committed by Denis Kenzior
parent 8f946c0cdc
commit 33ab01f669

View File

@ -245,11 +245,10 @@ static struct eapol_key_data eapol_key_test_4 = {
static void eapol_key_test(const void *data) 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; const struct eapol_key *packet;
assert(eapol_verify(test->frame, test->frame_len)); packet = eapol_key_validate(test->frame, test->frame_len);
assert(packet);
packet = (struct eapol_key *)test->frame;
assert(packet->protocol_version == test->protocol_version); assert(packet->protocol_version == test->protocol_version);
assert(packet->packet_type == 0x03); assert(packet->packet_type == 0x03);