From 4b07484c3dcb914741ed522d607a2327965ea43e Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 17 Feb 2018 18:07:43 +0200 Subject: [PATCH] DPP: Do not include common/dpp.h without CONFIG_DPP=y This header file pulls in an OpenSSL header file and as such, should not be included without CONFIG_DPP=y to avoid bringing in an unnecessary build dependency on OpenSSL header files. Signed-off-by: Jouni Malinen --- hostapd/ctrl_iface.c | 2 ++ wpa_supplicant/ctrl_iface.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index 0071e69df..3bba3aee3 100644 --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c @@ -29,7 +29,9 @@ #include "common/version.h" #include "common/ieee802_11_defs.h" #include "common/ctrl_iface_common.h" +#ifdef CONFIG_DPP #include "common/dpp.h" +#endif /* CONFIG_DPP */ #include "common/wpa_ctrl.h" #include "crypto/tls.h" #include "drivers/driver.h" diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 9ad39b8c6..a3aa3b634 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -20,7 +20,9 @@ #include "common/ieee802_11_defs.h" #include "common/ieee802_11_common.h" #include "common/wpa_ctrl.h" +#ifdef CONFIG_DPP #include "common/dpp.h" +#endif /* CONFIG_DPP */ #include "crypto/tls.h" #include "ap/hostapd.h" #include "eap_peer/eap.h"