aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2007-08-20 23:31:26 +0000
committerGunter Knauf <gk@gknw.de>2007-08-20 23:31:26 +0000
commitfa1c916943229dd90af06d922366f72fe54c0ec3 (patch)
tree0b14a7f23179d58cc088863e24b6c43546b2d406
parentb132e865b9940bc65407da8365eccc2e37ed1016 (diff)
fixed warning with unused var;
removed now obsolete defines since we include now ldap headers which define these.
-rw-r--r--lib/ldap.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/lib/ldap.c b/lib/ldap.c
index 56d6190e4..73d3ac0f9 100644
--- a/lib/ldap.c
+++ b/lib/ldap.c
@@ -98,19 +98,6 @@ static void _ldap_free_urldesc (LDAPURLDesc *ludp);
#define ldap_free_urldesc _ldap_free_urldesc
#endif
-#ifndef LDAP_SIZELIMIT_EXCEEDED
-#define LDAP_SIZELIMIT_EXCEEDED 4
-#endif
-#ifndef LDAP_VERSION2
-#define LDAP_VERSION2 2
-#endif
-#ifndef LDAP_VERSION3
-#define LDAP_VERSION3 3
-#endif
-#ifndef LDAP_OPT_PROTOCOL_VERSION
-#define LDAP_OPT_PROTOCOL_VERSION 0x0011
-#endif
-
#ifdef DEBUG_LDAP
#define LDAP_TRACE(x) do { \
_ldap_trace ("%u: ", __LINE__); \
@@ -135,7 +122,6 @@ CURLcode Curl_ldap(struct connectdata *conn, bool *done)
struct SessionHandle *data=conn->data;
int ldap_proto;
int ldap_ssl = 0;
- int ldap_option;
char *val_b64;
size_t val_b64_sz;
#ifdef LDAP_OPT_NETWORK_TIMEOUT
@@ -176,8 +162,9 @@ CURLcode Curl_ldap(struct connectdata *conn, bool *done)
server = ldap_sslinit(conn->host.name, (int)conn->port, 1);
ldap_set_option(server, LDAP_OPT_SSL, LDAP_OPT_ON);
#else
- char* ldap_ca = NULL; /* XXX fix me: need to get CA path option here! */
+ int ldap_option;
int verify_cert = 0; /* XXX fix me: need to get insecure option here! */
+ char* ldap_ca = NULL; /* XXX fix me: need to get CA path option here! */
#if defined(CURL_HAS_NOVELL_LDAPSDK)
rc = ldapssl_client_init(NULL, NULL);
if (rc != LDAP_SUCCESS) {