diff --git a/src/fne/CryptoContainer.cpp b/src/fne/CryptoContainer.cpp index 2dbdffd8..ba471071 100644 --- a/src/fne/CryptoContainer.cpp +++ b/src/fne/CryptoContainer.cpp @@ -24,7 +24,7 @@ #if defined(ENABLE_TCP_SSL) #include #include -#endif +#endif // ENABLE_TCP_SSL using namespace crypto; @@ -38,6 +38,7 @@ using namespace crypto; // Global Functions // --------------------------------------------------------------------------- +#if defined(ENABLE_TCP_SSL) /** * @brief Calculates the length of a decoded base64 string. * @param b64input String containing the base64 encoded data. @@ -84,6 +85,7 @@ int base64Decode(char* b64message, uint8_t** buffer) return decodeLen; } +#endif // ENABLE_TCP_SSL /** * @brief diff --git a/src/fne/HostFNE.cpp b/src/fne/HostFNE.cpp index ad1ccb50..b131e92f 100644 --- a/src/fne/HostFNE.cpp +++ b/src/fne/HostFNE.cpp @@ -356,6 +356,9 @@ bool HostFNE::readParams() yaml::Node cryptoContainer = masterConf["crypto_container"]; bool cryptoContainerEnabled = cryptoContainer["enabled"].as(false); +#if !defined(ENABLE_TCP_SSL) + cryptoContainerEnabled = false; +#endif // ENABLE_TCP_SSL std::string cryptoContainerEKC = cryptoContainer["file"].as(); std::string cryptoContainerPassword = cryptoContainer["password"].as(); uint32_t cryptoContainerReload = cryptoContainer["time"].as(30U);