Skip to content

Commit

Permalink
Use TLS_client_method() for SSL_CTX_new()
Browse files Browse the repository at this point in the history
The SSLv23_client_method() function is deprecated:
https://www.openssl.org/docs/man3.2/man3/SSLv23_client_method.html
  • Loading branch information
rodarima committed Dec 22, 2023
1 parent fc406cd commit 80732c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IO/tls_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ void a_Tls_openssl_init(void)
}

/* Create SSL context */
ssl_context = SSL_CTX_new(SSLv23_client_method());
ssl_context = SSL_CTX_new(TLS_client_method());
if (ssl_context == NULL) {
MSG_ERR("Disabling HTTPS: Error creating SSL context.\n");
return;
Expand Down

0 comments on commit 80732c6

Please sign in to comment.