From: Howard Chu Date: Fri, 18 Feb 2005 04:20:56 +0000 (+0000) Subject: Fix if HAVE_TLS is missing X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~164 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=beaeb5ed5ce2433099b6de157f1d62de704eab5c;p=openldap Fix if HAVE_TLS is missing --- diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c index 0436f98da7..12ea18a8e0 100644 --- a/servers/slapd/back-ldap/bind.c +++ b/servers/slapd/back-ldap/bind.c @@ -246,6 +246,7 @@ ldap_back_prepare_conn( struct ldapconn **lcp, Operation *op, SlapReply *rs, lda ldap_set_option( ld, LDAP_OPT_REFERRALS, LDAP_OPT_ON ); } +#ifdef HAVE_TLS /* start TLS ("start-tls"/"try-start-tls" statements) */ if ( ( LDAP_BACK_USE_TLS( li ) || ( op->o_conn->c_is_tls && LDAP_BACK_PROPAGATE_TLS( li ) ) ) && !ldap_is_ldaps_url( li->url ) ) { @@ -310,6 +311,7 @@ retry:; goto error_return; } } +#endif if ( *lcp == NULL ) { *lcp = (struct ldapconn *)ch_malloc( sizeof( struct ldapconn ) );