diff --git a/src/elog.c b/src/elog.c index dc58b2d8..0b9a6e4b 100755 --- a/src/elog.c +++ b/src/elog.c @@ -305,7 +305,7 @@ int ssl_connect(int sock, SSL ** ssl_con) SSL_library_init(); SSL_load_error_strings(); - meth = (SSL_METHOD *) TLSv1_2_method(); + meth = (SSL_METHOD *) TLS_method(); ctx = SSL_CTX_new(meth); *ssl_con = SSL_new(ctx); diff --git a/src/elogd.c b/src/elogd.c index f98262bc..e4913841 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -2457,7 +2457,7 @@ int ssl_connect(int sock, SSL **ssl_con) { SSL_library_init(); SSL_load_error_strings(); - meth = (SSL_METHOD *) TLSv1_2_method(); + meth = (SSL_METHOD *) TLS_method(); ctx = SSL_CTX_new(meth); *ssl_con = SSL_new(ctx); @@ -29508,7 +29508,7 @@ SSL_CTX *init_ssl(void) { SSL_library_init(); SSL_load_error_strings(); - meth = (SSL_METHOD *) TLSv1_2_method(); + meth = (SSL_METHOD *) TLS_method(); ctx = SSL_CTX_new(meth); if (getcfg("global", "SSL Passphrase", pwd, sizeof(pwd))) {