From d44b9bfa19c71e8aa241b67d932a8387262ac53d Mon Sep 17 00:00:00 2001 From: Chris Rees Date: Sat, 14 Apr 2012 15:49:42 +0000 Subject: Fix a couple of issues: - Make compile with old and new openssl - Do not try to call git to get the version number - Fix compile on FreeBSD 8.1 - Change maintainer email address PR: ports/165775 Submitted by: bz --- mail/dma/files/patch-crypto.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'mail/dma/files/patch-crypto.c') diff --git a/mail/dma/files/patch-crypto.c b/mail/dma/files/patch-crypto.c index b4fe877a54cd..2d0e229f5547 100644 --- a/mail/dma/files/patch-crypto.c +++ b/mail/dma/files/patch-crypto.c @@ -1,11 +1,14 @@ ---- ./crypto.c.orig 2012-01-03 13:54:05.000000000 +0000 -+++ ./crypto.c 2012-01-24 22:57:41.000000000 +0000 -@@ -80,7 +80,7 @@ +--- crypto.c.orig 2012-01-03 13:54:05.000000000 +0000 ++++ crypto.c 2012-03-06 23:50:42.000000000 +0000 +@@ -80,7 +80,11 @@ int smtp_init_crypto(int fd, int feature) { SSL_CTX *ctx = NULL; -- const SSL_METHOD *meth = NULL; ++#if (OPENSSL_VERSION_NUMBER >= 0x00909000L) + const SSL_METHOD *meth = NULL; ++#else + SSL_METHOD *meth = NULL; ++#endif X509 *cert; int error; -- cgit v1.2.3