wlantest: Allow additional PTKs to be specified from a file
authorJouni Malinen <j@w1.fi>
Sun, 17 Nov 2013 20:52:15 +0000 (22:52 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 17 Nov 2013 21:09:38 +0000 (23:09 +0200)
commita0530dff5b34d2758375afbb0b4bc808bb3c06d4
treee67f28a542262a66290a87ee34b1c1059f3b8d9f
parent848bb8dea9ec5765a559df753a8cd0cfe290cabf
wlantest: Allow additional PTKs to be specified from a file

A text file with a hexdump of PTK (KCK|KEK=TK with 48 octets for CCMP or
64 octets for TKIP or alternative 16 or 32 octet TK for CCMP/TKIP) can
now be read from a file specified with the -T command line argument. If
the current known PTK fails to decrypt a frame (or if no current PTK is
known) all listed PTKs are iterated to see if any of them matches.

Signed-hostap: Jouni Malinen <j@w1.fi>
wlantest/rx_data.c
wlantest/rx_eapol.c
wlantest/wlantest.c
wlantest/wlantest.h