path: root/wlantest/wlantest.h
diff options
authorJouni Malinen <j@w1.fi>2013-11-17 20:52:15 (GMT)
committerJouni Malinen <j@w1.fi>2013-11-17 21:09:38 (GMT)
commita0530dff5b34d2758375afbb0b4bc808bb3c06d4 (patch)
treee67f28a542262a66290a87ee34b1c1059f3b8d9f /wlantest/wlantest.h
parent848bb8dea9ec5765a559df753a8cd0cfe290cabf (diff)
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>
Diffstat (limited to 'wlantest/wlantest.h')
1 files changed, 7 insertions, 0 deletions
diff --git a/wlantest/wlantest.h b/wlantest/wlantest.h
index 6146830..60802d5 100644
--- a/wlantest/wlantest.h
+++ b/wlantest/wlantest.h
@@ -38,6 +38,12 @@ struct wlantest_pmk {
u8 pmk[32];
+struct wlantest_ptk {
+ struct dl_list list;
+ struct wpa_ptk ptk;
+ size_t ptk_len;
struct wlantest_wep {
struct dl_list list;
size_t key_len;
@@ -164,6 +170,7 @@ struct wlantest {
struct dl_list secret; /* struct wlantest_radius_secret */
struct dl_list radius; /* struct wlantest_radius */
struct dl_list pmk; /* struct wlantest_pmk */
+ struct dl_list ptk; /* struct wlantest_ptk */
struct dl_list wep; /* struct wlantest_wep */
unsigned int rx_mgmt;