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.

27 lines
748 B

  1. From fa37195d8378ac958d1f9bd884b47bd73730040e Mon Sep 17 00:00:00 2001
  2. From: Rosen Penev <rosenp@gmail.com>
  3. Date: Thu, 27 Dec 2018 09:58:07 -0800
  4. Subject: [PATCH] imap-send: Fix compilation without deprecated OpenSSL APIs
  5. Initialization in OpenSSL has been deprecated in version 1.1. This makes
  6. compilation fail when deprecated APIs for OpenSSL are compile-time
  7. disabled.
  8. Signed-off-by: Rosen Penev <rosenp@gmail.com>
  9. ---
  10. imap-send.c | 2 ++
  11. 1 file changed, 2 insertions(+)
  12. --- a/imap-send.c
  13. +++ b/imap-send.c
  14. @@ -284,8 +284,10 @@ static int ssl_socket_connect(struct ima
  15. int ret;
  16. X509 *cert;
  17. +#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
  18. SSL_library_init();
  19. SSL_load_error_strings();
  20. +#endif
  21. meth = SSLv23_method();
  22. if (!meth) {