Fix SSL-disabled build
This fixes a build error when BMCWEB_INSECURE_DISABLE_SSL is set to
ON.
Tested:
Set BMCWEB_INSECURE_DISABLE_SSL to On and built successfully.
Change-Id: Iabacff92098fff61c902b2c40873d66987811773
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
diff --git a/crow/include/crow/http_server.h b/crow/include/crow/http_server.h
index d8a258f..304f562 100644
--- a/crow/include/crow/http_server.h
+++ b/crow/include/crow/http_server.h
@@ -37,7 +37,7 @@
{
public:
Server(Handler* handler, std::unique_ptr<tcp::acceptor>&& acceptor,
- std::shared_ptr<boost::asio::ssl::context>& adaptor_ctx,
+ std::shared_ptr<boost::asio::ssl::context> adaptor_ctx,
std::tuple<Middlewares...>* middlewares = nullptr,
std::shared_ptr<boost::asio::io_context> io =
std::make_shared<boost::asio::io_context>()) :
@@ -49,7 +49,7 @@
}
Server(Handler* handler, const std::string& bindaddr, uint16_t port,
- std::shared_ptr<boost::asio::ssl::context>& adaptor_ctx,
+ std::shared_ptr<boost::asio::ssl::context> adaptor_ctx,
std::tuple<Middlewares...>* middlewares = nullptr,
std::shared_ptr<boost::asio::io_context> io =
std::make_shared<boost::asio::io_context>()) :
@@ -62,7 +62,7 @@
}
Server(Handler* handler, int existing_socket,
- std::shared_ptr<boost::asio::ssl::context>& adaptor_ctx,
+ std::shared_ptr<boost::asio::ssl::context> adaptor_ctx,
std::tuple<Middlewares...>* middlewares = nullptr,
std::shared_ptr<boost::asio::io_context> io =
std::make_shared<boost::asio::io_context>()) :