forked from boostorg/beast
Use secure TLS/SSL versions:
TLS1.2 can be used instead, it is available in all currently supported versions of OpenSSL. Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
This commit is contained in:
1 parent
0033b7c1e4
commit
8869ec5681
23 files changed
+62
-61
No files matched your search
@@ -299,7 +299,7 @@ https_get (std::string const& host, std::string const& target, error_code& ec)
|
||||
// This context is used to hold client and server certificates.
|
||||
// We do not perform certificate verification in this example.
|
||||
|
||||
net::ssl::context ctx(net::ssl::context::sslv23);
|
||||
net::ssl::context ctx(net::ssl::context::tlsv12);
|
||||
|
||||
// This string will hold the body of the HTTP response, if any.
|
||||
std::string result;
|
||||
|
||||
Reference in new issue
Block a user