From 9a0edf1700b24cc9aaf0fecb7df58d6c4a04fff4 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 10 Feb 2020 21:58:10 +0200 Subject: [PATCH] wlantest: Add PTK derivation support with SAE, OWE, DPP wlantest build did not define build options to determine key management values for SAE, OWE, and DPP. Add those and the needed SHA512 functions to be able to decrypt sniffer captures with PMK available from an external source. Signed-off-by: Jouni Malinen --- src/crypto/Makefile | 2 ++ wlantest/Makefile | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/crypto/Makefile b/src/crypto/Makefile index ab108daac..c40e95566 100644 --- a/src/crypto/Makefile +++ b/src/crypto/Makefile @@ -54,6 +54,8 @@ LIB_OBJS= \ sha384.o \ sha384-prf.o \ sha384-internal.o \ + sha512.o \ + sha512-prf.o \ sha512-internal.o LIB_OBJS += crypto_internal.o diff --git a/wlantest/Makefile b/wlantest/Makefile index bbcee99a4..0fdf3ff91 100644 --- a/wlantest/Makefile +++ b/wlantest/Makefile @@ -50,6 +50,10 @@ CFLAGS += -DCONFIG_IEEE80211R CFLAGS += -DCONFIG_HS20 CFLAGS += -DCONFIG_DEBUG_FILE CFLAGS += -DCONFIG_FILS +CFLAGS += -DCONFIG_SAE +CFLAGS += -DCONFIG_OWE +CFLAGS += -DCONFIG_DPP +CFLAGS += -DCONFIG_SHA384 OBJS += ../src/common/ieee802_11_common.o OBJS += ../src/common/wpa_common.o