From e18fcb4ceb1e2ab57bd0a7410c31c77e57d99493 Mon Sep 17 00:00:00 2001 From: eidheim Date: Mon, 22 Aug 2016 14:07:16 +0200 Subject: [PATCH] Force tlsv12 in Client --- client_https.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_https.hpp b/client_https.hpp index 64c4d0a..ab1fc18 100644 --- a/client_https.hpp +++ b/client_https.hpp @@ -13,7 +13,7 @@ namespace SimpleWeb { Client(const std::string& server_port_path, bool verify_certificate=true, const std::string& cert_file=std::string(), const std::string& private_key_file=std::string(), const std::string& verify_file=std::string()) : - ClientBase::ClientBase(server_port_path, 443), context(boost::asio::ssl::context::sslv23) { + ClientBase::ClientBase(server_port_path, 443), context(boost::asio::ssl::context::tlsv12) { if(verify_certificate) context.set_verify_mode(boost::asio::ssl::verify_peer); else