MCPcopy Create free account
hub / github.com/ByConity/ByConity / makeSecureConnectionSSL

Method makeSecureConnectionSSL

src/Server/PostgreSQLHandler.cpp:207–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205
206#if USE_SSL
207void PostgreSQLHandler::makeSecureConnectionSSL()
208{
209 message_transport->send('S');
210 ss = std::make_shared<Poco::Net::SecureStreamSocket>(
211 Poco::Net::SecureStreamSocket::attach(socket(), Poco::Net::SSLManager::instance().defaultServerContext()));
212 changeIO(*ss);
213}
214#else
215void PostgreSQLHandler::makeSecureConnectionSSL() {}
216#endif

Callers

nothing calls this directly

Calls 2

attachFunction · 0.85
sendMethod · 0.45

Tested by

no test coverage detected