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.

40 lines
1.2 KiB

  1. --- a/src/lib-dcrypt/dcrypt-openssl.c
  2. +++ b/src/lib-dcrypt/dcrypt-openssl.c
  3. @@ -20,6 +20,7 @@
  4. #include <openssl/engine.h>
  5. #include <openssl/hmac.h>
  6. #include <openssl/objects.h>
  7. +#include <openssl/bn.h>
  8. #include "dcrypt.h"
  9. #include "dcrypt-private.h"
  10. --- a/src/lib-ssl-iostream/dovecot-openssl-common.c
  11. +++ b/src/lib-ssl-iostream/dovecot-openssl-common.c
  12. @@ -79,6 +79,7 @@ bool dovecot_openssl_common_global_unref(void)
  13. ENGINE_finish(dovecot_openssl_engine);
  14. dovecot_openssl_engine = NULL;
  15. }
  16. +#if OPENSSL_VERSION_NUMBER < 0x10100000L
  17. /* OBJ_cleanup() is called automatically by EVP_cleanup() in
  18. newer versions. Doesn't hurt to call it anyway. */
  19. OBJ_cleanup();
  20. @@ -100,6 +101,7 @@ bool dovecot_openssl_common_global_unref(void)
  21. ERR_free_strings();
  22. #ifdef HAVE_OPENSSL_CLEANUP
  23. OPENSSL_cleanup();
  24. +#endif
  25. #endif
  26. return FALSE;
  27. }
  28. --- a/src/lib-ssl-iostream/iostream-openssl-context.c
  29. +++ b/src/lib-ssl-iostream/iostream-openssl-context.c
  30. @@ -6,6 +6,9 @@
  31. #include "dovecot-openssl-common.h"
  32. #include <openssl/crypto.h>
  33. +#include <openssl/rsa.h>
  34. +#include <openssl/dh.h>
  35. +#include <openssl/bn.h>
  36. #include <openssl/x509.h>
  37. #include <openssl/pem.h>
  38. #include <openssl/ssl.h>