From 1326cb76539ec615b12930527771c2df7947c801 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 8 Apr 2019 18:07:28 +0300 Subject: [PATCH] DPP: Fix a regression in non-DPP, non-OpenSSL builds Inclusion of common/dpp.h into hostapd/main.c brought in an undesired unconditional dependency on OpenSSL header files even for builds where DPP is not enabled. Fix this by making the dpp.h contents, and in particular the inclusion of openssl/x509.h, conditional on CONFIG_DPP. Fixes: 87d8435cf9fd ("DPP: Common configurator/bootstrapping data management") Signed-off-by: Jouni Malinen --- src/common/dpp.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/dpp.h b/src/common/dpp.h index 0a8122685..5a6d8cc79 100644 --- a/src/common/dpp.h +++ b/src/common/dpp.h @@ -10,6 +10,7 @@ #ifndef DPP_H #define DPP_H +#ifdef CONFIG_DPP #include #include "utils/list.h" @@ -500,4 +501,5 @@ struct dpp_global * dpp_global_init(void); void dpp_global_clear(struct dpp_global *dpp); void dpp_global_deinit(struct dpp_global *dpp); +#endif /* CONFIG_DPP */ #endif /* DPP_H */