reorganize the include files according to the SSL_ENABLED flag.
So that we can build without ssl support.
This commit is contained in:
parent
5778310798
commit
f1d1d0849e
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user