From: Mark Valence Date: Fri, 10 Dec 1999 17:18:59 +0000 (+0000) Subject: Condition ldap_start_tls on HAVE_TLS. X-Git-Tag: UCDATA_2_4~104 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=268dd9beaf7a8bf4f16f8ba9f346b94da32816cd;p=openldap Condition ldap_start_tls on HAVE_TLS. --- 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