aboutsummaryrefslogtreecommitdiff
path: root/mail/pop3proxy/files
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2019-01-28 19:24:50 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2019-01-28 19:24:50 +0000
commitba678193d5ca06dab366dfa24183426fcbfc6dd5 (patch)
tree0d200f0df62324d5f8fbfcf8e82b01303083c1ca /mail/pop3proxy/files
parent39e0c65db935af5d23aea20b48e1055470726b61 (diff)
downloadports-ba678193d5ca06dab366dfa24183426fcbfc6dd5.tar.gz
ports-ba678193d5ca06dab366dfa24183426fcbfc6dd5.zip
Notes
Diffstat (limited to 'mail/pop3proxy/files')
-rw-r--r--mail/pop3proxy/files/patch-Makefile.in11
-rw-r--r--mail/pop3proxy/files/patch-src_imapcommon.c35
2 files changed, 39 insertions, 7 deletions
diff --git a/mail/pop3proxy/files/patch-Makefile.in b/mail/pop3proxy/files/patch-Makefile.in
new file mode 100644
index 000000000000..72ec75dbf115
--- /dev/null
+++ b/mail/pop3proxy/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig 2004-04-21 13:30:34 UTC
++++ Makefile.in
+@@ -24,7 +24,7 @@ mandir = $(prefix)/man/man3
+ rpm_prefix = @rpm_prefix@
+
+ CC = @CC@
+-CPPFLAGS = @CPPFLAGS@ -DDEFAULT_CONFIG_FILE=\"/docsis/etc/pop3proxyd.conf\"
++CPPFLAGS = @CPPFLAGS@ -DDEFAULT_CONFIG_FILE=\"%%PREFIX%%/etc/pop3proxyd.conf\"
+ LDFLAGS = @LDFLAGS@
+ LIBS = @LIBS@
+ DEFINES = @DEFINES@
diff --git a/mail/pop3proxy/files/patch-src_imapcommon.c b/mail/pop3proxy/files/patch-src_imapcommon.c
index 50ab345e84f8..e26f99138ebd 100644
--- a/mail/pop3proxy/files/patch-src_imapcommon.c
+++ b/mail/pop3proxy/files/patch-src_imapcommon.c
@@ -1,10 +1,31 @@
---- src/imapcommon.c.orig
+--- src/imapcommon.c.orig 2005-02-01 15:21:28 UTC
+++ src/imapcommon.c
-@@ -121,6 +121,7 @@
- #include <errno.h>
+@@ -295,16 +295,24 @@ extern ICD_Struct *Get_Server_conn( char *Username,
+ int rc;
+ unsigned int Expiration;
- #include <openssl/evp.h>
-+#include <openssl/md5.h>
+- EVP_MD_CTX mdctx;
++ EVP_MD_CTX *mdctx;
+ int md_len;
- #include <pthread.h>
- #include <sys/types.h>
++#if OPENSSL_VERSION_NUMBER < 0x10100000L
++ EVP_MD_CTX mdctx_;
++#define EVP_MD_CTX_new(x) &mdctx_
++#define EVP_MD_CTX_free(x)
++#endif
++
+ Expiration = PC_Struct.cache_expiration_time;
+ memset( &Server, 0, sizeof Server );
+
+ /* need to md5 the passwd regardless, so do that now */
+- EVP_DigestInit(&mdctx, EVP_md5());
+- EVP_DigestUpdate(&mdctx, Password, strlen(Password));
+- EVP_DigestFinal(&mdctx, md5pw, &md_len);
++ mdctx = EVP_MD_CTX_new();
++ EVP_DigestInit(mdctx, EVP_md5());
++ EVP_DigestUpdate(mdctx, Password, strlen(Password));
++ EVP_DigestFinal(mdctx, md5pw, &md_len);
++ EVP_MD_CTX_free(mdctx);
+
+ /* see if we have a reusable connection available */
+ ICC_Active = NULL;