git: update to 2.43.2
[feed/packages.git] / net / git / patches / 300-openssl-deprecated.patch
1 From fa37195d8378ac958d1f9bd884b47bd73730040e Mon Sep 17 00:00:00 2001
2 From: Rosen Penev <rosenp@gmail.com>
3 Date: Thu, 27 Dec 2018 09:58:07 -0800
4 Subject: [PATCH] imap-send: Fix compilation without deprecated OpenSSL APIs
5
6 Initialization in OpenSSL has been deprecated in version 1.1. This makes
7 compilation fail when deprecated APIs for OpenSSL are compile-time
8 disabled.
9
10 Signed-off-by: Rosen Penev <rosenp@gmail.com>
11 ---
12 imap-send.c | 2 ++
13 1 file changed, 2 insertions(+)
14
15 --- a/imap-send.c
16 +++ b/imap-send.c
17 @@ -278,8 +278,10 @@ static int ssl_socket_connect(struct ima
18 int ret;
19 X509 *cert;
20
21 +#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
22 SSL_library_init();
23 SSL_load_error_strings();
24 +#endif
25
26 meth = SSLv23_method();
27 if (!meth) {