Andrew Zaborowski
8e9a2fe05d
treewide: Use l_settings_{set,get}_bytes
2020-09-16 16:46:02 -05:00
Andrew Zaborowski
7a91f6dba4
unit: Add a WSC-R PBC test with Open auth_type
2020-08-25 16:49:02 -05:00
Andrew Zaborowski
3aafb80b54
unit: Add a WSC-R test with a raw PSK
...
The wsc credentials can contain the passphrase or the raw PSK bytes,
now test both scenarios.
2020-08-25 16:48:30 -05:00
Andrew Zaborowski
3cf8af2431
unit: Test a EAP-WSC-R setup with WPA2 credentials
2020-08-25 16:47:50 -05:00
Andrew Zaborowski
5888f66258
unit: Add a test for building M8 encrypted settings
...
There's are two changes to the example raw data in m8_encrypted_settings,
one is to change the Network Index value to 1 and the other is to drop
the Network Key Index attribute:
Network Index R Deprecated - use fixed value 1 for
backwards compatibility.
Network Key O Deprecated. Only included by WSC 1.0
Index devices. Ignored by WSC 2.0 or newer
devices.
2020-01-09 14:07:52 -06:00
Denis Kenzior
217dc6d4cc
unit: Fixup test-wsc
...
- Add missing break statement
- Add missing va_end
- Fix logic inversion introduced by 2d995b17c1dff
Fixes: 2d95b17c1d
("unit: Update event handler in WSC, eapol tests")
Reported-By: Will Dietz <w@wdtz.org>
2019-11-05 10:46:46 -06:00
Andrew Zaborowski
2d95b17c1d
unit: Update event handler in WSC, eapol tests
2019-10-30 14:26:14 -05:00
Marcel Holtmann
152b56a12a
treewide: Move the Intel copyright forward to 2019
2019-10-25 00:43:08 +02:00
Denis Kenzior
1ddd047a73
unit: Remove calls to __eap_set_config
...
These just end up setting a value that is already the default.
2019-10-24 13:48:26 -05:00
James Prestwood
f71a28ce38
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.
2019-10-11 15:45:26 -05:00
Denis Kenzior
f8af73f2c7
unit: Use l_container_of
2019-04-03 11:49:36 -05:00
Denis Kenzior
d22e57c994
treewide: Remove use of key-private.h
2018-10-19 00:31:41 -05:00
James Prestwood
5d31fc25d7
unit: updated unit test with eapol deauth removal
2018-06-27 16:45:53 -05:00
Denis Kenzior
7c0bc22b7c
unit: Update to the new API
2018-06-21 20:10:07 -05:00
Denis Kenzior
736db5c27c
unit: update to the new API
2018-05-01 16:19:38 -05:00
Denis Kenzior
973b7b4555
unit: Additional support checks for WSC tests
2018-01-24 11:07:36 -06:00
Denis Kenzior
9e0d11f948
unit: pin generation test depends on getrandom
...
Turn this test off if the kernel doesn't have it
2018-01-24 09:17:00 -06:00
Denis Kenzior
b64efb83bc
unit: Don't run WSC tests if kernel features missing
...
WSC uses Diffie-Hellman and AES-CBC, so don't bother running the tests
that need these in case the feature is not present in the kernel.
2018-01-23 15:50:32 -06:00
Andrew Zaborowski
fd661d5e9f
unit: Use new mpdu.h structs
2017-08-31 15:13:31 -05:00
Denis Kenzior
23d9b4c089
unit: Only run tests if checksum is available
2017-06-01 16:30:14 -05:00
Andrew Zaborowski
e05bfc5f98
unit: Update tests to pass ETH_P_PAE to __eapol_rx_packet
2017-04-18 11:43:19 -05:00
Denis Kenzior
15308201f9
unit: Add test for wsc_pin_generate
2017-02-17 12:27:27 -06:00
Denis Kenzior
40013e9981
unit: Add sanity check for wsc_pin_is_checksum_valid
2017-02-13 20:27:49 -06:00
Denis Kenzior
5a8d573ae4
unit: squash memory leak
2017-02-13 19:42:35 -06:00
Denis Kenzior
11f4ff2e25
unit: Add sanity check for wsc_is_pin_valid
2017-02-13 19:40:23 -06:00
Tim Kourt
eeb4f35bcb
unit: WSC unfragmented retransmission
2016-12-01 11:33:39 -06:00
Denis Kenzior
d26e224bfc
unit: Update to new eap_init API
2016-11-15 16:44:24 -06:00
Andrew Zaborowski
73e61fa787
unit: Update wsc test with eapol API changes
2016-11-03 10:24:22 -05:00
Andrew Zaborowski
bf65ce9096
unit: Update eapol and WSC tests for new eapol calls
2016-10-15 16:26:41 -05:00
Denis Kenzior
25fb91034a
unit: update to the new eapol_start API
2016-09-13 17:38:16 -05:00
Denis Kenzior
dc37dca24b
unit: Add testing of credential obtained events
2016-09-13 13:33:18 -05:00
Denis Kenzior
fb446dcb9f
unit: Update to the new EAPoL api
2016-09-12 10:03:37 -05:00
Denis Kenzior
e48220c7a6
unit: Verify M8 & EAP-Fail processing
2016-09-09 12:36:49 -05:00
Denis Kenzior
8cd797dced
unit: Add test for wsc_build_wsc_done
2016-09-08 21:28:38 -05:00
Denis Kenzior
588f8a555d
unit: Add test for wsc_parse_wsc_done
2016-09-08 21:28:26 -05:00
Denis Kenzior
70d3a01bda
unit: Add parsing of wsc_credential
2016-08-31 22:36:50 -05:00
Denis Kenzior
4f582753b5
unit: Add test for wsc_parse_m8_encrypted_settings
2016-08-31 22:00:52 -05:00
Denis Kenzior
fa8cbeea7c
unit: Add test for wsc_build_m8
2016-08-31 14:15:16 -05:00
Denis Kenzior
a2b740f161
unit: Add test for wsc_parse_m8
2016-08-31 14:15:11 -05:00
Denis Kenzior
387af676cf
unit: Add M6/M7 exchange test
2016-08-31 12:50:53 -05:00
Denis Kenzior
f542a18f4f
unit: Simplify verification
2016-08-31 12:37:30 -05:00
Denis Kenzior
9353da8bf3
unit: Add test for wsc_build_m7
2016-08-31 11:38:35 -05:00
Denis Kenzior
82b007f7b5
unit: Add test fo wsc_parse_m7
2016-08-31 11:38:22 -05:00
Denis Kenzior
f8eb76a93a
unit: Add test for wsc_build_m6_encrypted_settings
2016-08-31 11:16:30 -05:00
Denis Kenzior
2f09fbc348
unit: Add test for wsc_parse_m6_encrypted_settings
2016-08-31 11:16:15 -05:00
Denis Kenzior
11cb6e5d35
unit: Add test for wsc_build_m6
2016-08-31 11:14:48 -05:00
Denis Kenzior
6e9b5c912c
unit: Add test for wsc_parse_m6
2016-08-31 11:14:48 -05:00
Denis Kenzior
97771f80f1
unit: Add M4/M5 pair to end-to-end wsc test
2016-08-30 23:20:43 -05:00
Denis Kenzior
1820d7c33e
merge: M5 parse test
2016-08-30 23:18:19 -05:00
Denis Kenzior
ba8e0cd6b7
unit: Add test for wsc_build_m4_encrypted_settings
2016-08-30 13:58:32 -05:00