Searched refs:newctrl (Results 1 - 2 of 2) sorted by relevance

/osnet-11/usr/src/lib/libldap5/sources/ldap/common/
H A Dcontrol.c130 LDAPControl *newctrl; local
198 if (( newctrl = (struct ldapcontrol *)NSLDAPI_CALLOC( 1,
204 (*controlsp)[curcontrols++] = newctrl;
207 if ( ber_scanf( ber, "{a", &newctrl->ldctl_oid )
221 newctrl->ldctl_iscritical = (char)aint; /* XXX lossy cast */
224 newctrl->ldctl_iscritical = 0;
229 if ( ber_scanf( ber, "o", &newctrl->ldctl_value )
235 (newctrl->ldctl_value).bv_val = NULL;
236 (newctrl->ldctl_value).bv_len = 0;
/osnet-11/usr/src/lib/libldap4/common/
H A Dcontrols.c49 LDAPControl *newctrl; local
51 if ((newctrl = (LDAPControl *)calloc(1, sizeof(LDAPControl))) == NULL)
54 if (ldap_control_copy_contents(newctrl, ctrl) != LDAP_SUCCESS) {
55 free(newctrl);
59 return(newctrl);

Completed in 16 milliseconds