You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
701 B

  1. From f6c656c5c0368b2fb4284af0484c3bedfc7ae42c 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. OpenSSL 1.1.0 deprecared SSL_library_init and SSL_load_error_strings.
  6. They're part of OPENSSL_init_ssl now.
  7. ---
  8. fdm.c | 5 +++++
  9. 1 file changed, 5 insertions(+)
  10. diff --git a/fdm.c b/fdm.c
  11. index cdf8383..9355b91 100644
  12. --- a/fdm.c
  13. +++ b/fdm.c
  14. @@ -717,8 +717,13 @@ retry:
  15. }
  16. conf.lock_file = lock;
  17. +
  18. +#if OPENSSL_VERSION_NUMBER < 0x10100000L
  19. SSL_library_init();
  20. SSL_load_error_strings();
  21. +#else
  22. + OPENSSL_init_ssl(0, NULL);
  23. +#endif
  24. /* Filter account list. */
  25. TAILQ_INIT(&actaq);
  26. --
  27. 2.17.1