]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-2.4-20070131
authorWietse Venema <wietse@porcupine.org>
Wed, 31 Jan 2007 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <viktor@dukhovni.org>
Tue, 5 Feb 2013 06:32:53 +0000 (06:32 +0000)
postfix/HISTORY
postfix/conf/master.cf
postfix/conf/postfix-files
postfix/mantools/postlink
postfix/src/global/dict_ldap.c
postfix/src/global/mail_version.h
postfix/src/tls/tls_misc.c
postfix/src/tlsmgr/tlsmgr.c

index 5c077de5dd94f4026aba2c4bdea5f737311d59b4..342974176e5ea49d8be2ab8015dbde261c15a8c9 100644 (file)
@@ -13160,6 +13160,12 @@ Apologies for any names omitted.
        Disable workaround pending completion of updated TLS]
        support in non-production releases.
 
+20070131
+
+       Assorted code cleanup, portability fixes/workarounds, and
+       minor updates: global/dict_ldap.c, mantools/postlink,
+       tlsmgs/tlsmgr.c, conf/master.cf. LaMont Jones.
+
 Wish list:
 
        Update message content length when adding/removing headers.
index 77daf91c64e42575db130a1f01ff2a955aaa92a0..29ea1a0436e093d8616fd0bbab0b19421da3ebbf 100644 (file)
@@ -55,26 +55,45 @@ scache        unix  -       -       n       -       1       scache
 # maildrop. See the Postfix MAILDROP_README file for details.
 # Also specify in main.cf: maildrop_destination_recipient_limit=1
 #
-maildrop  unix  -       n       n       -       -       pipe
-  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
+#maildrop  unix  -       n       n       -       -       pipe
+#  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
+#
+# ====================================================================
 #
 # The Cyrus deliver program has changed incompatibly, multiple times.
 #
-old-cyrus unix  -       n       n       -       -       pipe
-  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
+#old-cyrus unix  -       n       n       -       -       pipe
+#  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
+#
+# ====================================================================
+#
 # Cyrus 2.1.5 (Amos Gouaux)
 # Also specify in main.cf: cyrus_destination_recipient_limit=1
-cyrus     unix  -       n       n       -       -       pipe
-  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
+#
+#cyrus     unix  -       n       n       -       -       pipe
+#  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
+#
+# ====================================================================
 #
 # See the Postfix UUCP_README file for configuration details.
 #
-uucp      unix  -       n       n       -       -       pipe
-  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
+#uucp      unix  -       n       n       -       -       pipe
+#  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
+#
+# ====================================================================
 #
 # Other external delivery methods.
 #
-ifmail    unix  -       n       n       -       -       pipe
-  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
-bsmtp     unix  -       n       n       -       -       pipe
-  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
+#ifmail    unix  -       n       n       -       -       pipe
+#  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
+#
+#bsmtp     unix  -       n       n       -       -       pipe
+#  flags=Fq. user=bsmtp argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
+#
+#scalemail-backend unix -       n       n       -       2       pipe
+#  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
+#  ${nexthop} ${user} ${extension}
+#
+#mailman   unix  -       n       n       -       -       pipe
+#  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
+#  ${nexthop} ${user}
index 0f1a23b1b3f152bf9496bdbbb08411e888687944..b0a0bfe6866faa0e9f7b32bcb9c45856abbfa614 100644 (file)
@@ -311,6 +311,7 @@ $html_directory/SMTPD_ACCESS_README.html:f:root:-:644
 $html_directory/SMTPD_POLICY_README.html:f:root:-:644
 $html_directory/SMTPD_PROXY_README.html:f:root:-:644
 $html_directory/STANDARD_CONFIGURATION_README.html:f:root:-:644
+$html_directory/TLS_LEGACY_README.html:f:root:-:644
 $html_directory/TLS_README.html:f:root:-:644
 $html_directory/TUNING_README.html:f:root:-:644
 $html_directory/ULTRIX_README.html:f:root:-:644
index 10ace1b3b3ad780e9750c000ea2b826010b93f00..b81a59ac2d1e2f25052c84170f3d2c08b326a2aa 100755 (executable)
@@ -8,15 +8,19 @@ LINE:
 while (<>) {
     chop;
 
-    # Glue together words that were broken across line breaks.
-
-  Again:
-    if (/-[<\/bB>]*$/) {
-       $_ .= "\n";
-       $len1 = length;
-       $_ .= <>;
-       chop if $len1 < length;
-       goto Again;
+    # Glue together words that were broken across line breaks.  The
+    # "label: if_block" was generated by a sed-to-perl converter; the
+    # braces around this are a workaround for buggy implementations.
+
+    {
+      Again:
+       if (/-[<\/bB>]*$/) {
+           $_ .= "\n";
+           $len1 = length;
+           $_ .= <>;
+           chop if $len1 < length;
+           goto Again;
+       }
     }
     if (/<[Aa] *[HhNn][RrAa][EeMm][FfEe] *=/) {
        print;
index b373301e2f8adc204b4c1d75e171f3c8e02be142..efd8c39271e794a5149018f6c8ef32298516d400 100644 (file)
@@ -266,29 +266,30 @@ typedef struct {
 
 static void rfc2253_quote(DICT *unused, const char *name, VSTRING *result)
 {
-    unsigned char *sub = (unsigned char *)name;
-    size_t len;
+    const char *sub = name;
+    size_t  len;
 
     /*
-     * The RFC only requires quoting of a leading or trailing space,
-     * but it is harmless to quote whitespace everywhere. Similarly,
-     * we quote all '#' characters, even though only the leading '#'
-     * character requires quoting per the RFC.
+     * The RFC only requires quoting of a leading or trailing space, but it
+     * is harmless to quote whitespace everywhere. Similarly, we quote all
+     * '#' characters, even though only the leading '#' character requires
+     * quoting per the RFC.
      */
     while (*sub)
-       if ((len = strcspn(sub, " \t\"#+,;<>\\")) > 0) {
+       if ((len = strcspn(sub, " \t\"#+,;<>\\")) > 0) {
            vstring_strncat(result, sub, len);
            sub += len;
        } else
-           vstring_sprintf_append(result, "\\%02X", *(sub++));
+           vstring_sprintf_append(result, "\\%02X",
+                                  *((const unsigned char *) sub++));
 }
 
 /* rfc2254_quote - Quote input key for safe inclusion in the query filter */
 
 static void rfc2254_quote(DICT *unused, const char *name, VSTRING *result)
 {
-    unsigned char *sub = (unsigned char *)name;
-    size_t len;
+    const char *sub = name;
+    size_t  len;
 
     /*
      * If any characters in the supplied address should be escaped per RFC
@@ -298,11 +299,12 @@ static void rfc2254_quote(DICT *unused, const char *name, VSTRING *result)
      * parameter and then this more comprehensive mechanism.
      */
     while (*sub)
-       if ((len = strcspn(sub, "*()\\")) > 0) {
+       if ((len = strcspn(sub, "*()\\")) > 0) {
            vstring_strncat(result, sub, len);
            sub += len;
        } else
-           vstring_sprintf_append(result, "\\%02X", *(sub++));
+           vstring_sprintf_append(result, "\\%02X",
+                                  *((const unsigned char *) sub++));
 }
 
 static BINHASH *conn_hash = 0;
@@ -355,7 +357,6 @@ static int dict_ldap_set_errno(LDAP * ld, int rc)
 
 static int dict_ldap_result(LDAP *ld, int msgid, int timeout, LDAPMessage **res)
 {
-    int     rc;
     struct timeval mytimeval;
 
     mytimeval.tv_sec = timeout;
index b53bb3d17f74dd96526b31d6a6972a6839f662ad..99c1fcd159820c652b32dbcc6498f68b323406b8 100644 (file)
@@ -20,7 +20,7 @@
   * Patches change both the patchlevel and the release date. Snapshots have no
   * patchlevel; they change the release date only.
   */
-#define MAIL_RELEASE_DATE      "20070125"
+#define MAIL_RELEASE_DATE      "20070131"
 #define MAIL_VERSION_NUMBER    "2.4"
 
 #ifdef SNAPSHOT
index 3030ca18135fa14971c7987d6eea6efde2cb4f97..ee3fe919710e3713f9715f58e315c45174d17879 100644 (file)
@@ -152,6 +152,8 @@ NAME_CODE tls_cipher_level_table[] = {
     0, TLS_CIPHER_NONE,
 };
 
+#if 0
+
 typedef struct {
     char   *algorithm;
     char   *exclusion;
@@ -187,6 +189,8 @@ static cipher_probe cipher_probe_list[] = {
     0, 0,
 };
 
+#endif
+
  /*
   * Parsed OpenSSL version number.
   */
@@ -204,9 +208,11 @@ const char *tls_cipher_list(int cipher_level,...)
 {
     const char *myname = "tls_cipher_list";
     static VSTRING *buf;
+#if 0
     static ARGV *exclude_unavailable;
     cipher_probe *probe;
     int     i;
+#endif
     va_list ap;
     const char *exclude;
     char   *tok;
index bb483fa4dec974719a6a266da43485a875c48b46..ed1018ec11d959bbac3083ed9b18fedad082d342 100644 (file)
   * Tunables.
   */
 char   *var_tls_rand_source;
+int     var_tls_daemon_rand_bytes;
 int     var_tls_rand_bytes;
 int     var_tls_reseed_period;
 int     var_tls_prng_exch_period;