Module Name:    src
Committed By:   riz
Date:           Thu Jun 10 17:06:01 UTC 2010

Modified Files:
        src/external/ibm-public/postfix/dist/src/smtp: smtp.c

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

OK tron@


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
    src/external/ibm-public/postfix/dist/src/smtp/smtp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/ibm-public/postfix/dist/src/smtp/smtp.c
diff -u src/external/ibm-public/postfix/dist/src/smtp/smtp.c:1.1.1.1 src/external/ibm-public/postfix/dist/src/smtp/smtp.c:1.2
--- src/external/ibm-public/postfix/dist/src/smtp/smtp.c:1.1.1.1	Tue Jun 23 10:08:54 2009
+++ src/external/ibm-public/postfix/dist/src/smtp/smtp.c	Thu Jun 10 17:06:01 2010
@@ -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);
 
     /*

Reply via email to