Lines Matching refs:ctx

44 enum idmap_error_code sss_idmap_bin_sid_to_dom_sid(struct sss_idmap_ctx *ctx,
55 CHECK_IDMAP_CTX(ctx, IDMAP_CONTEXT_INVALID);
59 dom_sid = ctx->alloc_func(sizeof(struct sss_dom_sid), ctx->alloc_pvt);
100 ctx->free_func(dom_sid, ctx->alloc_pvt);
105 enum idmap_error_code sss_idmap_dom_sid_to_bin_sid(struct sss_idmap_ctx *ctx,
117 CHECK_IDMAP_CTX(ctx, IDMAP_CONTEXT_INVALID);
125 bin_sid = ctx->alloc_func(length, ctx->alloc_pvt);
156 ctx->free_func(bin_sid, ctx->alloc_pvt);
161 enum idmap_error_code sss_idmap_dom_sid_to_sid(struct sss_idmap_ctx *ctx,
178 sid_buf = ctx->alloc_func(sid_buf_len, ctx->alloc_pvt);
219 ctx->free_func(sid_buf, ctx->alloc_pvt);
225 enum idmap_error_code sss_idmap_sid_to_dom_sid(struct sss_idmap_ctx *ctx,
235 CHECK_IDMAP_CTX(ctx, IDMAP_CONTEXT_INVALID);
241 dom_sid = ctx->alloc_func(sizeof(struct sss_dom_sid), ctx->alloc_pvt);
321 ctx->free_func(dom_sid, ctx->alloc_pvt);
329 enum idmap_error_code sss_idmap_sid_to_bin_sid(struct sss_idmap_ctx *ctx,
339 err = sss_idmap_sid_to_dom_sid(ctx, sid, &dom_sid);
344 err = sss_idmap_dom_sid_to_bin_sid(ctx, dom_sid, &bin_sid, &length);
354 ctx->free_func(dom_sid, ctx->alloc_pvt);
356 ctx->free_func(bin_sid, ctx->alloc_pvt);
362 enum idmap_error_code sss_idmap_bin_sid_to_sid(struct sss_idmap_ctx *ctx,
371 err = sss_idmap_bin_sid_to_dom_sid(ctx, bin_sid, length, &dom_sid);
376 err = sss_idmap_dom_sid_to_sid(ctx, dom_sid, &sid);
385 ctx->free_func(dom_sid, ctx->alloc_pvt);
387 ctx->free_func(sid, ctx->alloc_pvt);
393 enum idmap_error_code sss_idmap_sid_to_smb_sid(struct sss_idmap_ctx *ctx,
401 err = sss_idmap_sid_to_dom_sid(ctx, sid, &dom_sid);
406 err = sss_idmap_dom_sid_to_smb_sid(ctx, dom_sid, &smb_sid);
415 ctx->free_func(dom_sid, ctx->alloc_pvt);
417 ctx->free_func(smb_sid, ctx->alloc_pvt);
423 enum idmap_error_code sss_idmap_smb_sid_to_sid(struct sss_idmap_ctx *ctx,
431 err = sss_idmap_smb_sid_to_dom_sid(ctx, smb_sid, &dom_sid);
436 err = sss_idmap_dom_sid_to_sid(ctx, dom_sid, &sid);
445 ctx->free_func(dom_sid, ctx->alloc_pvt);
447 ctx->free_func(sid, ctx->alloc_pvt);
453 enum idmap_error_code sss_idmap_dom_sid_to_smb_sid(struct sss_idmap_ctx *ctx,
460 smb_sid = ctx->alloc_func(sizeof(struct dom_sid), ctx->alloc_pvt);
480 enum idmap_error_code sss_idmap_smb_sid_to_dom_sid(struct sss_idmap_ctx *ctx,
487 dom_sid = ctx->alloc_func(sizeof(struct sss_dom_sid), ctx->alloc_pvt);
507 enum idmap_error_code sss_idmap_bin_sid_to_smb_sid(struct sss_idmap_ctx *ctx,
516 err = sss_idmap_bin_sid_to_dom_sid(ctx, bin_sid, length, &dom_sid);
521 err = sss_idmap_dom_sid_to_smb_sid(ctx, dom_sid, &smb_sid);
530 ctx->free_func(dom_sid, ctx->alloc_pvt);
532 ctx->free_func(smb_sid, ctx->alloc_pvt);
538 enum idmap_error_code sss_idmap_smb_sid_to_bin_sid(struct sss_idmap_ctx *ctx,
548 err = sss_idmap_smb_sid_to_dom_sid(ctx, smb_sid, &dom_sid);
553 err = sss_idmap_dom_sid_to_bin_sid(ctx, dom_sid, &bin_sid, &length);
563 ctx->free_func(dom_sid, ctx->alloc_pvt);
565 ctx->free_func(bin_sid, ctx->alloc_pvt);