diff --git a/include/maxscale/ssl.hh b/include/maxscale/ssl.hh index 1e2c881ad..11733ebec 100644 --- a/include/maxscale/ssl.hh +++ b/include/maxscale/ssl.hh @@ -81,12 +81,12 @@ public: * * @return SSLContext as a INI file section */ - std::string serialize(); + std::string serialize() const; /** * Opens a new OpenSSL session for this configuration context */ - SSL* open() + SSL* open() const { return SSL_new(m_ctx); } diff --git a/server/core/ssl.cc b/server/core/ssl.cc index 5127981d4..bd5c27103 100644 --- a/server/core/ssl.cc +++ b/server/core/ssl.cc @@ -236,7 +236,7 @@ SSLContext::SSLContext(const std::string& key, const std::string& cert, const st { } -std::string SSLContext::serialize() +std::string SSLContext::serialize() const { std::stringstream ss; ss << "ssl=required\n";