Denis Kenzior
099e2a028d
wsc: Add support for initial WSC association
2016-09-14 21:56:20 -05:00
Denis Kenzior
1447c7fe03
monitor: pretty-print eap-wsc packets
2016-09-14 21:56:18 -05:00
Denis Kenzior
15ac5c3f38
wscutil: Fix uninitialized warning
...
==5362== Conditional jump or move depends on uninitialised value(s)
==5362== at 0x419B62: wsc_wfa_ext_iter_next (wscutil.c:52)
==5362== by 0x41B869: wsc_parse_probe_response (wscutil.c:1016)
==5362== by 0x41FD77: scan_results (wsc.c:218)
==5362== by 0x415669: get_scan_done (scan.c:892)
==5362== by 0x432932: destroy_request (genl.c:134)
==5362== by 0x433245: process_unicast (genl.c:394)
==5362== by 0x43361A: received_data (genl.c:506)
==5362== by 0x42FDC2: io_callback (io.c:120)
==5362== by 0x42EABE: l_main_run (main.c:381)
==5362== by 0x402F90: main (main.c:234)
2016-09-14 21:56:18 -05:00
Denis Kenzior
9b0113018f
scan: Fix running active scans
...
A wildcard SSID of zero length is needed
2016-09-14 21:56:18 -05:00
Denis Kenzior
a3fdb88a9a
device: add device_get_netdev
2016-09-14 21:56:18 -05:00
Denis Kenzior
959ebd505b
device: Free eapol_sm on netdev_connect failure
2016-09-14 21:56:18 -05:00
Denis Kenzior
09dcd78e30
device: Convert device watches to watchlist
2016-09-14 21:56:18 -05:00
Denis Kenzior
ef18c03322
device: Make device_enter_state static
2016-09-14 21:56:18 -05:00
Denis Kenzior
4419a6325a
device: Add state watch api
2016-09-14 21:56:16 -05:00
Denis Kenzior
6d410b0bec
watchlist: Add watchlist utilities
2016-09-14 20:26:49 -05:00
Denis Kenzior
d9c18deed7
device: Remove extra whitespace
2016-09-14 00:17:27 -05:00
Denis Kenzior
5b123e1a3d
test: report InterfacesAdded & InterfacesRemoved
2016-09-13 23:16:06 -05:00
Denis Kenzior
e14045442a
test: Use python3 coding style in monitor-iwd
2016-09-13 23:05:16 -05:00
Denis Kenzior
f77d363840
netdev: Add netdev_connect_wsc
2016-09-13 20:50:24 -05:00
Denis Kenzior
8a50054925
device: Make device_disassociated static
2016-09-13 20:49:36 -05:00
Denis Kenzior
25fb91034a
unit: update to the new eapol_start API
2016-09-13 17:38:16 -05:00
Denis Kenzior
db8794460f
eapol: Remove io argument from eapol_start
2016-09-13 17:37:13 -05:00
Denis Kenzior
047a196c70
wscutil: Add wsc_build_association_response
2016-09-13 17:26:18 -05:00
Denis Kenzior
77abdb7d96
wscutil: add wsc_build_association_request
2016-09-13 17:23:43 -05:00
Denis Kenzior
da36b87531
wscutil: Add wsc_parse_association_request
2016-09-13 15:59:30 -05:00
Denis Kenzior
022d24474b
wscutil: Add wsc_parse_association_response
2016-09-13 15:57:16 -05:00
Denis Kenzior
f3d5adfc3c
wsc: report session overlap error
2016-09-13 14:55:13 -05:00
Denis Kenzior
1627b3a2bd
wsc: Squash wsc_sm structure
...
eap-wsc now handles most of the details
2016-09-13 14:53:30 -05:00
Denis Kenzior
c60d34cd8d
wiphy: Add wiphy_get_supported_bands
2016-09-13 14:36:46 -05:00
Denis Kenzior
dc37dca24b
unit: Add testing of credential obtained events
2016-09-13 13:33:18 -05:00
Denis Kenzior
4518394b0e
eap-wsc: Send credential obtained events
2016-09-13 13:32:47 -05:00
Denis Kenzior
9fde037b8f
eapol: Add eapol_sm_set_event_func
2016-09-13 13:30:54 -05:00
Denis Kenzior
1b72fe9713
eap: Add eap event_func
...
This is used to get arbitrary information out of the EAP method. Needed
for EAP-WSC to signal credential information obtained from the peer.
Other uses include signaling why EAP-WSC failed (e.g. invalid PIN, etc)
and processing of M2D discovery messages. The information in M2Ds might
be useful to external clients.
2016-09-13 11:50:52 -05:00
Denis Kenzior
fb446dcb9f
unit: Update to the new EAPoL api
2016-09-12 10:03:37 -05:00
Denis Kenzior
baf72d7f86
eapol: Move to a single PAE socket
...
We used to open a socket for each wireless interface. This patch uses a
single socket with an attached BPF to handle all EAPoL traffic via a
single file descriptor.
2016-09-12 10:02:04 -05:00
Denis Kenzior
8e50144d17
eap-wsc: Handle EAP WSC_NACK Requests
...
These should be responded to with a NACK as well.
2016-09-09 13:40:41 -05:00
Denis Kenzior
d2d9ce7be5
eap-wsc: implement NACK sending
2016-09-09 12:44:36 -05:00
Denis Kenzior
e48220c7a6
unit: Verify M8 & EAP-Fail processing
2016-09-09 12:36:49 -05:00
Denis Kenzior
b93a992ed1
eap-wsc: Handle M8 messages
2016-09-08 21:59:04 -05:00
Denis Kenzior
1dc197d176
wscutil: Rename parse/build_nack
...
... to parse/build_wsc_nack to be more consistent with the spec naming
2016-09-08 21:34:32 -05:00
Denis Kenzior
983d598d1d
wscutil: Add wsc_build_wsc_ack
2016-09-08 21:33:40 -05:00
Denis Kenzior
9c9ecfa239
wscutil: Add wsc_parse_wsc_ack
2016-09-08 21:33:20 -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
aa518811b3
wscutil: Add wsc_build_wsc_done
2016-09-08 21:27:44 -05:00
Denis Kenzior
d8b8c25848
wscutil: Add wsc_parse_wsc_done
2016-09-08 21:27:18 -05:00
Andrew Zaborowski
1b1bf3cf65
eapol: On EAP success save the second 256 bits of MSK
2016-09-06 14:07:35 -05:00
Andrew Zaborowski
443e363c20
crypto: Implement crypto_derive_ft_ptk
2016-09-06 13:50:17 -05:00
Andrew Zaborowski
efbbe9870b
crypto: Implement crypto_derive_pmk_r1
2016-09-06 13:48:50 -05:00
Andrew Zaborowski
994ffd94c5
crypto: Implement crypto_derive_pmk_r0
2016-09-06 13:47:18 -05:00
Andrew Zaborowski
955c88a64a
ie: Consistently set group_management_cipher
...
RSNE_ADVANCE may return and if it is before the assignment of
info.group_management_cipher, that assignment will be dependent on where
the RSNE ends.
2016-09-05 23:10:29 -05:00
Andrew Zaborowski
316752c5e4
ie: Error in tlv_iter_next if no space to length byte
...
When parsing the EAPoL-Key key data field we don't strip the 0xdd /
0x00 padding from the decrypted data so there may be trailing padding
after the IE sequence and valgrind will report an invalid read of the
length byte. Same thing may happen if we're sent garbage.
2016-09-05 23:00:01 -05:00
Andrew Zaborowski
4a00c25241
iwmon: RX dBm is a signed integer
2016-09-05 22:46:53 -05:00
Andrew Zaborowski
a1f1046dcb
iwmon: Fix PMKID display
...
Use unsigned to prevent the PMKID bytes being sign-extended.
2016-09-05 22:43:53 -05:00
Andrew Zaborowski
755605fddf
iwmon: Fix RSN capability bit positions
...
The numbers displayed for other bits are 0-based.
2016-09-05 22:40:07 -05:00