Client: enables TLS 1.3

This commit is contained in:
eidheim 2021-04-13 14:38:01 +02:00
commit 8c8045a696
2 changed files with 10 additions and 2 deletions

View file

@ -31,7 +31,7 @@ namespace SimpleWeb {
: ServerBase<HTTPS>::ServerBase(443),
#if(ASIO_STANDALONE && ASIO_VERSION >= 101300) || BOOST_ASIO_VERSION >= 101300
context(asio::ssl::context::tls_server) {
// Disabling SSL, TLS 1.0 and 1.1 (see RFC 8996)
// Disabling TLS 1.0 and 1.1 (see RFC 8996)
context.set_options(asio::ssl::context::no_tlsv1);
context.set_options(asio::ssl::context::no_tlsv1_1);
#else