Skip to content

Commit

Permalink
Merge pull request #7 from clevertech/fix/tls-v1
Browse files Browse the repository at this point in the history
Use TLS v1.2 in Janus
  • Loading branch information
Chad Furman authored Jan 17, 2019
2 parents 5818867 + c3d4f77 commit 5416183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/websocket-client/JanusWebsocketClientImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>(asio::ssl::context::tlsv1);
auto ctx = websocketpp::lib::make_shared<asio::ssl::context>(asio::ssl::context::tlsv12_client);

try {
ctx->set_options(asio::ssl::context::default_workarounds |
Expand Down

0 comments on commit 5416183

Please sign in to comment.