blob: 16b5543a0d8b50756c28fd8af174526b0b985ca3 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From fa37195d8378ac958d1f9bd884b47bd73730040e Mon Sep 17 00:00:00 2001
2From: Rosen Penev <rosenp@gmail.com>
3Date: Thu, 27 Dec 2018 09:58:07 -0800
4Subject: [PATCH] imap-send: Fix compilation without deprecated OpenSSL APIs
5
6Initialization in OpenSSL has been deprecated in version 1.1. This makes
7compilation fail when deprecated APIs for OpenSSL are compile-time
8disabled.
9
10Signed-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@@ -259,8 +259,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) {