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
parent
a018953688
commit
0267ebcfc1
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue