mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 02:19:26 +01:00
unit: update wsc/eapol with new eap_init
test-eapol was passing zero as the MTU, so this simply needed to be updated to remove that parameter. test-wsc was actually setting a MTU value so when building the settings we now add the proper value so the MTU can be set with __eap_set_config.
This commit is contained in:
parent
a30620d8a9
commit
f71a28ce38
@ -2912,7 +2912,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);
|
eap_init();
|
||||||
eapol_init();
|
eapol_init();
|
||||||
__handshake_set_get_nonce_func(test_nonce);
|
__handshake_set_get_nonce_func(test_nonce);
|
||||||
|
|
||||||
@ -3375,7 +3375,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);
|
eap_init();
|
||||||
eapol_init();
|
eapol_init();
|
||||||
__handshake_set_get_nonce_func(test_nonce);
|
__handshake_set_get_nonce_func(test_nonce);
|
||||||
|
|
||||||
|
@ -1989,7 +1989,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);
|
eap_init();
|
||||||
eapol_init();
|
eapol_init();
|
||||||
|
|
||||||
hs = test_handshake_state_new(1);
|
hs = test_handshake_state_new(1);
|
||||||
@ -2006,6 +2006,7 @@ static void wsc_test_pbc_handshake(const void *data)
|
|||||||
eapol_sm_set_event_func(sm, verify_credential);
|
eapol_sm_set_event_func(sm, verify_credential);
|
||||||
|
|
||||||
settings = l_settings_new();
|
settings = l_settings_new();
|
||||||
|
l_settings_set_uint(settings, "EAP", "mtu", 1400);
|
||||||
l_settings_set_string(settings, "Security", "EAP-Identity",
|
l_settings_set_string(settings, "Security", "EAP-Identity",
|
||||||
"WFA-SimpleConfig-Enrollee-1-0");
|
"WFA-SimpleConfig-Enrollee-1-0");
|
||||||
l_settings_set_string(settings, "Security", "EAP-Method", "WSC");
|
l_settings_set_string(settings, "Security", "EAP-Method", "WSC");
|
||||||
@ -2039,6 +2040,7 @@ static void wsc_test_pbc_handshake(const void *data)
|
|||||||
l_settings_set_string(settings, "WSC", "IV2",
|
l_settings_set_string(settings, "WSC", "IV2",
|
||||||
"4e3a4cf088176989e148d4c10b96e8fd");
|
"4e3a4cf088176989e148d4c10b96e8fd");
|
||||||
|
|
||||||
|
__eap_set_config(settings);
|
||||||
handshake_state_set_8021x_config(hs, settings);
|
handshake_state_set_8021x_config(hs, settings);
|
||||||
eapol_start(sm);
|
eapol_start(sm);
|
||||||
|
|
||||||
@ -2097,7 +2099,7 @@ static void wsc_test_retransmission_no_fragmentation(const void *data)
|
|||||||
char *hex;
|
char *hex;
|
||||||
struct l_settings *settings;
|
struct l_settings *settings;
|
||||||
|
|
||||||
eap_init(1400);
|
eap_init();
|
||||||
eapol_init();
|
eapol_init();
|
||||||
|
|
||||||
hs = test_handshake_state_new(1);
|
hs = test_handshake_state_new(1);
|
||||||
@ -2114,6 +2116,7 @@ static void wsc_test_retransmission_no_fragmentation(const void *data)
|
|||||||
eapol_sm_set_event_func(sm, verify_credential);
|
eapol_sm_set_event_func(sm, verify_credential);
|
||||||
|
|
||||||
settings = l_settings_new();
|
settings = l_settings_new();
|
||||||
|
l_settings_set_uint(settings, "EAP", "mtu", 1400);
|
||||||
l_settings_set_string(settings, "Security", "EAP-Identity",
|
l_settings_set_string(settings, "Security", "EAP-Identity",
|
||||||
"WFA-SimpleConfig-Enrollee-1-0");
|
"WFA-SimpleConfig-Enrollee-1-0");
|
||||||
l_settings_set_string(settings, "Security", "EAP-Method", "WSC");
|
l_settings_set_string(settings, "Security", "EAP-Method", "WSC");
|
||||||
@ -2147,6 +2150,7 @@ static void wsc_test_retransmission_no_fragmentation(const void *data)
|
|||||||
l_settings_set_string(settings, "WSC", "IV2",
|
l_settings_set_string(settings, "WSC", "IV2",
|
||||||
"4e3a4cf088176989e148d4c10b96e8fd");
|
"4e3a4cf088176989e148d4c10b96e8fd");
|
||||||
|
|
||||||
|
__eap_set_config(settings);
|
||||||
handshake_state_set_8021x_config(hs, settings);
|
handshake_state_set_8021x_config(hs, settings);
|
||||||
eapol_start(sm);
|
eapol_start(sm);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user