remove openssl warning
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user