mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-01 16:22:44 +01:00
unit: Update to new eap_init API
This commit is contained in:
parent
d03f23200a
commit
d26e224bfc
@ -2363,6 +2363,7 @@ static void eapol_sm_test_tls(struct eapol_8021x_tls_test_state *s,
|
|||||||
aa = ap_address;
|
aa = ap_address;
|
||||||
spa = sta_address;
|
spa = sta_address;
|
||||||
|
|
||||||
|
eap_init(0);
|
||||||
eapol_init();
|
eapol_init();
|
||||||
__handshake_set_get_nonce_func(test_nonce);
|
__handshake_set_get_nonce_func(test_nonce);
|
||||||
__eapol_set_deauthenticate_func(verify_deauthenticate);
|
__eapol_set_deauthenticate_func(verify_deauthenticate);
|
||||||
@ -2551,6 +2552,7 @@ static void eapol_sm_test_tls(struct eapol_8021x_tls_test_state *s,
|
|||||||
eapol_sm_free(sm);
|
eapol_sm_free(sm);
|
||||||
handshake_state_free(hs);
|
handshake_state_free(hs);
|
||||||
eapol_exit();
|
eapol_exit();
|
||||||
|
eap_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void eapol_sm_test_eap_tls(const void *data)
|
static void eapol_sm_test_eap_tls(const void *data)
|
||||||
@ -2721,6 +2723,7 @@ static void eapol_sm_test_eap_nak(const void *data)
|
|||||||
aa = ap_address;
|
aa = ap_address;
|
||||||
spa = sta_address;
|
spa = sta_address;
|
||||||
|
|
||||||
|
eap_init(0);
|
||||||
eapol_init();
|
eapol_init();
|
||||||
__handshake_set_get_nonce_func(test_nonce);
|
__handshake_set_get_nonce_func(test_nonce);
|
||||||
__eapol_set_deauthenticate_func(verify_deauthenticate);
|
__eapol_set_deauthenticate_func(verify_deauthenticate);
|
||||||
@ -2767,6 +2770,7 @@ static void eapol_sm_test_eap_nak(const void *data)
|
|||||||
|
|
||||||
handshake_state_free(hs);
|
handshake_state_free(hs);
|
||||||
eapol_exit();
|
eapol_exit();
|
||||||
|
eap_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void eapol_ft_handshake_test(const void *data)
|
static void eapol_ft_handshake_test(const void *data)
|
||||||
|
@ -1958,6 +1958,7 @@ static void wsc_test_pbc_handshake(const void *data)
|
|||||||
char *hex;
|
char *hex;
|
||||||
struct l_settings *settings;
|
struct l_settings *settings;
|
||||||
|
|
||||||
|
eap_init(1400);
|
||||||
eapol_init();
|
eapol_init();
|
||||||
|
|
||||||
hs = handshake_state_new(1);
|
hs = handshake_state_new(1);
|
||||||
@ -2046,6 +2047,7 @@ static void wsc_test_pbc_handshake(const void *data)
|
|||||||
|
|
||||||
handshake_state_free(hs);
|
handshake_state_free(hs);
|
||||||
eapol_exit();
|
eapol_exit();
|
||||||
|
eap_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
Loading…
Reference in New Issue
Block a user