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.

30 lines
798 B

  1. From 0cfd523a6d0ea16d8b7c94160216838d53c30da6 Mon Sep 17 00:00:00 2001
  2. From: Rosen Penev <rosenp@gmail.com>
  3. Date: Sat, 8 Dec 2018 18:39:50 -0800
  4. Subject: [PATCH] Platform: Fix compilation without deprecated OpenSSL APIs
  5. ---
  6. src/Platform.cc | 2 ++
  7. 1 file changed, 2 insertions(+)
  8. diff --git a/src/Platform.cc b/src/Platform.cc
  9. index ea73b6c6..0af62d18 100644
  10. --- a/src/Platform.cc
  11. +++ b/src/Platform.cc
  12. @@ -111,11 +111,13 @@ bool Platform::setUp()
  13. #endif // ENABLE_NLS
  14. #ifdef HAVE_OPENSSL
  15. +#if !OPENSSL_101_API
  16. // for SSL initialization
  17. SSL_load_error_strings();
  18. SSL_library_init();
  19. // Need this to "decrypt" p12 files.
  20. OpenSSL_add_all_algorithms();
  21. +#endif // !OPENSSL_101_API
  22. #endif // HAVE_OPENSSL
  23. #ifdef HAVE_LIBGCRYPT
  24. if (!gcry_check_version("1.2.4")) {
  25. --
  26. 2.20.0