diff options
author | Howard Chu <hyc@highlandsun.com> | 2010-05-28 12:23:28 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-05-28 12:23:28 +0200 |
commit | b1c1b9bb76e01900de6ffd7e173eec3d2c65a310 (patch) | |
tree | bc1a48e093e84f19331987e8f490acada718b52c | |
parent | 123f80ae5401bb4d8ab8e8ccdb6fda4ac76b0767 (diff) |
LDAPS: list availability depending on SSL's presence
-rw-r--r-- | configure.ac | 9 | ||||
-rw-r--r-- | lib/url.c | 2 | ||||
-rw-r--r-- | lib/version.c | 2 |
3 files changed, 7 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index b0bc91cb9..774fd95ea 100644 --- a/configure.ac +++ b/configure.ac @@ -864,6 +864,7 @@ if test x$CURL_DISABLE_LDAP != x1 ; then curl_ldap_msg="enabled (OpenLDAP)" if test "x$ac_cv_func_ldap_init_fd" = x""yes; then AC_DEFINE(USE_OPENLDAP, 1, [Use OpenLDAP-specific code]) + AC_SUBST(USE_OPENLDAP, [1]) fi fi fi @@ -2700,11 +2701,11 @@ fi if test "x$CURL_DISABLE_TELNET" != "x1"; then SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET" fi -if test "x$CURL_DISABLE_LDAP" != "x1"; then +if test "x$CURL_DISABLE_LDAP" != "x1" -o "x$USE_OPENLDAP" = "x1"; then SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP" -fi -if test "x$CURL_DISABLE_LDAPS" != "x1"; then - SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS" + if test "x$CURL_DISABLE_LDAPS" != "x1" -o "x$USE_OPENLDAP$SSL_ENABLED" = "x11"; then + SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS" + fi fi if test "x$CURL_DISABLE_DICT" != "x1"; then SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT" @@ -183,7 +183,7 @@ static const struct Curl_handler * const protocols[] = { #if !defined(CURL_DISABLE_LDAP) || defined(USE_OPENLDAP) &Curl_handler_ldap, -#if defined(HAVE_LDAP_SSL) || defined(USE_OPENLDAP) +#if defined(HAVE_LDAP_SSL) || (defined(USE_OPENLDAP) && defined(USE_SSL)) &Curl_handler_ldaps, #endif #endif diff --git a/lib/version.c b/lib/version.c index f9cc1f7d9..d482bff1e 100644 --- a/lib/version.c +++ b/lib/version.c @@ -172,7 +172,7 @@ static const char * const protocols[] = { #endif #if !defined(CURL_DISABLE_LDAP) || defined(USE_OPENLDAP) "ldap", -#if defined(HAVE_LDAP_SSL) || defined(USE_OPENLDAP) +#if defined(HAVE_LDAP_SSL) || (defined(USE_OPENLDAP) && defined(USE_SSL)) "ldaps", #endif #endif |