}
write_ldif( LDIF_PUT_VALUE, "dn", bv.bv_val, bv.bv_len );
- rc = ldap_int_get_controls( ber, &ctrls );
-
+ rc = ldap_pvt_get_controls( ber, &ctrls );
if( rc != LDAP_SUCCESS ) {
fprintf(stderr, _("print_entry: %d\n"), rc );
- ldap_perror( ld, "ldap_get_entry_controls" );
+ ldap_perror( ld, "ldap_pvt_get_controls" );
exit( EXIT_FAILURE );
}
LDAP_F (struct ldapcontrol **) ldap_controls_dup LDAP_P((
struct ldapcontrol *const *ctrls ));
+LDAP_F (int) ldap_int_get_controls LDAP_P((
+ BerElement *be,
+ struct ldapcontrol ***ctrlsp));
#ifdef HAVE_CYRUS_SASL
/* cyrus.c */
return LDAP_SUCCESS;
}
-int ldap_int_get_controls(
+int ldap_pvt_get_controls(
BerElement *ber,
LDAPControl ***ctrls )
{
}
if( tag != LBER_ERROR ) {
- int rc = ldap_int_get_controls( ber, serverctrls );
+ int rc = ldap_pvt_get_controls( ber, serverctrls );
if( rc != LDAP_SUCCESS ) {
tag = LBER_ERROR;
goto free_and_return;
}
- rc = ldap_int_get_controls( ber, serverctrls );
+ rc = ldap_pvt_get_controls( ber, serverctrls );
free_and_return:
ber_free( ber, 0 );
goto cleanup_and_return;
}
- rc = ldap_int_get_controls( &be, sctrls );
+ rc = ldap_pvt_get_controls( &be, sctrls );
cleanup_and_return:
if( rc != LDAP_SUCCESS ) {
/*
* in controls.c
*/
-LDAP_F (int) ldap_int_get_controls LDAP_P((
- BerElement *be,
- LDAPControl ***ctrlsp));
-
LDAP_F (int) ldap_int_put_controls LDAP_P((
LDAP *ld,
LDAPControl *const *ctrls,
goto free_and_return;
}
- rc = ldap_int_get_controls( &be, serverctrls );
+ rc = ldap_pvt_get_controls( &be, serverctrls );
free_and_return:
ber_scanf( ber, "{xx" );
- rc = ldap_int_get_controls( ber, &rctrls );
-
+ rc = ldap_pvt_get_controls( ber, &rctrls );
if ( rc != LDAP_SUCCESS ) {
#ifdef NEW_LOGGING
LDAP_LOG( OPERATION, ERR,