Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/ibm-public/postfix/dist/src/smtp Wrap a call to tls...



details:   https://anonhg.NetBSD.org/src/rev/e0f817a3a290
branches:  trunk
changeset: 755583:e0f817a3a290
user:      riz <riz%NetBSD.org@localhost>
date:      Thu Jun 10 17:06:01 2010 +0000

description:
Wrap a call to tls_level_lookup() in #if USE_TLS to allow
postfix to build with MKCRYPTO=no.

OK tron@

diffstat:

 external/ibm-public/postfix/dist/src/smtp/smtp.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 1e14bd239fb1 -r e0f817a3a290 external/ibm-public/postfix/dist/src/smtp/smtp.c
--- a/external/ibm-public/postfix/dist/src/smtp/smtp.c  Thu Jun 10 15:44:44 2010 +0000
+++ b/external/ibm-public/postfix/dist/src/smtp/smtp.c  Thu Jun 10 17:06:01 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smtp.c,v 1.1.1.1 2009/06/23 10:08:54 tron Exp $        */
+/*     $NetBSD: smtp.c,v 1.2 2010/06/10 17:06:01 riz Exp $     */
 
 /*++
 /* NAME
@@ -950,6 +950,7 @@
 #endif
 
     if (*var_smtp_tls_level != 0)
+#ifdef USE_TLS
        switch (tls_level_lookup(var_smtp_tls_level)) {
        case TLS_LEV_SECURE:
        case TLS_LEV_VERIFY:
@@ -969,6 +970,7 @@
            /* session_tls_init() assumes that var_smtp_tls_level is sane. */
            msg_fatal("Invalid TLS level \"%s\"", var_smtp_tls_level);
        }
+#endif
     use_tls = (var_smtp_use_tls || var_smtp_enforce_tls);
 
     /*



Home | Main Index | Thread Index | Old Index