]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-3.1-20160206
authorWietse Venema <wietse@porcupine.org>
Sat, 6 Feb 2016 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <postfix-users@dukhovni.org>
Sun, 7 Feb 2016 02:14:08 +0000 (21:14 -0500)
44 files changed:
postfix/HISTORY
postfix/WISHLIST
postfix/html/cleanup.8.html
postfix/html/postconf.5.html
postfix/html/postfix.1.html
postfix/html/smtpd.8.html
postfix/makedefs
postfix/man/man1/postfix.1
postfix/man/man5/postconf.5
postfix/man/man8/cleanup.8
postfix/man/man8/smtpd.8
postfix/proto/postconf.proto
postfix/src/cleanup/cleanup.c
postfix/src/cleanup/cleanup_init.c
postfix/src/cleanup/cleanup_milter.c
postfix/src/dns/dns_strrecord.c
postfix/src/dns/test_dns_lookup.c
postfix/src/global/conv_time.c
postfix/src/global/mail_conf_time.c
postfix/src/global/mail_version.h
postfix/src/global/smtp_reply_footer.c
postfix/src/milter/milter.c
postfix/src/milter/milter.h
postfix/src/postfix/postfix.c
postfix/src/postscreen/postscreen.h
postfix/src/postscreen/postscreen_early.c
postfix/src/smtpd/smtpd.c
postfix/src/smtpd/smtpd_milter.c
postfix/src/smtpd/smtpd_sasl_glue.c
postfix/src/tls/tls.h
postfix/src/tls/tls_client.c
postfix/src/tls/tls_server.c
postfix/src/trivial-rewrite/resolve.c
postfix/src/util/attr_print0.c
postfix/src/util/attr_print64.c
postfix/src/util/attr_print_plain.c
postfix/src/util/mac_expand.h
postfix/src/util/mac_parse.h
postfix/src/util/scan_dir.c
postfix/src/util/strcasecmp_utf8.c
postfix/src/util/sys_defs.h
postfix/src/xsasl/xsasl.h
postfix/src/xsasl/xsasl_cyrus_server.c
postfix/src/xsasl/xsasl_dovecot_server.c

index c881e8b67458ba1a76e177d8b41492edeced2ed3..e6137ac5f098601a092f8b0dbb85b0ed8cd52a04 100644 (file)
@@ -22128,3 +22128,21 @@ Apologies for any names omitted.
 
        Robustness: force html2text to produce ASCII output.  File:
        mantools/html2readme.
+
+20150118
+
+       Bitrot: OpenSSL 1.1.0-dev (aka the "master" branch) has new
+       security levels ranging from 0 to 5. Level "0" is backwards
+       compatible, and other levels are increasingly restrictive.
+       Viktor Dukhovni. Files: tls/tls_server.c, tls/tls_client.c.
+
+20161205
+
+       Portability: Postfix TLS support uses /dev/urandom if
+       available and no system-specific setting exists in sys_defs.h.
+       Files: makedefs, util/sys_defs.h.
+
+20161206
+
+       Portability: added a tls_random_source default setting for
+       MacOS X. Viktor Dukhovni. File: util/sys_defs.h.
index 28b6b880866ce7c8b356747379dbe31fcca92abb..5483dda1a81318108e943a2ce47941935c57a4c5 100644 (file)
@@ -6,6 +6,11 @@ Wish list:
 
        Disable -DSNAPSHOT and -DNONPROD in makedefs.
 
+       Fix bold "[" and "]" in manpages; these are not part of the
+       command line.
+
+       Add Google credits to manpages.
+
        Remove this file from the stable release.
 
        Things to do after the stable release:
@@ -13,12 +18,9 @@ Wish list:
        Specify WARN_UNUSED_RESULT for all library functions that
        pass, deliver, bounce or defer a delivery request.
 
-       Specify WARN_UNUSED_RESULT for mac_expand(), after making
-       smtp_reply_footer() undoable.
-
-       Type-checking wrappers for htable(3), ctable(3) and other
-       modules that take and return a void* pointer. This is
-       the next best thing to C++ style HTABLE<payload_type>.
+       Invent some kind of type-checking wrappers for htable(3),
+       ctable(3) and other modules that take and return a void*
+       pointer. We already did that for variadic functions.
 
        TLS certificate provenance: indicate whether a subject
        name/issuer are verified or not (for example, change the
index 225f590f0d29cd9ad9b51da1200bdd96f61eb777..329115f7ef3a92b3add7df2f32667ab2e64b59ca 100644 (file)
@@ -505,5 +505,10 @@ CLEANUP(8)                                                          CLEANUP(8)
        P.O. Box 704
        Yorktown Heights, NY 10598, USA
 
+       Wietse Venema
+       Google, Inc.
+       111 8th Avenue
+       New York, NY 10011, USA
+
                                                                     CLEANUP(8)
 </pre> </body> </html>
index 986a822962b766ec7930d0e9218478f1296abb9b..71efd79ab2decdfa5564f7e18ae714e9bb098772 100644 (file)
@@ -4094,7 +4094,7 @@ configuration parameter.  See there for details. </p>
 <DT><b><a name="lmtp_address_verify_target">lmtp_address_verify_target</a>
 (default: rcpt)</b></DT><DD>
 
-<p> The LMTP-specific version of the <a href="postconf.5.html#smtp_dns_support_level">smtp_dns_support_level</a>
+<p> The LMTP-specific version of the <a href="postconf.5.html#smtp_address_verify_target">smtp_address_verify_target</a>
 configuration parameter.  See there for details. </p>
 
 <p> This feature is available in Postfix 3.0 and later.  </p>
index 2107ca25fc037c50e9cbf9db6131b9b0136d3624..2faefd2edca1bfa06b762c30c2fba58d25417119 100644 (file)
@@ -60,7 +60,7 @@ POSTFIX(1)                                                          POSTFIX(1)
 
        <b>status</b> Indicate if the Postfix mail system is currently running.
 
-       <b>set-permissions [</b><i>name</i>=<i>value ...</i><b>]</b>
+       <b>set-permissions</b> [<i>name</i>=<i>value ...</i>]
               Set the ownership and permissions of Postfix related  files  and
               directories, as specified in the <b>postfix-files</b> file.
 
@@ -73,7 +73,7 @@ POSTFIX(1)                                                          POSTFIX(1)
               fix   2.0   and   earlier,  use  "<b>$<a href="postconf.5.html#config_directory">config_directory</a>/post-install</b>
               <b>set-permissions</b>".
 
-       <b>upgrade-configuration [</b><i>name</i>=<i>value ...</i><b>]</b>
+       <b>upgrade-configuration</b> [<i>name</i>=<i>value ...</i>]
               Update the <a href="postconf.5.html"><b>main.cf</b></a> and <a href="master.5.html"><b>master.cf</b></a>  files  with  information  that
               Postfix  needs  in order to run: add or update services, and add
               or update configuration parameter settings.
@@ -339,6 +339,11 @@ POSTFIX(1)                                                          POSTFIX(1)
        P.O. Box 704
        Yorktown Heights, NY 10598, USA
 
+       Wietse Venema
+       Google, Inc.
+       111 8th Avenue
+       New York, NY 10011, USA
+
        TLS support by:
        Lutz Jaenicke
        Brandenburg University of Technology
index 87d9a2e10bd57e11e09e42ed09316dd07d297b25..c0679b10048a186d7e7b7b0fb215aaf3925e40c7 100644 (file)
@@ -1292,6 +1292,11 @@ SMTPD(8)                                                              SMTPD(8)
        P.O. Box 704
        Yorktown Heights, NY 10598, USA
 
+       Wietse Venema
+       Google, Inc.
+       111 8th Avenue
+       New York, NY 10011, USA
+
        SASL support originally by:
        Till Franke
        SuSE Rhein/Main AG
index be79708eefdb739d80d04499a7771793c8992e9e..aefe63acdd511661e3b03d9809a9c7ba0b18e8c1 100644 (file)
@@ -798,6 +798,11 @@ esac
 #              ;;
 #esac
 
+#
+# We don't know all systems that have /dev/urandom, so we probe.
+#
+test -r /dev/urandom && CCARGS="$CCARGS -DHAS_DEV_URANDOM"
+
 #
 # PCRE 3.x has a pcre-config utility so we don't have to guess.
 #
index dec2fafcfdd74140588b4b99195caef70f69dfd3..c01a8445e9432203900c6460f05fda13d499fe45 100644 (file)
@@ -60,7 +60,7 @@ Re\-read configuration files. Running processes terminate at their
 earliest convenience.
 .IP \fBstatus\fR
 Indicate if the Postfix mail system is currently running.
-.IP "\fBset\-permissions\fR \fB[\fIname\fR=\fIvalue ...\fB]\fR
+.IP "\fBset\-permissions\fR [\fIname\fR=\fIvalue ...\fR]
 Set the ownership and permissions of Postfix related files and
 directories, as specified in the \fBpostfix\-files\fR file.
 .sp
@@ -72,7 +72,7 @@ already installed Postfix system.
 This feature is available in Postfix 2.1 and later.  With
 Postfix 2.0 and earlier, use "\fB$config_directory/post\-install
 set\-permissions\fR".
-.IP "\fBupgrade\-configuration\fR \fB[\fIname\fR=\fIvalue ...\fB]\fR
+.IP "\fBupgrade\-configuration\fR [\fIname\fR=\fIvalue ...\fR]
 Update the \fBmain.cf\fR and \fBmaster.cf\fR files with information
 that Postfix needs in order to run: add or update services, and add
 or update configuration parameter settings.
@@ -333,6 +333,11 @@ IBM T.J. Watson Research
 P.O. Box 704
 Yorktown Heights, NY 10598, USA
 
+Wietse Venema
+Google, Inc.
+111 8th Avenue
+New York, NY 10011, USA
+
 TLS support by:
 Lutz Jaenicke
 Brandenburg University of Technology
index 8f3666235c4016f2389900c3597f42c11e5a93e6..938fdf7f91d366bfc1170e4c5393bec1f40c7f09 100644 (file)
@@ -2525,7 +2525,7 @@ configuration parameter.  See there for details.
 .PP
 This feature is available in Postfix 2.8 and later.
 .SH lmtp_address_verify_target (default: rcpt)
-The LMTP\-specific version of the smtp_dns_support_level
+The LMTP\-specific version of the smtp_address_verify_target
 configuration parameter.  See there for details.
 .PP
 This feature is available in Postfix 3.0 and later.
index f59a0da123d6653562b4648c67bc72284fb8ca93..18d32beafb6a5cc8c50acbe2f47d77975c23f230 100644 (file)
@@ -461,3 +461,8 @@ Wietse Venema
 IBM T.J. Watson Research
 P.O. Box 704
 Yorktown Heights, NY 10598, USA
+
+Wietse Venema
+Google, Inc.
+111 8th Avenue
+New York, NY 10011, USA
index 5e4b86a562789dc7396865754c99b18f610346ed..0057c5478bc5cf3e46d1fb38e01244f558cb9dff 100644 (file)
@@ -1139,6 +1139,11 @@ IBM T.J. Watson Research
 P.O. Box 704
 Yorktown Heights, NY 10598, USA
 
+Wietse Venema
+Google, Inc.
+111 8th Avenue
+New York, NY 10011, USA
+
 SASL support originally by:
 Till Franke
 SuSE Rhein/Main AG
index 09e5f0ebb169c6ccc7865730fd3e04c45e0f3abc..21b3c47a43f2a34cd8f3faeef5848c0ac6205c3e 100644 (file)
@@ -15571,7 +15571,7 @@ SMTP/LMTP servers. </p>
 
 %PARAM lmtp_address_verify_target rcpt
 
-<p> The LMTP-specific version of the smtp_dns_support_level
+<p> The LMTP-specific version of the smtp_address_verify_target
 configuration parameter.  See there for details. </p>
 
 <p> This feature is available in Postfix 3.0 and later.  </p>
index ffd448bf2aeae29071a519203f2e3deb20eeaf8d..59b29eb97bd1913439a5a455f4e0f48556b5d4e3 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 5bae3587b151156c244f2c4b3f1916081079713d..20e14676c66618d57a8a4e829295c81e81d1f42c 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index fb371222e8a4ce9ff3009dcc1ba06f003c434624..b7a279e9758d251c99c26bb09e4ee57ece682dc7 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 370850917fe2e8c1fbd7248ae65dcba0abae1426..6b8e9893eb9350deb509f2fa13fd8379d1bbe03f 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index e927eda246495abacd66935a90fdfc7633795110..ee5863bda1827f14cd5d6cf7fed0bafdc449585a 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 313ac1fdd89ffff236dc26564b88e9f931aa7f33..78a40b56510624c5344012f6bed0bacc3583eed9 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 0d9118a36797cbce0b1aa3da9941c2eeb8464195..7829c8929a05a555f9bb1881c9ccd850d4fe91f7 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index ef709a4ba454db27570761c2cb65ce0047486ab9..542d39985d5a284df2c335fad853a4c338aa21ca 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      "20160117"
+#define MAIL_RELEASE_DATE      "20160206"
 #define MAIL_VERSION_NUMBER    "3.1"
 
 #ifdef SNAPSHOT
index ee3f3bf85388dc949cbd7d2d6a5909aa58354c6e..ad41a77936029e407b402ad129af1dd608f921a3 100644 (file)
@@ -233,7 +233,7 @@ struct test_case {
 #define BAD_SMTP       (-1)
 #define BAD_MACRO      (-2)
 
-static struct test_case test_cases[] = {
+static const struct test_case test_cases[] = {
     {"missing reply", "", NO_TEMPLATE, NO_FILTER, BAD_SMTP, 0},
     {"long smtp_code", "1234 foo", NO_TEMPLATE, NO_FILTER, BAD_SMTP, 0},
     {"short smtp_code", "12 foo", NO_TEMPLATE, NO_FILTER, BAD_SMTP, 0},
index 969feef3579217552709636ad27fead40a4a17bf..64836d46313662c9597d5f0fa8681c54539a7750 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 9ef5d35cbc835d9d8287644de8902eb1817ab3cc..9ce7f40aedc1159ecf008484ac68e627120aaf88 100644 (file)
@@ -209,6 +209,11 @@ extern void milter_free(MILTERS *);
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 #endif
index 7e50fdbc038a57d4f3d545fdfd7cc6cb0d2e243f..f304a4a3f977e58be1ef1eeb8f36e6868df21948 100644 (file)
@@ -54,7 +54,7 @@
 /*     earliest convenience.
 /* .IP \fBstatus\fR
 /*     Indicate if the Postfix mail system is currently running.
-/* .IP "\fBset-permissions\fR \fB[\fIname\fR=\fIvalue ...\fB]\fR
+/* .IP "\fBset-permissions\fR [\fIname\fR=\fIvalue ...\fR]
 /*     Set the ownership and permissions of Postfix related files and
 /*     directories, as specified in the \fBpostfix-files\fR file.
 /* .sp
@@ -66,7 +66,7 @@
 /*     This feature is available in Postfix 2.1 and later.  With
 /*     Postfix 2.0 and earlier, use "\fB$config_directory/post-install
 /*     set-permissions\fR".
-/* .IP "\fBupgrade-configuration\fR \fB[\fIname\fR=\fIvalue ...\fB]\fR
+/* .IP "\fBupgrade-configuration\fR [\fIname\fR=\fIvalue ...\fR]
 /*     Update the \fBmain.cf\fR and \fBmaster.cf\fR files with information
 /*     that Postfix needs in order to run: add or update services, and add
 /*     or update configuration parameter settings.
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
 /*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
+/*
 /*     TLS support by:
 /*     Lutz Jaenicke
 /*     Brandenburg University of Technology
index ceb2a2571c3bc53181a95f37d467a0baa2990f8d..2e4585b5c3b439b3594212f826fca01b314d0393 100644 (file)
@@ -582,4 +582,9 @@ extern void psc_endpt_lookup(VSTREAM *, PSC_ENDPT_LOOKUP_FN);
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
index c4e1a80d799b2e5110ba8fcf8fd56bc504d6ebcb..36c3d5cd6ff871ec416e107c4e8af5ec8cef28f4 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index e19a586bf63c7745515f0521c9b67c377ec29021..c34ab633ae50191e861fb2062c7e4da574ca51aa 100644 (file)
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
 /*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
+/*
 /*     SASL support originally by:
 /*     Till Franke
 /*     SuSE Rhein/Main AG
index bd0fb2c139c1eca8e2b4a48b75623dec35caea7f..5e421e9ca6d61f89442fca183ab9dc99b432951a 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index b536e82c6ae2eff146399c23df2545de43c2b63d..3dcd18fe6d42302624353990107b553953330d64 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 17c461386f5d756e2a81adacb50be9b0713a494c..768dc14599a86226f5937a54d6b3286541094ee0 100644 (file)
@@ -89,11 +89,10 @@ extern const char *str_tls_level(int);
 #endif
 
  /* Backwards compatibility with OpenSSL < 1.1.0 */
-#ifdef SSLEAY_VERSION_NUMBER
-#define OpenSSL_version_num SSLeay
-#endif
-
 #if OPENSSL_VERSION_NUMBER < 0x10100000L
+#define OpenSSL_version_num SSLeay
+#define OpenSSL_version SSLeay_version
+#define OPENSSL_VERSION SSLEAY_VERSION
 #define X509_up_ref(x) CRYPTO_add(&((x)->references), 1, CRYPTO_LOCK_X509)
 #endif
 
@@ -308,7 +307,6 @@ extern void tls_free_app_context(TLS_APPL_STATE *);
  /*
   * tls_misc.c
   */
-
 extern void tls_param_init(void);
 
  /*
index 6cb39559d9b19a4a177d1247c8f61d53d69325a7..24a4fc558715db4d96271132604acdc7c8b82216 100644 (file)
@@ -364,6 +364,11 @@ TLS_APPL_STATE *tls_client_init(const TLS_CLIENT_INIT_PROPS *props)
        return (0);
     }
 
+#ifdef SSL_SECOP_PEER
+    /* Backwards compatible security as a base for opportunistic TLS. */
+    SSL_CTX_set_security_level(client_ctx, 0);
+#endif
+
     /*
      * See the verify callback in tls_verify.c
      */
@@ -946,6 +951,12 @@ TLS_SESS_STATE *tls_client_start(const TLS_CLIENT_START_PROPS *props)
     if (protomask != 0)
        SSL_set_options(TLScontext->con, TLS_SSL_OP_PROTOMASK(protomask));
 
+#ifdef SSL_SECOP_PEER
+    /* When authenticating the peer, use 80-bit plus OpenSSL security level */
+    if (TLS_MUST_MATCH(props->tls_level))
+       SSL_set_security_level(TLScontext->con, 1);
+#endif
+
     /*
      * XXX To avoid memory leaks we must always call SSL_SESSION_free() after
      * calling SSL_set_session(), regardless of whether or not the session
index 0a78ae6535e21a4dcac2fc596637079cb2054bbd..44146bbbc0d65b4e7d7075d4748521919eadccc6 100644 (file)
@@ -446,6 +446,11 @@ TLS_APPL_STATE *tls_server_init(const TLS_SERVER_INIT_PROPS *props)
        return (0);
     }
 
+#ifdef SSL_SECOP_PEER
+    /* Backwards compatible security as a base for opportunistic TLS. */
+    SSL_CTX_set_security_level(server_ctx, 0);
+#endif
+
     /*
      * See the verify callback in tls_verify.c
      */
@@ -754,6 +759,12 @@ TLS_SESS_STATE *tls_server_start(const TLS_SERVER_START_PROPS *props)
        return (0);
     }
 
+#ifdef SSL_SECOP_PEER
+    /* When authenticating the peer, use 80-bit plus OpenSSL security level */
+    if (props->requirecert)
+       SSL_set_security_level(TLScontext->con, 1);
+#endif
+
     /*
      * Before really starting anything, try to seed the PRNG a little bit
      * more.
@@ -883,6 +894,22 @@ TLS_SESS_STATE *tls_server_post_accept(TLS_SESS_STATE *TLScontext)
                     TLScontext->peer_pkey_fprint);
        }
        X509_free(peer);
+
+       /*
+        * Give them a clue. Problems with trust chain verification are logged
+        * when the session is first negotiated, before the session is stored
+        * into the cache. We don't want mystery failures, so log the fact the
+        * real problem is to be found in the past.
+        */
+       if (!TLS_CERT_IS_TRUSTED(TLScontext)
+           && (TLScontext->log_mask & TLS_LOG_UNTRUSTED)) {
+           if (TLScontext->session_reused == 0)
+               tls_log_verify_error(TLScontext);
+           else
+               msg_info("%s: re-using session with untrusted certificate, "
+                        "look for details earlier in the log",
+                        TLScontext->namaddr);
+       }
     } else {
        TLScontext->peer_CN = mystrdup("");
        TLScontext->issuer_CN = mystrdup("");
index 2c65c2cafb38d6aa23cc2bfb2151a13ab8469d77..70c3fdcaaf92c8ad89685512c7df49d7f7c222cd 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index a916bca7b0d1643a1b32d813fb626008a86990d8..27fb7beace11f9485d7751693c4c9362b9cbdf9c 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index fc3442ec9cbf5ceab5e3641c03e72de94a0dc84a..b2181d7400dc3778bdb1d1eb30e11f9eee76b69a 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 12cde7235f2b5caf6d7abe8fe99b1be8b9dc8ef5..fef0def3d884ec38b4441133bdcf208e19d4f75e 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 5efc3965b3f070cb8c889765d9708af618986dc8..f65e63cc66066bc8b073aaa3d5e8d23bb564d7c0 100644 (file)
@@ -8,8 +8,8 @@
 /*     expand macro references in string
 /* SYNOPSIS
 /*     #include <mac_expand.h>
- DESCRIPTION
- .nf
+/* DESCRIPTION
+/* .nf
 
  /*
   * Utility library.
index e016ea79223294cdc5808a2425b9272cf600c1aa..2d7b4ad48bfb01297f8d0e8eb73361c310b4bee9 100644 (file)
@@ -8,8 +8,8 @@
 /*     locate macro references in string
 /* SYNOPSIS
 /*     #include <mac_parse.h>
- DESCRIPTION
- .nf
+/* DESCRIPTION
+/* .nf
 
  /*
   * Utility library.
index 432c9f4f6f3f349103438bd6a77387213d542984..d94c674695a03483a4f4252039a4c488bcff43e0 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 07e576a556f96a1ff4d7698adcd8459eeed1adcb..e3f20dfb4af54455d5dac4853ef13eb93db6d336 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
  /*
index 569289eb1ea5586cbb3045c237a43f40db26eaad..a33fa94fe4220e3f8f35b700d50f4fbc266328eb 100644 (file)
 #define HAVE_POSIX_GETPW_R
 #endif
 #define HAS_DLOPEN
+#define PREFERRED_RAND_SOURCE  "dev:/dev/urandom"
 #endif
 
  /*
@@ -1374,6 +1375,14 @@ extern int inet_pton(int, const char *, void *);
   */
 #ifndef NO_WATCHDOG_PIPE
 #define USE_WATCHDOG_PIPE
+#endif
+
+ /*
+  * If we don't have defined a preferred random device above, but the system
+  * has /dev/urandom, then we use that.
+  */
+#if !defined(PREFERRED_RAND_SOURCE) && defined(HAS_DEV_URANDOM)
+#define PREFERRED_RAND_SOURCE  "dev:/dev/urandom"
 #endif
 
  /*
index ead9a9b3e4430ad0ac899514ae76323265f75cd1..976a676aea93ef19e157257306b4681495d71392 100644 (file)
@@ -132,6 +132,11 @@ extern ARGV *xsasl_client_types(void);
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 #endif
index 4d61b457c4298133f656e67a641987a6ad627dd9..95c470d3292c41a74e1d6c99065a06daca80187e 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 643c843497fdb6d4a27e0e3215128cf5490eb4c8..226cf11a6bed2a4864d2610faff40e57736f26f7 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */