From: Beat Bolli Date: Sat, 17 Oct 2026 10:09:54 GMT Subject: [PATCH v3 1/3] imap-send: use the recommended TLS_method() Message-ID: <20261017100956.529225-1-dev+git@drbeat.li> In-Reply-To: <20261012203057.969878-1-dev+git@drbeat.li> SSLv23_method() has been deprecated since OpenSSL 1.1.0, and TLS_method() is the recommended function[1]. Let's use the current function, lest a reader of the code thinks we don't support current TLS versions. [1]: https://docs.openssl.org/master/man3/SSL_CTX_new/#history Signed-off-by: Beat Bolli --- imap-send.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imap-send.c b/imap-send.c index bf1d2cf74d..9f21705d77 100644 --- a/imap-send.c +++ b/imap-send.c @@ -298,9 +298,9 @@ static int ssl_socket_connect(struct imap_socket *sock, SSL_library_init(); SSL_load_error_strings(); - meth = SSLv23_method(); + meth = TLS_method(); if (!meth) { - ssl_socket_perror("SSLv23_method"); + ssl_socket_perror("TLS_method"); return -1; } -- 2.53.0