Skip to content
Snippets Groups Projects
Commit fa1c9169 authored by Guenter Knauf's avatar Guenter Knauf
Browse files

fixed warning with unused var;

removed now obsolete defines since we include now ldap headers which define these.
parent b132e865
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment