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
873 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. diff --git a/imap-send.c b/imap-send.c
  13. index b4eb886e2..877a4e368 100644
  14. --- a/imap-send.c
  15. +++ b/imap-send.c
  16. @@ -284,8 +284,10 @@ static int ssl_socket_connect(struct imap_socket *sock, int use_tls_only, int ve
  17. int ret;
  18. X509 *cert;
  19. +#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
  20. SSL_library_init();
  21. SSL_load_error_strings();
  22. +#endif
  23. meth = SSLv23_method();
  24. if (!meth) {
  25. --
  26. 2.20.1