Skip to content

Commit

Permalink
Disable Aviso support for HTTPS depending on OpenSSL version
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosbento committed Apr 25, 2024
1 parent b53e69b commit d0ed0d0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion libs/aviso/src/aviso/etcd/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,15 @@

#include "aviso/etcd/Client.hpp"

#include <iostream>

#if defined(ECF_OPENSSL)
#define CPPHTTPLIB_OPENSSL_SUPPORT
#include <openssl/ssl.h>
#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 <cassert>
Expand All @@ -37,6 +44,7 @@ struct Client::Impl
};

Client::Client(const Address& address) : impl_(std::make_unique<Client::Impl>(address)) {
std::cout << OPENSSL_VERSION_NUMBER << std::endl;
}

Client::~Client() = default;
Expand Down

0 comments on commit d0ed0d0

Please sign in to comment.