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
..
2017-03-09 17:01:50 +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-01-02 16:40:34 +02:00
2019-01-02 00:23:43 +02:00
2016-02-17 11:46:13 +02:00
2013-12-24 22:59:52 +02:00
2019-10-18 16:20:27 +03:00