mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-06 11:41:52 +00:00
better macro checking.
Reported by: nork
This commit is contained in:
parent
42bf4c920b
commit
8c616ad339
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=569547
@ -2,7 +2,7 @@
|
||||
|
||||
PORTNAME= cyrus-imapd
|
||||
PORTVERSION= 2.5.17
|
||||
#PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= https://github.com/cyrusimap/cyrus-imapd/releases/download/${PORTNAME}-${PORTVERSION}/
|
||||
PKGNAMESUFFIX= 25
|
||||
|
@ -4,9 +4,9 @@
|
||||
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)
|
||||
+#if defined(SSL_OP_NO_COMPRESSION)
|
||||
off |= SSL_OP_NO_COMPRESSION; /* Disable TLS compression */
|
||||
+#endif // (OPENSSL_VERSION_NUMBER >= 0x1000000fL)
|
||||
+#endif
|
||||
|
||||
const char *tls_versions = config_getstring(IMAPOPT_TLS_VERSIONS);
|
||||
|
||||
@ -14,9 +14,9 @@
|
||||
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)
|
||||
+#if defined(SSL_OP_NO_COMPRESSION)
|
||||
off |= SSL_OP_NO_COMPRESSION; /* Disable TLS compression */
|
||||
+#endif // (OPENSSL_VERSION_NUMBER >= 0x1000000fL)
|
||||
+#endif
|
||||
|
||||
SSL_CTX_set_options(c_ctx, off);
|
||||
SSL_CTX_set_info_callback(c_ctx, apps_ssl_info_callback);
|
||||
|
@ -4,9 +4,9 @@
|
||||
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)
|
||||
+#if defined(SSL_OP_NO_COMPRESSION)
|
||||
off |= SSL_OP_NO_COMPRESSION; /* Disable TLS compression */
|
||||
+#endif // (OPENSSL_VERSION_NUMBER >= 0x1000000fL)
|
||||
+#endif
|
||||
SSL_CTX_set_options(tls_ctx, off);
|
||||
SSL_CTX_set_info_callback(tls_ctx, apps_ssl_info_callback);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
PORTNAME= cyrus-imapd
|
||||
PORTVERSION= 3.0.15
|
||||
#PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= https://github.com/cyrusimap/cyrus-imapd/releases/download/${PORTNAME}-${PORTVERSION}/
|
||||
PKGNAMESUFFIX= 30
|
||||
|
@ -4,9 +4,9 @@
|
||||
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)
|
||||
+#if defined(SSL_OP_NO_COMPRESSION)
|
||||
off |= SSL_OP_NO_COMPRESSION; /* Disable TLS compression */
|
||||
+#endif // (OPENSSL_VERSION_NUMBER >= 0x1000000fL)
|
||||
+#endif
|
||||
|
||||
const char *tls_versions = config_getstring(IMAPOPT_TLS_VERSIONS);
|
||||
|
||||
@ -14,9 +14,9 @@
|
||||
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)
|
||||
+#if defined(SSL_OP_NO_COMPRESSION)
|
||||
off |= SSL_OP_NO_COMPRESSION; /* Disable TLS compression */
|
||||
+#endif // (OPENSSL_VERSION_NUMBER >= 0x1000000fL)
|
||||
+#endif
|
||||
|
||||
SSL_CTX_set_options(c_ctx, off);
|
||||
SSL_CTX_set_info_callback(c_ctx, apps_ssl_info_callback);
|
||||
|
@ -4,9 +4,9 @@
|
||||
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)
|
||||
+#if defined(SSL_OP_NO_COMPRESSION)
|
||||
off |= SSL_OP_NO_COMPRESSION; /* Disable TLS compression */
|
||||
+#endif // (OPENSSL_VERSION_NUMBER >= 0x1000000fL)
|
||||
+#endif
|
||||
SSL_CTX_set_options(tls_ctx, off);
|
||||
SSL_CTX_set_info_callback(tls_ctx, apps_ssl_info_callback);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
PORTNAME= cyrus-imapd
|
||||
PORTVERSION= 3.2.6
|
||||
#PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= https://github.com/cyrusimap/cyrus-imapd/releases/download/${PORTNAME}-${PORTVERSION}/
|
||||
PKGNAMESUFFIX= 32
|
||||
|
@ -4,9 +4,9 @@
|
||||
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)
|
||||
+#if defined(SSL_OP_NO_COMPRESSION)
|
||||
off |= SSL_OP_NO_COMPRESSION; /* Disable TLS compression */
|
||||
+#endif // (OPENSSL_VERSION_NUMBER >= 0x1000000fL)
|
||||
+#endif
|
||||
|
||||
const char *tls_versions = config_getstring(IMAPOPT_TLS_VERSIONS);
|
||||
|
||||
@ -14,9 +14,9 @@
|
||||
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)
|
||||
+#if defined(SSL_OP_NO_COMPRESSION)
|
||||
off |= SSL_OP_NO_COMPRESSION; /* Disable TLS compression */
|
||||
+#endif // (OPENSSL_VERSION_NUMBER >= 0x1000000fL)
|
||||
+#endif
|
||||
|
||||
SSL_CTX_set_options(c_ctx, off);
|
||||
SSL_CTX_set_info_callback(c_ctx, apps_ssl_info_callback);
|
||||
|
@ -4,9 +4,9 @@
|
||||
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)
|
||||
+#if defined(SSL_OP_NO_COMPRESSION)
|
||||
off |= SSL_OP_NO_COMPRESSION; /* Disable TLS compression */
|
||||
+#endif // (OPENSSL_VERSION_NUMBER >= 0x1000000fL)
|
||||
+#endif
|
||||
SSL_CTX_set_options(tls_ctx, off);
|
||||
SSL_CTX_set_info_callback(tls_ctx, apps_ssl_info_callback);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user