Lines Matching defs:sctx
52 struct sec_ctx *sctx;
59 sctx = talloc_get_type(secreq->cctx->rctx->pvt_ctx, struct sec_ctx);
136 ret = sec_get_provider(sctx, provider, handle);
139 ret = local_secrets_provider_handle(sctx, handle);
141 ret = proxy_secrets_provider_handle(sctx, handle);
148 ret = sec_add_provider(sctx, *handle);
509 int sec_get_provider(struct sec_ctx *sctx, const char *name,
514 for (int i = 0; sctx->providers && sctx->providers[i]; i++) {
515 handle = sctx->providers[i];
527 int sec_add_provider(struct sec_ctx *sctx, struct provider_handle *handle)
531 for (c = 0; sctx->providers && sctx->providers[c]; c++)
534 sctx->providers = talloc_realloc(sctx, sctx->providers,
536 if (!sctx->providers) return ENOMEM;
538 sctx->providers[c] = talloc_steal(sctx, handle);
539 sctx->providers[c + 1] = NULL;