From cfe4160e23026389c5a6849ecd92453c255ea583 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 12 Jan 2020 09:37:55 +0100 Subject: [PATCH] Use general-purpose version-flexible SSL/TLS methods --- src/mailer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mailer.c b/src/mailer.c index c146b13..c4be0d1 100644 --- a/src/mailer.c +++ b/src/mailer.c @@ -389,7 +389,7 @@ Mailer * mailer_new(void) /* ssl */ SSL_load_error_strings(); SSL_library_init(); - if((mailer->ssl_ctx = SSL_CTX_new(SSLv23_client_method())) == NULL + if((mailer->ssl_ctx = SSL_CTX_new(TLS_client_method())) == NULL || SSL_CTX_set_cipher_list(mailer->ssl_ctx, SSL_DEFAULT_CIPHER_LIST) != 1 || SSL_CTX_load_verify_locations(mailer->ssl_ctx, NULL,