mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 22:22:00 +00:00
db13ef96d6
* Try to fix ../libs/libglibc-compatibility/glibc-compatibility.c:151: multiple definition of `explicit_bzero' contrib/ssl/crypto/libcrypto.a(explicit_bzero.c.o):../contrib/ssl/crypto/compat/explicit_bzero.c:16: first defined here * Fix ssl init * fix * noncopyable * clean
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
|
|
}
|
|
}
|