]> git.ipfire.org Git - thirdparty/git.git/commit - imap-send.c
imap-send: avoid deprecated TLSv1_method()
authorKazuki Yamaguchi <k@rhe.jp>
Fri, 8 Apr 2016 16:22:15 +0000 (01:22 +0900)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Apr 2016 18:46:33 +0000 (11:46 -0700)
commitb51c0d4b4c70b3d2ddac1657b98b17e77af1c404
tree99aa216796500c95536db225a95d119aa6b38a95
parent6738a33b3102222b25f7a1596aa1ed39c478a268
imap-send: avoid deprecated TLSv1_method()

Use SSLv23_method always and disable SSL if needed.

TLSv1_method() function is deprecated in OpenSSL 1.1.0 and the compiler
emits a warning.

SSLv23_method() is also deprecated, but the alternative, TLS_method(),
is new in OpenSSL 1.1.0 so requires checking by configure. Stick to
SSLv23_method() for now (this is aliased to TLS_method()).

Signed-off-by: Kazuki Yamaguchi <k@rhe.jp>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
imap-send.c