I want to add some TLS specifications to my context , hence I am using the set_ssl_context_callback
.
But I get the error "set_ssl_context_callback is not a member of web::http::client::http_client_config" since it is surrounded by :
#if !defined(_WIN32) && !defined(__cplusplus_winrt)
How do I disable these flags?
Is there a workaound?I am using Visual Studio 2017.(15.6.7)
http_client_config config;
config.set_ssl_context_callback([](boost::asio::ssl::context &context){
context.set_options(boost::asio::ssl::context::no_sslv2
| boost::asio::ssl::context::no_sslv3
| boost::asio::ssl::context::no_tlsv1
| boost::asio::ssl::context::no_tlsv1_1);
});
http_client raw_client(SessionData::get_instance().GetServerUrl(), config);
I get the following error "set_ssl_context_callback is not a member of web::http::client::http_client_config"