mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Replaced deprecated TLSv1_2_method() by TLS_method()
This commit is contained in:
parent
9f6762f4b9
commit
8e6cb6a697
@ -305,7 +305,7 @@ int ssl_connect(int sock, SSL ** ssl_con)
|
|||||||
SSL_library_init();
|
SSL_library_init();
|
||||||
SSL_load_error_strings();
|
SSL_load_error_strings();
|
||||||
|
|
||||||
meth = (SSL_METHOD *) TLSv1_2_method();
|
meth = (SSL_METHOD *) TLS_method();
|
||||||
ctx = SSL_CTX_new(meth);
|
ctx = SSL_CTX_new(meth);
|
||||||
|
|
||||||
*ssl_con = SSL_new(ctx);
|
*ssl_con = SSL_new(ctx);
|
||||||
|
|||||||
@ -2457,7 +2457,7 @@ int ssl_connect(int sock, SSL **ssl_con) {
|
|||||||
SSL_library_init();
|
SSL_library_init();
|
||||||
SSL_load_error_strings();
|
SSL_load_error_strings();
|
||||||
|
|
||||||
meth = (SSL_METHOD *) TLSv1_2_method();
|
meth = (SSL_METHOD *) TLS_method();
|
||||||
ctx = SSL_CTX_new(meth);
|
ctx = SSL_CTX_new(meth);
|
||||||
|
|
||||||
*ssl_con = SSL_new(ctx);
|
*ssl_con = SSL_new(ctx);
|
||||||
@ -29508,7 +29508,7 @@ SSL_CTX *init_ssl(void) {
|
|||||||
SSL_library_init();
|
SSL_library_init();
|
||||||
SSL_load_error_strings();
|
SSL_load_error_strings();
|
||||||
|
|
||||||
meth = (SSL_METHOD *) TLSv1_2_method();
|
meth = (SSL_METHOD *) TLS_method();
|
||||||
ctx = SSL_CTX_new(meth);
|
ctx = SSL_CTX_new(meth);
|
||||||
|
|
||||||
if (getcfg("global", "SSL Passphrase", pwd, sizeof(pwd))) {
|
if (getcfg("global", "SSL Passphrase", pwd, sizeof(pwd))) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user