diff options
author | eidheim <eidheim@gmail.com> | 2016-08-21 15:23:56 +0300 |
---|---|---|
committer | eidheim <eidheim@gmail.com> | 2016-08-21 15:23:56 +0300 |
commit | 505cb292a3546f56d4349d15880a1b4d09829f51 (patch) | |
tree | 3d54b82e20d02ff99339a5122ae5f36c27da0a28 /server_wss.hpp | |
parent | 97e547359b0401d011b0d52e3d8631598133751d (diff) |
Force use of tlsv12 on server
Diffstat (limited to 'server_wss.hpp')
-rw-r--r-- | server_wss.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server_wss.hpp b/server_wss.hpp index 37951b5..1c1cbf8 100644 --- a/server_wss.hpp +++ b/server_wss.hpp @@ -15,7 +15,7 @@ namespace SimpleWeb { size_t timeout_request=5, size_t timeout_idle=0, const std::string& verify_file=std::string()) : SocketServerBase<WSS>::SocketServerBase(port, num_threads, timeout_request, timeout_idle), - context(boost::asio::ssl::context::sslv23) { + context(boost::asio::ssl::context::tlsv12) { context.use_certificate_chain_file(cert_file); context.use_private_key_file(private_key_file, boost::asio::ssl::context::pem); |