pkgsrc/mail/cyrus-imapd24/patches/patch-an
obache e0fe988ab6 Import cyrus-imapd-2.4.2 as mail/cyrus-imapd24.
IMAP (Internet Message Access Protocol) is an Internet standards-track
protocol for accessing messages (mail, bboards, news, etc). The Cyrus
IMAP server differs from other IMAP server implementations in that it
is generally intended to be run on "sealed" servers, where normal users
are not permitted to log in. The mailbox database is stored in parts of
the filesystem that are private to the Cyrus IMAP system. All user
access to mail is through the IMAP, POP3, or KPOP protocols.
2010-10-30 12:12:35 +00:00

22 lines
987 B
Text

$NetBSD: patch-an,v 1.1.1.1 2010/10/30 12:12:35 obache Exp $
--- imap/tls.c.orig 2010-10-19 03:08:28.000000000 +0000
+++ imap/tls.c
@@ -223,7 +223,7 @@ static RSA *tmp_rsa_cb(SSL * s __attribu
return (rsa_tmp);
}
-#if (OPENSSL_VERSION_NUMBER >= 0x0090800fL)
+#if (OPENSSL_VERSION_NUMBER >= 0x0090800fL) && !defined(OPENSSL_LACK_BN_CONST)
/* Logic copied from OpenSSL apps/s_server.c: give the TLS context
* DH params to work with DHE-* cipher suites. Hardcoded fallback
* in case no DH params in tls_key_file or tls_cert_file.
@@ -734,7 +734,7 @@ int tls_init_serverengine(const char
}
SSL_CTX_set_tmp_rsa_callback(s_ctx, tmp_rsa_cb);
-#if (OPENSSL_VERSION_NUMBER >= 0x0090800fL)
+#if (OPENSSL_VERSION_NUMBER >= 0x0090800fL) && !defined(OPENSSL_LACK_BN_CONST)
/* Load DH params for DHE-* key exchanges */
SSL_CTX_set_tmp_dh(s_ctx, load_dh_param(s_key_file, s_cert_file));
/* FIXME: Load ECDH params for ECDHE suites when 0.9.9 is released */