Move ldap_control_dup() to ldap_pvt.h

This commit is contained in:
Kurt Zeilenga 2002-09-04 02:14:12 +00:00
parent 4b48c05a8e
commit a83cc88edd
3 changed files with 10 additions and 8 deletions

View File

@ -34,8 +34,7 @@
#include "ldif.h"
#include "ldap_defaults.h"
#include "ldap_log.h"
/* needed for ldap_control_dup(); we should declare it somewhere else ... */
#include "../../libraries/libldap/ldap-int.h"
#include "ldap_pvt.h"
static char *prog;
static char *binddn = NULL;

View File

@ -121,6 +121,15 @@ LDAP_F (void) ldap_pvt_hex_unescape LDAP_P(( char *s ));
#define LDAP_HEX(c) (LDAP_DIGIT(c) || \
LDAP_HEXLOWER(c) || LDAP_HEXUPPER(c))
/* controls.c */
struct ldapcontrol;
LDAP_F (struct ldapcontrol *) ldap_control_dup LDAP_P((
const struct ldapcontrol *ctrl ));
LDAP_F (struct ldapcontrol **) ldap_controls_dup LDAP_P((
struct ldapcontrol *const *ctrls ));
#ifdef HAVE_CYRUS_SASL
/* cyrus.c */
struct sasl_security_properties; /* avoid pulling in <sasl.h> */

View File

@ -370,12 +370,6 @@ LDAP_F (int) ldap_check_cache LDAP_P(( LDAP *ld, ber_tag_t msgtype, BerElement *
/*
* in controls.c
*/
LDAP_F (LDAPControl *) ldap_control_dup LDAP_P((
const LDAPControl *ctrl ));
LDAP_F (LDAPControl **) ldap_controls_dup LDAP_P((
LDAPControl *const *ctrls ));
LDAP_F (int) ldap_int_get_controls LDAP_P((
BerElement *be,
LDAPControl ***ctrlsp));