diff --git a/src/Common/JSONWebKey.h b/src/Common/JSONWebKey.h index 45014cafc1d..e747791d7a9 100644 --- a/src/Common/JSONWebKey.h +++ b/src/Common/JSONWebKey.h @@ -1,5 +1,6 @@ #pragma once +#if USE_SSL #include namespace DB @@ -16,3 +17,4 @@ struct JSONWebKey }; } +#endif diff --git a/src/Server/ACMEClient.cpp b/src/Server/ACMEClient.cpp index 8975fd2ac75..142d4af2255 100644 --- a/src/Server/ACMEClient.cpp +++ b/src/Server/ACMEClient.cpp @@ -2,6 +2,7 @@ #include #include +#if USE_SSL #include #include #include @@ -628,3 +629,4 @@ std::string ACMEClient::requestChallenge(const std::string & uri) } } +#endif diff --git a/src/Server/ACMEClient.h b/src/Server/ACMEClient.h index 5b1838a316e..02349cf2e17 100644 --- a/src/Server/ACMEClient.h +++ b/src/Server/ACMEClient.h @@ -1,5 +1,6 @@ #pragma once +#if USE_SSL #include #include @@ -122,3 +123,4 @@ private: } } +#endif