Skip to content

Commit

Permalink
Added even more missing initializers.
Browse files Browse the repository at this point in the history
  • Loading branch information
5cript committed Apr 6, 2024
1 parent bf6387b commit e8a2b41
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/roar/client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,18 @@ 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;

/**
* @brief sslVerifyCallback, you can use boost::asio::ssl::rfc2818_verification(host) most of the time.
*/
std::function<bool(bool, boost::asio::ssl::verify_context&)> sslVerifyCallback;
std::function<bool(bool, boost::asio::ssl::verify_context&)> sslVerifyCallback = [](bool, auto&) {
// Ending here? Do not forget to implement your own callback.
return false;
};
};

struct ConstructionArguments
Expand Down

0 comments on commit e8a2b41

Please sign in to comment.