Searched refs:newctrl (Results 1 – 2 of 2) sorted by relevance
130 LDAPControl *newctrl; in nsldapi_get_controls() local198 if (( newctrl = (struct ldapcontrol *)NSLDAPI_CALLOC( 1, in nsldapi_get_controls()204 (*controlsp)[curcontrols++] = newctrl; in nsldapi_get_controls()207 if ( ber_scanf( ber, "{a", &newctrl->ldctl_oid ) in nsldapi_get_controls()221 newctrl->ldctl_iscritical = (char)aint; /* XXX lossy cast */ in nsldapi_get_controls()224 newctrl->ldctl_iscritical = 0; in nsldapi_get_controls()229 if ( ber_scanf( ber, "o", &newctrl->ldctl_value ) in nsldapi_get_controls()235 (newctrl->ldctl_value).bv_val = NULL; in nsldapi_get_controls()236 (newctrl->ldctl_value).bv_len = 0; in nsldapi_get_controls()
49 LDAPControl *newctrl; in ldap_control_dup() local51 if ((newctrl = (LDAPControl *)calloc(1, sizeof(LDAPControl))) == NULL) in ldap_control_dup()54 if (ldap_control_copy_contents(newctrl, ctrl) != LDAP_SUCCESS) { in ldap_control_dup()55 free(newctrl); in ldap_control_dup()59 return(newctrl); in ldap_control_dup()