Mikael Kanstrup
307cfc3286
Strip trailing zero data in EAPOL-Key msg 1/4 when no PMKID to send
...
EAPOL-Key message 1/4 without PMKID KDE was sent with 22 bytes of stray
data following a zero length key data field. These 22 bytes happens to
be the exact size of an PMKID KDE. Strip these trailing bytes by
checking whether a PMKID is available and adjust pmkid_len to 0 if not.
This was seen for example in capture files created by hwsim test case
suite_b_192 but code modified to handle also the other cases without
PMKID (Suite B no-KCK, FILS without PMKID available, SAE without PMKID
available).
Signed-off-by: Mikael Kanstrup <mikael.kanstrup@sony.com>
2019-12-23 00:26:07 +02:00
..
2019-07-30 19:58:09 +03:00
2016-02-06 17:10:19 +02:00
2019-12-20 12:42:47 +02:00
2017-03-04 17:30:15 +02:00
2019-05-02 14:57:43 +03:00
2019-05-02 14:57:43 +03:00
2019-12-20 13:19:52 +02:00
2019-12-20 13:23:13 +02:00
2019-12-20 13:38:05 +02:00
2019-12-02 15:55:43 +02:00
2015-07-20 13:42:35 +03:00
2015-07-20 13:42:35 +03:00
2016-10-22 18:11:14 +03:00
2012-02-11 19:39:36 +02:00
2019-09-01 17:19:35 +03:00
2012-02-11 19:39:36 +02:00
2019-10-15 15:39:22 +03:00
2016-10-29 00:55:49 +03:00
2017-12-12 00:48:27 +02:00
2014-10-21 23:25:48 +03:00
2019-12-18 13:46:59 +02:00
2017-06-19 21:13:17 +03:00
2019-12-05 17:12:27 +02:00
2017-03-09 17:01:50 +02:00
2018-12-30 01:05:18 +02:00
2014-10-28 01:08:29 +02:00
2019-12-12 02:33:00 +02:00
2019-12-05 12:37:51 +02:00
2019-12-20 12:45:03 +02:00
2018-12-24 11:09:22 +02:00
2017-05-03 18:30:31 +03:00
2017-05-03 18:30:31 +03:00
2018-12-07 16:03:40 +02:00
2017-02-01 18:17:39 +02:00
2017-06-19 21:13:17 +03:00
2017-06-19 21:13:17 +03:00
2019-04-22 21:08:59 +03:00
2019-04-22 21:08:59 +03:00
2019-12-20 13:38:05 +02:00
2019-09-11 13:11:03 +03:00
2019-09-08 17:33:40 +03:00
2018-06-21 20:50:54 +03:00
2019-12-20 13:05:39 +02:00
2019-10-07 17:20:41 +03:00
2019-09-08 17:33:40 +03:00
2019-07-30 19:58:09 +03:00
2019-01-02 23:27:49 +02:00
2018-03-03 00:42:16 +02:00
2019-10-15 15:39:22 +03:00
2019-10-15 15:39:22 +03:00
2019-11-29 00:07:57 +02:00
2019-10-15 15:39:22 +03:00
2019-12-07 00:39:46 +02:00
2019-10-18 15:49:32 +03:00
2019-09-11 13:11:03 +03:00
2016-09-25 17:31:26 +03:00
2016-02-22 21:17:38 +02:00
2017-03-04 11:42:15 +02:00
2014-11-25 16:58:21 +02:00
2019-05-27 17:40:33 +03:00
2019-01-02 16:47:09 +02:00
2014-03-05 23:36:54 +02:00
2012-02-11 19:39:36 +02:00
2017-09-13 22:17:58 +03:00
2017-10-09 12:12:54 +03:00
2012-02-11 19:39:36 +02:00
2012-02-11 19:39:36 +02:00
2019-01-02 16:40:34 +02:00
2017-01-03 16:02:58 +02:00
2019-10-25 19:29:53 +03:00
2019-09-08 17:33:40 +03:00
2017-01-29 18:33:10 +02:00
2016-09-22 00:45:24 +03:00
2018-04-02 16:51:29 +03:00
2012-11-18 13:06:03 +02:00
2015-07-16 18:26:15 +03:00
2019-01-02 00:23:43 +02:00
2016-03-25 18:00:44 +02:00
2018-12-24 11:09:22 +02:00
2016-02-17 11:46:11 +02:00
2016-03-26 11:24:38 +02:00
2016-03-25 17:27:16 +02:00
2016-03-25 18:00:44 +02:00
2016-02-22 19:53:05 +02:00
2016-02-17 11:46:13 +02:00
2019-11-23 17:39:55 +02:00
2013-12-24 22:59:52 +02:00
2019-09-08 17:33:40 +03:00
2018-10-30 14:07:51 +02:00
2019-10-18 16:20:27 +03:00
2019-12-07 17:32:17 +02:00
2012-02-11 19:39:36 +02:00
2019-10-18 00:20:29 +03:00
2019-10-18 13:02:27 +03:00
2019-10-18 13:02:27 +03:00
2019-06-03 20:27:44 +03:00
2019-06-03 20:27:44 +03:00
2019-12-23 00:26:07 +02:00
2019-12-07 17:32:17 +02:00
2019-09-08 17:33:40 +03:00
2014-01-27 21:10:55 +02:00
2015-04-13 14:00:32 +03:00
2014-11-19 16:25:13 +02:00