ClickHouse/src/IO/UseSSL.cpp
Robert Schulze 78fc36ca49
Generate config.h into ${CONFIG_INCLUDE_PATH}
This makes the target location consistent with other auto-generated
files like config_formats.h, config_core.h, and config_functions.h and
simplifies the build of clickhouse_common.
2022-09-28 12:48:26 +00:00

25 lines
264 B
C++

#include "UseSSL.h"
#include "config.h"
#if USE_SSL
# include <Poco/Net/SSLManager.h>
#endif
namespace DB
{
UseSSL::UseSSL()
{
#if USE_SSL
Poco::Net::initializeSSL();
#endif
}
UseSSL::~UseSSL()
{
#if USE_SSL
Poco::Net::uninitializeSSL();
#endif
}
}