Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Dec 2015 11:46:15 +0000 (UTC)
From:      Hajimu UMEMOTO <ume@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r402820 - head/mail/cyrus-imapd25/files
Message-ID:  <201512021146.tB2BkFl1055850@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ume
Date: Wed Dec  2 11:46:15 2015
New Revision: 402820
URL: https://svnweb.freebsd.org/changeset/ports/402820

Log:
  Fix build on 9.X.
  
  Reported by:	Andrea Venturoli <ml__at__netfence.it>

Added:
  head/mail/cyrus-imapd25/files/patch-imap__tls.c   (contents, props changed)
  head/mail/cyrus-imapd25/files/patch-imtest__imtest.c   (contents, props changed)
  head/mail/cyrus-imapd25/files/patch-lib__imclient.c   (contents, props changed)

Added: head/mail/cyrus-imapd25/files/patch-imap__tls.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/cyrus-imapd25/files/patch-imap__tls.c	Wed Dec  2 11:46:15 2015	(r402820)
@@ -0,0 +1,22 @@
+--- imap/tls.c.orig	2015-11-30 06:30:33 UTC
++++ imap/tls.c
+@@ -683,7 +683,9 @@ EXPORTED int     tls_init_serverengine(c
+     off |= SSL_OP_ALL;            /* Work around all known bugs */
+     off |= SSL_OP_NO_SSLv2;       /* Disable insecure SSLv2 */
+     off |= SSL_OP_NO_SSLv3;       /* Disable insecure SSLv3 */
++#if (OPENSSL_VERSION_NUMBER >= 0x1000000fL)
+     off |= SSL_OP_NO_COMPRESSION; /* Disable TLS compression */
++#endif // (OPENSSL_VERSION_NUMBER >= 0x1000000fL)
+ 
+     const char *tls_versions = config_getstring(IMAPOPT_TLS_VERSIONS);
+ 
+@@ -1399,7 +1401,9 @@ HIDDEN int tls_init_clientengine(int ver
+     off |= SSL_OP_ALL;            /* Work around all known bugs */
+     off |= SSL_OP_NO_SSLv2;       /* Disable insecure SSLv2 */
+     off |= SSL_OP_NO_SSLv3;       /* Disable insecure SSLv3 */
++#if (OPENSSL_VERSION_NUMBER >= 0x1000000fL)
+     off |= SSL_OP_NO_COMPRESSION; /* Disable TLS compression */
++#endif // (OPENSSL_VERSION_NUMBER >= 0x1000000fL)
+ 
+     SSL_CTX_set_options(c_ctx, off);
+     SSL_CTX_set_info_callback(c_ctx, apps_ssl_info_callback);

Added: head/mail/cyrus-imapd25/files/patch-imtest__imtest.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/cyrus-imapd25/files/patch-imtest__imtest.c	Wed Dec  2 11:46:15 2015	(r402820)
@@ -0,0 +1,12 @@
+--- imtest/imtest.c.orig	2015-11-30 06:30:33 UTC
++++ imtest/imtest.c
+@@ -503,7 +503,9 @@ static int tls_init_clientengine(int ver
+     off |= SSL_OP_ALL;            /* Work around all known bugs */
+     off |= SSL_OP_NO_SSLv2;       /* Disable insecure SSLv2 */
+     off |= SSL_OP_NO_SSLv3;       /* Disable insecure SSLv3 */
++#if (OPENSSL_VERSION_NUMBER >= 0x1000000fL)
+     off |= SSL_OP_NO_COMPRESSION; /* Disable TLS compression */
++#endif // (OPENSSL_VERSION_NUMBER >= 0x1000000fL)
+     SSL_CTX_set_options(tls_ctx, off);
+     SSL_CTX_set_info_callback(tls_ctx, apps_ssl_info_callback);
+     

Added: head/mail/cyrus-imapd25/files/patch-lib__imclient.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/cyrus-imapd25/files/patch-lib__imclient.c	Wed Dec  2 11:46:15 2015	(r402820)
@@ -0,0 +1,12 @@
+--- lib/imclient.c.orig	2015-11-30 06:30:33 UTC
++++ lib/imclient.c
+@@ -1641,7 +1641,9 @@ static int tls_init_clientengine(struct 
+     off |= SSL_OP_ALL;            /* Work around all known bugs */
+     off |= SSL_OP_NO_SSLv2;       /* Disable insecure SSLv2 */
+     off |= SSL_OP_NO_SSLv3;       /* Disable insecure SSLv3 */
++#if (OPENSSL_VERSION_NUMBER >= 0x1000000fL)
+     off |= SSL_OP_NO_COMPRESSION; /* Disable TLS compression */
++#endif // (OPENSSL_VERSION_NUMBER >= 0x1000000fL)
+     SSL_CTX_set_options(imclient->tls_ctx, off);
+     
+     /* debugging   SSL_CTX_set_info_callback(imclient->tls_ctx, apps_ssl_info_callback); */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512021146.tB2BkFl1055850>