From f1d1d0849ef372a966cd07044936bc8d9c9694cd Mon Sep 17 00:00:00 2001 From: miaodx Date: Mon, 29 May 2017 09:34:40 +0800 Subject: [PATCH] reorganize the include files according to the `SSL_ENABLED` flag. So that we can build without ssl support. --- src/SSLListener.cpp | 3 ++- src/SSLSocket.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/SSLListener.cpp b/src/SSLListener.cpp index 1c0d4fc..cb6db1e 100644 --- a/src/SSLListener.cpp +++ b/src/SSLListener.cpp @@ -3,11 +3,12 @@ // #include -#include #include #include "frnetlib/SSLListener.h" #ifdef SSL_ENABLED +#include + namespace fr { SSLListener::SSLListener(std::shared_ptr ssl_context_, const std::string &crt_path, const std::string &pem_path, const std::string &private_key_path) noexcept diff --git a/src/SSLSocket.cpp b/src/SSLSocket.cpp index 283b3cb..cae2aed 100644 --- a/src/SSLSocket.cpp +++ b/src/SSLSocket.cpp @@ -4,10 +4,11 @@ #include "frnetlib/SSLSocket.h" #include -#include #ifdef SSL_ENABLED +#include + namespace fr { SSLSocket::SSLSocket(std::shared_ptr ssl_context_) noexcept