From 23f0e1561767dd8a396188e317bae5920d171ea8 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sun, 16 Aug 2015 16:38:25 +0200 Subject: Initial import of my nikola website --- .../software/Code/elektropost/auth.patch.diff-tls | 141 +++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 files/arts/software/Code/elektropost/auth.patch.diff-tls (limited to 'files/arts/software/Code/elektropost/auth.patch.diff-tls') diff --git a/files/arts/software/Code/elektropost/auth.patch.diff-tls b/files/arts/software/Code/elektropost/auth.patch.diff-tls new file mode 100644 index 0000000..2960def --- /dev/null +++ b/files/arts/software/Code/elektropost/auth.patch.diff-tls @@ -0,0 +1,141 @@ +*** auth.patch.orig Fri May 10 07:41:20 2002 +--- auth.patch Thu Jan 9 15:22:06 2014 +*************** +*** 14,42 **** + binm1.sh conf-qmail + cat binm1.sh \ + *************** +! *** 1536,1547 **** + timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o received.o \ + date822fmt.o now.o qmail.o cdb.a fd.a wait.a datetime.a getln.a \ + open.a sig.a case.a env.a stralloc.a alloc.a substdio.a error.a str.a \ + ! fs.a auto_qmail.o socket.lib + ./load qmail-smtpd rcpthosts.o commands.o timeoutread.o \ + timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o \ + received.o date822fmt.o now.o qmail.o cdb.a fd.a wait.a \ + datetime.a getln.a open.a sig.a case.a env.a stralloc.a \ + ! alloc.a substdio.a error.a str.a fs.a auto_qmail.o `cat \ + socket.lib` + + qmail-smtpd.0: \ +! --- 1540,1551 ---- + timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o received.o \ + date822fmt.o now.o qmail.o cdb.a fd.a wait.a datetime.a getln.a \ + open.a sig.a case.a env.a stralloc.a alloc.a substdio.a error.a str.a \ + ! fs.a auto_qmail.o base64.o socket.lib + ./load qmail-smtpd rcpthosts.o commands.o timeoutread.o \ + timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o \ + received.o date822fmt.o now.o qmail.o cdb.a fd.a wait.a \ + datetime.a getln.a open.a sig.a case.a env.a stralloc.a \ +! ! alloc.a substdio.a error.a str.a fs.a auto_qmail.o base64.o `cat \ + socket.lib` + + qmail-smtpd.0: \ +--- 14,44 ---- + binm1.sh conf-qmail + cat binm1.sh \ + *************** +! *** 1537,1549 **** + timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o received.o \ + date822fmt.o now.o qmail.o cdb.a fd.a wait.a datetime.a getln.a \ + open.a sig.a case.a env.a stralloc.a alloc.a substdio.a error.a str.a \ + ! fs.a auto_qmail.o socket.lib + ./load qmail-smtpd rcpthosts.o commands.o timeoutread.o \ + timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o \ ++ tls.o ssl_timeoutio.o ndelay.a -L/usr/local/ssl/lib -lssl -lcrypto \ + received.o date822fmt.o now.o qmail.o cdb.a fd.a wait.a \ + datetime.a getln.a open.a sig.a case.a env.a stralloc.a \ + ! alloc.a substdio.a error.a str.a fs.a auto_qmail.o `cat \ + socket.lib` + + qmail-smtpd.0: \ +! --- 1541,1553 ---- + timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o received.o \ + date822fmt.o now.o qmail.o cdb.a fd.a wait.a datetime.a getln.a \ + open.a sig.a case.a env.a stralloc.a alloc.a substdio.a error.a str.a \ + ! fs.a auto_qmail.o base64.o socket.lib + ./load qmail-smtpd rcpthosts.o commands.o timeoutread.o \ + timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o \ ++ tls.o ssl_timeoutio.o ndelay.a -L/usr/local/ssl/lib -lssl -lcrypto \ + received.o date822fmt.o now.o qmail.o cdb.a fd.a wait.a \ + datetime.a getln.a open.a sig.a case.a env.a stralloc.a \ +! ! alloc.a substdio.a error.a str.a fs.a auto_qmail.o base64.o `cat \ + socket.lib` + + qmail-smtpd.0: \ +*************** +*** 174,203 **** + stralloc greeting = {0}; + + *************** +! *** 229,235 **** +! } + void smtp_ehlo(arg) char *arg; + { +! ! smtp_greet("250-"); out("\r\n250-PIPELINING\r\n250 8BITMIME\r\n"); + seenmail = 0; dohelo(arg); +! } +! void smtp_rset() +! --- 241,255 ---- +! } + void smtp_ehlo(arg) char *arg; + { +! ! smtp_greet("250-"); +! ! #ifdef AUTHCRAM + ! out("\r\n250-AUTH LOGIN CRAM-MD5 PLAIN"); + ! out("\r\n250-AUTH=LOGIN CRAM-MD5 PLAIN"); + ! #else + ! out("\r\n250-AUTH LOGIN PLAIN"); + ! out("\r\n250-AUTH=LOGIN PLAIN"); + ! #endif +! ! out("\r\n250-PIPELINING\r\n250 8BITMIME\r\n"); + seenmail = 0; dohelo(arg); +- } +- void smtp_rset() + *************** + *** 394,403 **** + --- 414,639 ---- +--- 176,218 ---- + stralloc greeting = {0}; + + *************** +! *** 265,273 **** + void smtp_ehlo(arg) char *arg; + { +! smtp_greet("250-"); +! #ifdef TLS +! ! if (!ssl && (stat("control/servercert.pem",&st) == 0)) +! ! out("\r\n250-STARTTLS"); +! #endif +! out("\r\n250-PIPELINING\r\n250 8BITMIME\r\n"); + seenmail = 0; dohelo(arg); +! --- 277,302 ---- + void smtp_ehlo(arg) char *arg; + { +! smtp_greet("250-"); +! + #ifdef AUTHCRAM +! #ifdef TLS +! ! out("\r\n250-AUTH LOGIN CRAM-MD5 PLAIN"); +! ! out("\r\n250-AUTH=LOGIN CRAM-MD5 PLAIN"); +! ! if (!ssl && (stat("control/servercert.pem",&st) == 0)) +! ! out("\r\n250-STARTTLS"); +! ! #else + ! out("\r\n250-AUTH LOGIN CRAM-MD5 PLAIN"); + ! out("\r\n250-AUTH=LOGIN CRAM-MD5 PLAIN"); ++ ! #endif ++ ! #else ++ ! #ifdef TLS ++ ! out("\r\n250-AUTH LOGIN PLAIN"); ++ ! out("\r\n250-AUTH=LOGIN PLAIN"); ++ ! if (!ssl && (stat("control/servercert.pem",&st) == 0)) ++ ! out("\r\n250-STARTTLS"); + ! #else + ! out("\r\n250-AUTH LOGIN PLAIN"); + ! out("\r\n250-AUTH=LOGIN PLAIN"); + ! #endif +! #endif +! out("\r\n250-PIPELINING\r\n250 8BITMIME\r\n"); + seenmail = 0; dohelo(arg); + *************** + *** 394,403 **** + --- 414,639 ---- -- cgit v1.2.3