void-packages/srcpkgs/dovecot/patches/libressl.patch

12 lines
356 B
Diff

--- src/lib-ssl-iostream/dovecot-openssl-common.c.orig
+++ src/lib-ssl-iostream/dovecot-openssl-common.c
@@ -101,7 +101,7 @@
ERR_remove_thread_state(NULL);
#endif
ERR_free_strings();
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
OPENSSL_cleanup();
#endif
return FALSE;