Force tlsv12 in Client<HTTPS>
This commit is contained in:
parent
9701a4504b
commit
e18fcb4ceb
1 changed files with 1 additions and 1 deletions
|
|
@ -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<HTTPS>::ClientBase(server_port_path, 443), context(boost::asio::ssl::context::sslv23) {
|
||||
ClientBase<HTTPS>::ClientBase(server_port_path, 443), context(boost::asio::ssl::context::tlsv12) {
|
||||
if(verify_certificate)
|
||||
context.set_verify_mode(boost::asio::ssl::verify_peer);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue