imap-send: use the recommended TLS_method()

SSLv23_method() has been deprecated since OpenSSL 1.1.0, and
TLS_method() is the recommended function.

Signed-off-by: Beat Bolli <dev+git@drbeat.li>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
seen^2
Beat Bolli 2026-10-12 22:30:56 +02:00 committed by Junio C Hamano
parent a018953688
commit 0267ebcfc1
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}