From 268dd9beaf7a8bf4f16f8ba9f346b94da32816cd Mon Sep 17 00:00:00 2001 From: Mark Valence Date: Fri, 10 Dec 1999 17:18:59 +0000 Subject: [PATCH] Condition ldap_start_tls on HAVE_TLS. --- libraries/libldap/open.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/libldap/open.c b/libraries/libldap/open.c index 2d11f59f98..99525b1bd6 100644 --- a/libraries/libldap/open.c +++ b/libraries/libldap/open.c @@ -230,6 +230,7 @@ ldap_initialize( LDAP **ldp, LDAP_CONST char *url ) int ldap_start_tls ( LDAP *ld ) { +#ifdef HAVE_TLS LDAPConn *lc; int rc; char *rspoid; @@ -253,6 +254,9 @@ ldap_start_tls ( LDAP *ld ) return rc; } return LDAP_SUCCESS; +#else + return LDAP_NOT_SUPPORTED; +#endif } int -- 2.39.5