/*
*
* Copyright 1999 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
*
* Comments:
*
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <string.h>
#include "lber.h"
#include "ldap.h"
#include "ldap-private.h"
#include "ldap-int.h"
LDAPControl **ctrlp)
{
int rc;
return (LDAP_PARAM_ERROR);
return (LDAP_PARAM_ERROR);
return (LDAP_NO_MEMORY);
}
return (LDAP_ENCODING_ERROR);
}
return (LDAP_ENCODING_ERROR);
}
} else {
return (LDAP_ENCODING_ERROR);
}
}
return (rc);
}
{
int i, foundListControl;
return (LDAP_PARAM_ERROR);
/* only ldapv3 or higher can do virtual lists. */
return (LDAP_NOT_SUPPORTED);
}
/* find the listControl in the list of controls if it exists */
return (LDAP_NOT_SUPPORTED);
}
foundListControl = 0;
}
if (!foundListControl) {
return (LDAP_CONTROL_NOT_FOUND);
} else {
/* let local var point to the listControl */
}
/* allocate a Ber element with the contents of the list_control's */
/* struct berval */
return (LDAP_NO_MEMORY);
}
/* decode the result from the Berelement */
errcodep)) {
return (LDAP_DECODING_ERROR);
}
/* the ber encoding is no longer needed */
return (LDAP_SUCCESS);
}