diff options
author | ume <ume@FreeBSD.org> | 2017-03-15 19:46:58 +0800 |
---|---|---|
committer | Koop Mast <kwm@rainbow-runner.nl> | 2017-04-09 20:01:17 +0800 |
commit | 3886ddd57a3d7bcbfa0a670f1d24d3a8ac3fb8cc (patch) | |
tree | 4a71a342665f1655437ee93a06ddd2598f8df679 /mail | |
parent | defaeb38c71c8e3592b9b5e6eacc7fa8a5d478d7 (diff) | |
download | freebsd-ports-gnome-3886ddd57a3d7bcbfa0a670f1d24d3a8ac3fb8cc.tar.gz freebsd-ports-gnome-3886ddd57a3d7bcbfa0a670f1d24d3a8ac3fb8cc.tar.zst freebsd-ports-gnome-3886ddd57a3d7bcbfa0a670f1d24d3a8ac3fb8cc.zip |
Fix build with libressl.
PR: 217793
Diffstat (limited to 'mail')
-rw-r--r-- | mail/cyrus-imapd30/files/patch-imap__tls.c | 31 | ||||
-rw-r--r-- | mail/cyrus-imapd30/files/patch-imtest__imtest.c | 12 |
2 files changed, 43 insertions, 0 deletions
diff --git a/mail/cyrus-imapd30/files/patch-imap__tls.c b/mail/cyrus-imapd30/files/patch-imap__tls.c new file mode 100644 index 000000000000..393fbbff7eef --- /dev/null +++ b/mail/cyrus-imapd30/files/patch-imap__tls.c @@ -0,0 +1,31 @@ +--- imap/tls.c.orig 2016-07-22 01:55:57 UTC ++++ imap/tls.c +@@ -222,7 +222,7 @@ static RSA *tmp_rsa_cb(SSL * s __attribu + } + #endif + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + /* replacements for new 1.1 API accessors */ + /* XXX probably put these somewhere central */ + static int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) +@@ -723,7 +723,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); + +@@ -1441,7 +1443,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); diff --git a/mail/cyrus-imapd30/files/patch-imtest__imtest.c b/mail/cyrus-imapd30/files/patch-imtest__imtest.c new file mode 100644 index 000000000000..2c80ed67bc66 --- /dev/null +++ b/mail/cyrus-imapd30/files/patch-imtest__imtest.c @@ -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); + |