Skip to content

Commit 5416183

Browse files
author
Chad Furman
authored
Merge pull request #7 from clevertech/fix/tls-v1
Use TLS v1.2 in Janus
2 parents 5818867 + c3d4f77 commit 5416183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/websocket-client/JanusWebsocketClientImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ bool JanusWebsocketClientImpl::connect(std::string url, std::string room, std::s
161161
//Register our tls hanlder
162162
client.set_tls_init_handler([&](websocketpp::connection_hdl connection) {
163163
//Create context
164-
auto ctx = websocketpp::lib::make_shared<asio::ssl::context>(asio::ssl::context::tlsv1);
164+
auto ctx = websocketpp::lib::make_shared<asio::ssl::context>(asio::ssl::context::tlsv12_client);
165165

166166
try {
167167
ctx->set_options(asio::ssl::context::default_workarounds |

0 commit comments

Comments
 (0)