diff --git a/include/roar/client.hpp b/include/roar/client.hpp index a3210130..330d2e0d 100644 --- a/include/roar/client.hpp +++ b/include/roar/client.hpp @@ -38,7 +38,7 @@ namespace Roar struct SslOptions { /// Supply for SSL support. - boost::asio::ssl::context sslContext; + boost::asio::ssl::context sslContext{}; /// SSL verify mode: boost::asio::ssl::verify_mode sslVerifyMode = boost::asio::ssl::verify_peer; @@ -46,7 +46,10 @@ namespace Roar /** * @brief sslVerifyCallback, you can use boost::asio::ssl::rfc2818_verification(host) most of the time. */ - std::function sslVerifyCallback; + std::function sslVerifyCallback = [](bool, auto&) { + // Ending here? Do not forget to implement your own callback. + return false; + }; }; struct ConstructionArguments