/*
*
* 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"
{
}
return;
}
{
int i;
return;
ldap_control_free(ctrls[i]);
}
}
{
return (NULL);
return (NULL);
}
return(newctrl);
}
{
return (LDAP_PARAM_ERROR);
}
/* fill in the fields of this new control */
return (LDAP_NO_MEMORY);
}
} else {
== NULL) {
return (LDAP_NO_MEMORY);
}
}
return (LDAP_SUCCESS);
}
{
int i;
return (NULL);
}
return (NULL);
}
}
return (newctrls);
}
{
int i, rc;
if (rc == -1){
return(LDAP_ENCODING_ERROR);
}
if (rc == -1){
return(LDAP_ENCODING_ERROR);
}
if (ctrls[i]->ldctl_iscritical){
if (rc == -1){
return(LDAP_ENCODING_ERROR);
}
}
else
if (rc == -1){
return(LDAP_ENCODING_ERROR);
}
}
if (rc == -1){
return(LDAP_ENCODING_ERROR);
}
}
return (LDAP_SUCCESS);
}
/* Decode the sequence of control from the ber, return a NULL terminated list of LDAPControl* */
{
char *opaque;
int i = 0, count = 0;
tag != LBER_DEFAULT;
count ++;
}
return(NULL);
}
tag != LBER_DEFAULT;
return (NULL);
}
return (NULL);
}
aCtrl->ldctl_iscritical = 0;
return (NULL);
}
}
return (NULL);
}
} else if (ttag != LBER_DEFAULT){
return (NULL);
}
return (NULL);
}
/* add aCtrl in ctrls */
}
return (ctrls);
}
/* build an allocated LDAPv3 control. Returns an LDAP error code. */
{
int rc;
} else {
/* allocate struct berval with contents of the BER encoding */
if (freeber) {
}
if (rc == -1) {
return (LDAP_NO_MEMORY);
}
}
/* allocate the new control structure */
== NULL) {
}
return (LDAP_NO_MEMORY);
}
/* fill in the fields of this new control */
}
return (LDAP_NO_MEMORY);
}
} else {
}
return (LDAP_SUCCESS);
}