From 36dece23b794248f7aef01a077c922a8a5122387 Mon Sep 17 00:00:00 2001 From: VaclavT Date: Thu, 11 Feb 2021 23:40:25 +0100 Subject: [PATCH] remove openssl warning --- clib/sslclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clib/sslclient.cpp b/clib/sslclient.cpp index 2114b17..bad6823 100644 --- a/clib/sslclient.cpp +++ b/clib/sslclient.cpp @@ -194,7 +194,7 @@ int HttpClient::sslRequest(const std::string &server_name, const std::string &re SSL_library_init(); SSLeay_add_ssl_algorithms(); SSL_load_error_strings(); - const SSL_METHOD *meth = TLSv1_2_client_method(); + const SSL_METHOD *meth = TLS_client_method(); SSL_CTX *ctx = SSL_CTX_new(meth); ssl = SSL_new(ctx); if (!ssl) {