]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Do not include common/dpp.h without CONFIG_DPP=y
authorJouni Malinen <j@w1.fi>
Sat, 17 Feb 2018 16:07:43 +0000 (18:07 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 17 Feb 2018 16:07:43 +0000 (18:07 +0200)
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 <j@w1.fi>
hostapd/ctrl_iface.c
wpa_supplicant/ctrl_iface.c

index 0071e69dffb6a3bd8e4c369037930fb337d2d2da..3bba3aee302bc1ed1ce9807fd219d6497e15a2ec 100644 (file)
@@ -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"
index 9ad39b8c676e71e230a89e62e8c586ce6e0a03f8..a3aa3b634839f04ed14332d8d1fb6791a95a1eae 100644 (file)
@@ -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"