mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
cppflags: rm OPENDHT_PROXY_OPENSSL last occurences
This commit is contained in:
1 parent
a797ea9171
commit
b3a7bdd880
3 files changed
+1
-7
No files matched your search
@@ -75,7 +75,6 @@ if (OPENDHT_PROXY_SERVER OR OPENDHT_PROXY_CLIENT)
|
||||
if (OPENSSL_FOUND)
|
||||
message(STATUS "Found OpenSSL ${OPENSSL_VERSION}")
|
||||
include_directories(${OPENSSL_INCLUDE_DIRS})
|
||||
add_definitions(-DOPENDHT_PROXY_OPENSSL)
|
||||
else ()
|
||||
message(SEND_ERROR "OpenSSL is required for DHT proxy as specified")
|
||||
endif()
|
||||
|
||||
@@ -147,7 +147,6 @@ AS_IF([test "x$with_openssl" != "xno"],
|
||||
[have_openssl=no])
|
||||
AS_IF([test "x$have_openssl" = "xyes"], [
|
||||
AC_MSG_NOTICE([Using OpenSSL])
|
||||
CPPFLAGS+=" -DOPENDHT_PROXY_OPENSSL=1"
|
||||
], [
|
||||
AC_MSG_NOTICE([Not using OpenSSL])
|
||||
])
|
||||
|
||||
@@ -19,9 +19,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <asio.hpp>
|
||||
#ifdef OPENDHT_PROXY_OPENSSL
|
||||
#include "asio/ssl.hpp"
|
||||
#endif
|
||||
#include <json/json.h>
|
||||
#include <http_parser.h>
|
||||
#include <restinio/all.hpp>
|
||||
@@ -200,10 +198,8 @@ public:
|
||||
unsigned int id() const;
|
||||
void set_connection(std::shared_ptr<Connection> connection);
|
||||
std::shared_ptr<Connection> get_connection() const;
|
||||
#ifdef OPENDHT_PROXY_OPENSSL
|
||||
void set_certificate(std::shared_ptr<dht::crypto::Certificate> certificate);
|
||||
#endif
|
||||
|
||||
void set_certificate(std::shared_ptr<dht::crypto::Certificate> certificate);
|
||||
void set_logger(std::shared_ptr<dht::Logger> logger);
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user