Lines Matching defs:pp_new
75 NTSTATUS sec_ace_add_sid(TALLOC_CTX *ctx, struct security_ace **pp_new, struct security_ace *old, unsigned *num, struct dom_sid *sid, uint32_t mask)
79 if (!ctx || !pp_new || !old || !sid || !num) return NT_STATUS_INVALID_PARAMETER;
83 if((pp_new[0] = talloc_zero_array(ctx, struct security_ace, *num )) == 0)
87 sec_ace_copy(&(*pp_new)[i], &old[i]);
89 (*pp_new)[i].type = SEC_ACE_TYPE_ACCESS_ALLOWED;
90 (*pp_new)[i].flags = 0;
91 (*pp_new)[i].size = SEC_ACE_HEADER_SIZE + ndr_size_dom_sid(sid, NULL, 0);
92 (*pp_new)[i].access_mask = mask;
93 (*pp_new)[i].trustee = *sid;
120 NTSTATUS sec_ace_del_sid(TALLOC_CTX *ctx, struct security_ace **pp_new, struct security_ace *old, uint32_t *num, struct dom_sid *sid)
125 if (!ctx || !pp_new || !old || !sid || !num) return NT_STATUS_INVALID_PARAMETER;
128 if((pp_new[0] = talloc_zero_array(ctx, struct security_ace, *num )) == 0)
131 pp_new[0] = NULL;
136 sec_ace_copy(&(*pp_new)[i], &old[i]);