mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
25 lines
291 B
C++
25 lines
291 B
C++
|
#include "UseSSL.h"
|
||
|
|
||
|
#include <Common/config.h>
|
||
|
|
||
|
#if USE_POCO_NETSSL
|
||
|
#include <Poco/Net/SSLManager.h>
|
||
|
#endif
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
UseSSL::UseSSL()
|
||
|
{
|
||
|
#if USE_POCO_NETSSL
|
||
|
Poco::Net::initializeSSL();
|
||
|
#endif
|
||
|
}
|
||
|
|
||
|
UseSSL::~UseSSL()
|
||
|
{
|
||
|
#if USE_POCO_NETSSL
|
||
|
Poco::Net::uninitializeSSL();
|
||
|
#endif
|
||
|
}
|
||
|
}
|