+/* $OpenLDAP$ */
/*
* Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
#define LDAP_VALID_SESSION 0x2
int ldo_debug;
+ /* per API call timeout */
+ struct timeval *ldo_tm_api;
+ struct timeval *ldo_tm_net;
ber_int_t ldo_version; /* version to connect at */
ber_int_t ldo_deref;
LDAP_BOOLEANS ldo_booleans; /* boolean options */
};
+
/*
* structure for tracking LDAP server host, ports, DNs, etc.
*/
/*
* in print.c
*/
-int ldap_log_printf LDAP_P((LDAP *ld, int level, const char *fmt, ...));
+int ldap_log_printf LDAP_P((LDAP *ld, int level, const char *fmt, ...))
+ LDAP_GCCATTR((format(printf, 3, 4)));
/*
* in cache.c
/*
* in open.c
*/
+int ldap_open_defconn( LDAP *ld );
int open_ldap_connection( LDAP *ld, Sockbuf *sb, const char *host, int defport,
char **krbinstancep, int async );
* in os-ip.c
*/
extern int ldap_int_tblsize;
+int ldap_int_timeval_dup( struct timeval **dest, const struct timeval *tm );
+int ldap_connect_to_host( LDAP *ld, Sockbuf *sb, const char *host,
+ unsigned long address, int port, int async );
-int ldap_connect_to_host( Sockbuf *sb, const char *host, unsigned long address, int port,
- int async );
void ldap_close_connection( Sockbuf *sb );
#ifdef HAVE_KERBEROS