| 1 | #include "UseSSL.h" |
|---|---|
| 2 | |
| 3 | #include <Common/config.h> |
| 4 | |
| 5 | #if USE_POCO_NETSSL |
| 6 | #include <Poco/Net/SSLManager.h> |
| 7 | #endif |
| 8 | |
| 9 | namespace DB |
| 10 | { |
| 11 | UseSSL::UseSSL() |
| 12 | { |
| 13 | #if USE_POCO_NETSSL |
| 14 | Poco::Net::initializeSSL(); |
| 15 | #endif |
| 16 | } |
| 17 | |
| 18 | UseSSL::~UseSSL() |
| 19 | { |
| 20 | #if USE_POCO_NETSSL |
| 21 | Poco::Net::uninitializeSSL(); |
| 22 | #endif |
| 23 | } |
| 24 | } |
| 25 |