From b044385cdc7044069c3c8ac566cd45a20197d348 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 19 Mar 2015 21:53:59 -0500 Subject: [PATCH] unit: Update to the new EAPoL API --- unit/test-eapol.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/unit/test-eapol.c b/unit/test-eapol.c index e6e27cc6..07976568 100644 --- a/unit/test-eapol.c +++ b/unit/test-eapol.c @@ -558,7 +558,8 @@ static uint8_t spa[] = { 0xa0, 0xa8, 0xcd, 0x1c, 0x7e, 0xc9 }; static int verify_step2(uint32_t ifindex, const uint8_t *aa_addr, const uint8_t *sta_addr, - const struct eapol_key *ek) + const struct eapol_key *ek, + void *user_data) { size_t ek_len = sizeof(struct eapol_key) + L_BE16_TO_CPU(ek->key_data_len); @@ -576,7 +577,8 @@ static int verify_step2(uint32_t ifindex, const uint8_t *aa_addr, static int verify_step4(uint32_t ifindex, const uint8_t *aa_addr, const uint8_t *sta_addr, - const struct eapol_key *ek) + const struct eapol_key *ek, + void *user_data) { size_t ek_len = sizeof(struct eapol_key) + L_BE16_TO_CPU(ek->key_data_len); @@ -636,12 +638,12 @@ static void eapol_sm_test(const void *data) __eapol_set_tx_packet_func(verify_step2); __eapol_rx_packet(1, spa, aa, eapol_key_data_3, - sizeof(eapol_key_data_3)); + sizeof(eapol_key_data_3), NULL); assert(verify_step2_called); __eapol_set_tx_packet_func(verify_step4); __eapol_rx_packet(1, spa, aa, eapol_key_data_5, - sizeof(eapol_key_data_5)); + sizeof(eapol_key_data_5), NULL); assert(verify_step4_called); eapol_exit();