Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/openldap/dist/clients/tools add a miss #ifdef H...



details:   https://anonhg.NetBSD.org/src/rev/df8b8bf0c39d
branches:  trunk
changeset: 756290:df8b8bf0c39d
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Jul 11 00:47:36 2010 +0000

description:
add a miss #ifdef HAVE_TLS, that fixes MKCRYPTO=no build in here.

diffstat:

 external/bsd/openldap/dist/clients/tools/common.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r b733fbc5bdc9 -r df8b8bf0c39d external/bsd/openldap/dist/clients/tools/common.c
--- a/external/bsd/openldap/dist/clients/tools/common.c Sun Jul 11 00:11:05 2010 +0000
+++ b/external/bsd/openldap/dist/clients/tools/common.c Sun Jul 11 00:47:36 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: common.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $     */
+/*     $NetBSD: common.c,v 1.2 2010/07/11 00:47:36 mrg Exp $   */
 
 /* common.c - common routines for the ldap client tools */
 /* OpenLDAP: pkg/ldap/clients/tools/common.c,v 1.78.2.29 2009/09/29 21:47:37 quanah Exp */
@@ -1286,6 +1286,7 @@
                        exit( EXIT_FAILURE );
                }
 
+#ifdef HAVE_TLS
                if ( use_tls ) {
                        rc = ldap_start_tls_s( ld, NULL, NULL );
                        if ( rc != LDAP_SUCCESS ) {
@@ -1298,6 +1299,7 @@
                                }
                        }
                }
+#endif
 
                if ( nettimeout.tv_sec > 0 ) {
                        if ( ldap_set_option( ld, LDAP_OPT_NETWORK_TIMEOUT, (void *) &nettimeout )



Home | Main Index | Thread Index | Old Index