]> git.sur5r.net Git - openldap/commitdiff
Condition ldap_start_tls on HAVE_TLS.
authorMark Valence <mrv@openldap.org>
Fri, 10 Dec 1999 17:18:59 +0000 (17:18 +0000)
committerMark Valence <mrv@openldap.org>
Fri, 10 Dec 1999 17:18:59 +0000 (17:18 +0000)
libraries/libldap/open.c

index 2d11f59f98bcb3c57e687e2f7481d41dc16ca0a2..99525b1bd6122136237ab05e7fa72d7af8386035 100644 (file)
@@ -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