remove openssl warning

This commit is contained in:
VaclavT 2021-02-11 23:40:25 +01:00
parent 96fc47099c
commit 36dece23b7
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ int HttpClient::sslRequest(const std::string &server_name, const std::string &re
SSL_library_init(); SSL_library_init();
SSLeay_add_ssl_algorithms(); SSLeay_add_ssl_algorithms();
SSL_load_error_strings(); 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_CTX *ctx = SSL_CTX_new(meth);
ssl = SSL_new(ctx); ssl = SSL_new(ctx);
if (!ssl) { if (!ssl) {