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:
parent
8f946c0cdc
commit
33ab01f669
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user