aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHoward Chu <hyc@highlandsun.com>2010-05-28 12:23:28 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-05-28 12:23:28 +0200
commitb1c1b9bb76e01900de6ffd7e173eec3d2c65a310 (patch)
treebc1a48e093e84f19331987e8f490acada718b52c /lib
parent123f80ae5401bb4d8ab8e8ccdb6fda4ac76b0767 (diff)
LDAPS: list availability depending on SSL's presence
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c2
-rw-r--r--lib/version.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index 8f95c8a66..4d1632b66 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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