void-packages/srcpkgs/dovecot/patches/patch-src_lib-ssl-iostream_iostream-openssl_c
Juan RP 9d830ac67a dovecot: enable lzma/lucene support and switch to libressl.
- lzma has been enabled by default
- lucene support is provided by the -plugin-lucene subpkg.
- switch to libressl with some patches from OpenBSD
2014-08-04 19:26:22 +02:00

24 lines
979 B
Text

$OpenBSD: patch-src_lib-ssl-iostream_iostream-openssl_c,v 1.1 2014/07/30 14:28:24 naddy Exp $
Fixed compiling with SSL compression disabled.
--- src/lib-ssl-iostream/iostream-openssl.c.orig Tue Jul 29 15:35:56 2014
+++ src/lib-ssl-iostream/iostream-openssl.c Tue Jul 29 15:36:29 2014
@@ -675,7 +675,7 @@ static const char *
openssl_iostream_get_security_string(struct ssl_iostream *ssl_io)
{
const SSL_CIPHER *cipher;
-#ifdef HAVE_SSL_COMPRESSION
+#if defined(HAVE_SSL_COMPRESSION) && !defined(OPENSSL_NO_COMP)
const COMP_METHOD *comp;
#endif
const char *comp_str;
@@ -686,7 +686,7 @@ openssl_iostream_get_security_string(struct ssl_iostre
cipher = SSL_get_current_cipher(ssl_io->ssl);
bits = SSL_CIPHER_get_bits(cipher, &alg_bits);
-#ifdef HAVE_SSL_COMPRESSION
+#if defined(HAVE_SSL_COMPRESSION) && !defined(OPENSSL_NO_COMP)
comp = SSL_get_current_compression(ssl_io->ssl);
comp_str = comp == NULL ? "" :
t_strconcat(" ", SSL_COMP_get_name(comp), NULL);