From e8a2b4172520573eba2942c71cbf7b3144c263f4 Mon Sep 17 00:00:00 2001 From: Tim Ebbeke Date: Sat, 6 Apr 2024 15:26:10 +0200 Subject: [PATCH] Added even more missing initializers. --- include/roar/client.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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