summaryrefslogtreecommitdiff
path: root/config/bmcweb_config.h.in
diff options
context:
space:
mode:
authorEd Tanous <ed@tanous.net>2024-04-13 19:11:15 +0300
committerEd Tanous <ed@tanous.net>2024-04-18 18:40:17 +0300
commit8db83747b6ea72de30ac83f19578ecc37489b13d (patch)
tree86bd287fc7fa1a93df5761af93554ef45f9bdc18 /config/bmcweb_config.h.in
parent3e7374243ff53125f3a55c2d0b1927e89261b1f9 (diff)
downloadbmcweb-8db83747b6ea72de30ac83f19578ecc37489b13d.tar.xz
Clean up BMCWEB_ENABLE_SSL
This macro came originally from CROW_ENABLE_SSL, and was used as a macro to optionally compile without openssl being required. OpenSSL has been pulled into many other dependencies, and has been functionally required to be included for a long time, so there's no reason to hold onto this macro. Remove most uses of the macro, and for the couple functional places the macro is used, transition to a constexpr if to enable the TLS paths. This allows a large simplification of code in some places. Tested: Redfish service validator passes. Change-Id: Iebd46a68e5e417b6031479e24be3c21bef782f4c Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'config/bmcweb_config.h.in')
-rw-r--r--config/bmcweb_config.h.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/bmcweb_config.h.in b/config/bmcweb_config.h.in
index 476379645f..d3b174c470 100644
--- a/config/bmcweb_config.h.in
+++ b/config/bmcweb_config.h.in
@@ -21,5 +21,7 @@ constexpr const bool bmcwebEnableMultiHost = @BMCWEB_ENABLE_MULTI_HOST@ == 1;
constexpr const bool bmcwebEnableHTTP2 = @BMCWEB_ENABLE_HTTP2@ == 1;
+constexpr const bool bmcwebEnableTLS = @BMCWEB_ENABLE_TLS@ == 1;
+
constexpr const bool bmcwebMTLSCommonNameParsingMeta = @BMCWEB_ENABLE_MTLS_COMMON_NAME_PARSING_META@ == 1;
// clang-format on