MXS-2483: Make server SSL private

The old server_ssl member is now renamed and private. The ssl_context and
set_ssl_context methods provide access to it.
This commit is contained in:
Markus Mäkelä
2019-05-20 13:16:29 +03:00
parent f79e8b108c
commit 3b8e28392e
12 changed files with 42 additions and 34 deletions

View File

@ -28,8 +28,11 @@
class Server : public SERVER
{
public:
Server(const std::string& name, const std::string& protocol = "", const std::string& authenticator = "")
: SERVER()
Server(const std::string& name,
const std::string& protocol = "",
const std::string& authenticator = "",
mxs::SSLContext* ssl = nullptr)
: SERVER(ssl)
, m_name(name)
{
m_settings.protocol = protocol;