From d0ed0d0f7c45fc6c7a948a9a8d839bba67e2a14f Mon Sep 17 00:00:00 2001 From: Marcos Bento Date: Thu, 25 Apr 2024 10:10:33 +0100 Subject: [PATCH] Disable Aviso support for HTTPS depending on OpenSSL version --- libs/aviso/src/aviso/etcd/Client.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libs/aviso/src/aviso/etcd/Client.cpp b/libs/aviso/src/aviso/etcd/Client.cpp index afed1c0af..aaf6b08ab 100644 --- a/libs/aviso/src/aviso/etcd/Client.cpp +++ b/libs/aviso/src/aviso/etcd/Client.cpp @@ -10,8 +10,15 @@ #include "aviso/etcd/Client.hpp" +#include + #if defined(ECF_OPENSSL) - #define CPPHTTPLIB_OPENSSL_SUPPORT + #include + #if OPENSSL_VERSION_NUMBER < 0x1010100fL + #warning OpenSSL versions prior to 1.1.1 detected. Aviso ETCD HTTP client will be build without OpenSSL support! + #else + #define CPPHTTPLIB_OPENSSL_SUPPORT + #endif #endif #include @@ -37,6 +44,7 @@ struct Client::Impl }; Client::Client(const Address& address) : impl_(std::make_unique(address)) { + std::cout << OPENSSL_VERSION_NUMBER << std::endl; } Client::~Client() = default;