be914733c156df464e5321abd4f9de2354fac159
[feed/packages.git] / mail / fdm / patches / 020-Fix-compile-with-OpenSSL-1.1.0.patch
1 From 3aa079c4885d89257c5033b4992011511b603150 Mon Sep 17 00:00:00 2001
2 From: Rosen Penev <rosenp@gmail.com>
3 Date: Tue, 26 Jun 2018 14:14:34 -0700
4 Subject: [PATCH] Fix compile with OpenSSL 1.1.0
5
6 OpenSSL 1.1.0 deprecared SSL_library_init and SSL_load_error_strings.
7 They're part of OPENSSL_init_ssl now.
8 ---
9 fdm.c | 2 ++
10 1 file changed, 2 insertions(+)
11
12 diff --git a/fdm.c b/fdm.c
13 index cdf8383..6721bbd 100644
14 --- a/fdm.c
15 +++ b/fdm.c
16 @@ -717,8 +717,10 @@ retry:
17 }
18 conf.lock_file = lock;
19
20 +#if OPENSSL_VERSION_NUMBER < 0x10100000L
21 SSL_library_init();
22 SSL_load_error_strings();
23 +#endif
24
25 /* Filter account list. */
26 TAILQ_INIT(&actaq);
27 --
28 2.17.1
29