From c3d4f770e9c576192b3ae9a729913826fd8eef04 Mon Sep 17 00:00:00 2001 From: Guilherme Castro Date: Thu, 17 Jan 2019 18:03:16 -0200 Subject: [PATCH] Use TLS v1.2 in Janus --- plugins/websocket-client/JanusWebsocketClientImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/websocket-client/JanusWebsocketClientImpl.cpp b/plugins/websocket-client/JanusWebsocketClientImpl.cpp index 245f89136..833c1a31e 100644 --- a/plugins/websocket-client/JanusWebsocketClientImpl.cpp +++ b/plugins/websocket-client/JanusWebsocketClientImpl.cpp @@ -161,7 +161,7 @@ bool JanusWebsocketClientImpl::connect(std::string url, std::string room, std::s //Register our tls hanlder client.set_tls_init_handler([&](websocketpp::connection_hdl connection) { //Create context - auto ctx = websocketpp::lib::make_shared(asio::ssl::context::tlsv1); + auto ctx = websocketpp::lib::make_shared(asio::ssl::context::tlsv12_client); try { ctx->set_options(asio::ssl::context::default_workarounds |