mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
78fc36ca49
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.
25 lines
264 B
C++
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
|
|
}
|
|
}
|