MXS-2483: Fix dcb.hh includes
The header depended on ssl.hh to include the OpenSSL headers even though it used OpenSSL types. By fixing these dependencies the ssl.h header can now freely include the rworker_local type which removes the need for the hidden implementation of SSLProvider.
This commit is contained in:
@ -17,13 +17,15 @@
|
||||
*/
|
||||
|
||||
#include <maxscale/ccdefs.hh>
|
||||
|
||||
#include <openssl/ssl.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
#include <maxbase/poll.h>
|
||||
#include <maxscale/authenticator.hh>
|
||||
#include <maxscale/buffer.hh>
|
||||
#include <maxscale/modinfo.h>
|
||||
#include <maxscale/protocol.hh>
|
||||
#include <maxscale/ssl.hh>
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
@ -22,6 +22,7 @@
|
||||
|
||||
#include <maxscale/protocol.hh>
|
||||
#include <maxscale/modinfo.h>
|
||||
#include <maxscale/routingworker.hh>
|
||||
|
||||
#include <openssl/crypto.h>
|
||||
#include <openssl/ssl.h>
|
||||
@ -142,14 +143,14 @@ private:
|
||||
class SSLProvider
|
||||
{
|
||||
public:
|
||||
SSLProvider(std::unique_ptr<mxs::SSLContext> context);
|
||||
|
||||
const mxs::SSLConfig& config() const;
|
||||
mxs::SSLContext* context() const;
|
||||
void set_context(std::unique_ptr<mxs::SSLContext> ssl);
|
||||
|
||||
SSLProvider(std::unique_ptr<mxs::SSLContext>&& context);
|
||||
~SSLProvider();
|
||||
|
||||
private:
|
||||
std::unique_ptr<SSLProviderImp> m_imp;
|
||||
mxs::rworker_local<std::shared_ptr<mxs::SSLContext>> m_context; /**< SSL context */
|
||||
mxs::SSLConfig m_config; /**< SSL configuration */
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user