3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +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)
{
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 = (struct eapol_key *)test->frame;
packet = eapol_key_validate(test->frame, test->frame_len);
assert(packet);
assert(packet->protocol_version == test->protocol_version);
assert(packet->packet_type == 0x03);