reorganize the include files according to the SSL_ENABLED flag.

So that we can build without ssl support.
This commit is contained in:
miaodx 2017-05-29 09:34:40 +08:00
parent 5778310798
commit f1d1d0849e
2 changed files with 4 additions and 2 deletions

View File

@ -3,11 +3,12 @@
//
#include <chrono>
#include <mbedtls/net_sockets.h>
#include <frnetlib/TcpListener.h>
#include "frnetlib/SSLListener.h"
#ifdef SSL_ENABLED
#include <mbedtls/net_sockets.h>
namespace fr
{
SSLListener::SSLListener(std::shared_ptr<SSLContext> ssl_context_, const std::string &crt_path, const std::string &pem_path, const std::string &private_key_path) noexcept

View File

@ -4,10 +4,11 @@
#include "frnetlib/SSLSocket.h"
#include <memory>
#include <mbedtls/net_sockets.h>
#ifdef SSL_ENABLED
#include <mbedtls/net_sockets.h>
namespace fr
{
SSLSocket::SSLSocket(std::shared_ptr<SSLContext> ssl_context_) noexcept