Lines Matching defs:mem_ctx
10 TALLOC_CTX *mem_ctx = NULL;
21 mem_ctx = talloc_init("lsapriv");
38 if(!cac_LsaOpenPolicy(hnd, mem_ctx, &lop)) {
50 while(cac_LsaEnumPrivileges(hnd, mem_ctx, &ep)) {
67 ar.in.name = talloc_strdup(mem_ctx, tmp);
70 if(!cac_LsaEnumAccountRights(hnd, mem_ctx, &ar)) {
88 ap.in.priv_names = talloc_array(mem_ctx, char *, ap.in.num_privs);
98 ap.in.priv_names[i] = talloc_strdup(mem_ctx, tmp);
101 if(!cac_LsaSetPrivileges(hnd, mem_ctx, &ap)) {
107 talloc_destroy(mem_ctx);