b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 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 | --- a/fdm.c |
| 13 | +++ b/fdm.c |
| 14 | @@ -717,8 +717,10 @@ retry: |
| 15 | } |
| 16 | conf.lock_file = lock; |
| 17 | |
| 18 | +#if OPENSSL_VERSION_NUMBER < 0x10100000L |
| 19 | SSL_library_init(); |
| 20 | SSL_load_error_strings(); |
| 21 | +#endif |
| 22 | |
| 23 | /* Filter account list. */ |
| 24 | TAILQ_INIT(&actaq); |