Build without wss support, if OpenSSL is not found

This commit is contained in:
badaix 2025-01-28 17:57:36 +01:00
parent c105fecc5b
commit 2addf7cc3d
16 changed files with 68 additions and 27 deletions

View file

@ -517,6 +517,7 @@ void ClientConnectionWs::write(boost::asio::streambuf& buffer, WriteHandler&& wr
/////////////////////////////// SSL Websockets ////////////////////////////////
#ifdef HAS_OPENSSL
ClientConnectionWss::ClientConnectionWss(boost::asio::io_context& io_context, boost::asio::ssl::context& ssl_context, ClientSettings::Server server)
: ClientConnection(io_context, std::move(server)), ssl_context_(ssl_context)
@ -683,3 +684,5 @@ void ClientConnectionWss::write(boost::asio::streambuf& buffer, WriteHandler&& w
{
getWs().async_write(boost::asio::buffer(buffer.data()), write_handler);
}
#endif // HAS_OPENSSL