Lines Matching defs:cctx
85 struct cli_ctx *cctx = cmdctx->cctx;
90 talloc_get_type(cctx->rctx->pvt_ctx, struct nss_ctx);
100 for (dom = cctx->rctx->domains; dom; dom = get_next_domain(dom, 0)) {
158 dom = cctx->rctx->domains;
347 subreq = sss_dp_get_account_send(cctx, cctx->rctx,
421 struct cli_ctx *cctx = state->dctx->cmdctx->cctx;
427 cctx->rctx,
451 struct cli_ctx *cctx = state->dctx->cmdctx->cctx;
453 talloc_get_type(cctx->rctx->pvt_ctx, struct nss_ctx);
790 int nss_cmd_getservbyname(struct cli_ctx *cctx)
803 cmdctx = talloc_zero(cctx, struct nss_cmd_ctx);
806 cmdctx->cctx = cctx;
815 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol);
826 cctx->rctx->domains,
827 cctx->rctx->default_domain,
846 dctx->domain = responder_get_domain(cctx->rctx, domname);
853 dctx->domain = cctx->rctx->domains;
861 req = getserv_send(cmdctx, cctx->ev, 0,
1006 pctx = talloc_get_type(cmdctx->cctx->protocol_ctx, struct cli_protocol);
1030 sss_cmd_done(cmdctx->cctx, cmdctx);
1110 int nss_cmd_getservbyport(struct cli_ctx *cctx)
1122 cmdctx = talloc_zero(cctx, struct nss_cmd_ctx);
1125 cmdctx->cctx = cctx;
1134 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol);
1160 dctx->domain = cctx->rctx->domains;
1167 req = getserv_send(cmdctx, cctx->ev, port,
1180 struct cli_ctx *cctx;
1197 setservent_send(TALLOC_CTX *mem_ctx, struct cli_ctx *cctx)
1210 nctx = talloc_get_type(cctx->rctx->pvt_ctx, struct nss_ctx);
1211 state_ctx = talloc_get_type(cctx->state_ctx, struct nss_state_ctx);
1221 state->cctx = cctx;
1227 state->dctx->domain = cctx->rctx->domains;
1265 for (dom = state->cctx->rctx->domains;
1298 step_ctx->rctx = cctx->rctx;
1299 step_ctx->cctx = cctx;
1326 tevent_req_post(req, cctx->rctx->ev);
1594 nss_cmd_setservent(struct cli_ctx *cctx)
1600 cmdctx = talloc_zero(cctx, struct nss_cmd_ctx);
1604 cmdctx->cctx = cctx;
1606 req = setservent_send(cmdctx, cctx);
1627 pctx = talloc_get_type(cmdctx->cctx->protocol_ctx, struct cli_protocol);
1639 sss_cmd_done(cmdctx->cctx, cmdctx);
1657 retservent(struct cli_ctx *cctx, int num);
1659 int nss_cmd_getservent(struct cli_ctx *cctx)
1669 cmdctx = talloc_zero(cctx, struct nss_cmd_ctx);
1673 cmdctx->cctx = cctx;
1680 state_ctx = talloc_get_type(cctx->state_ctx, struct nss_state_ctx);
1684 nctx = talloc_get_type(cctx->rctx->pvt_ctx, struct nss_ctx);
1689 req = setservent_send(cmdctx, cctx);
1725 state_ctx = talloc_get_type(cmdctx->cctx->state_ctx, struct nss_state_ctx);
1747 pctx = talloc_get_type(cmdctx->cctx->protocol_ctx, struct cli_protocol);
1764 ret = retservent(cmdctx->cctx, num);
1767 sss_cmd_done(cmdctx->cctx, cmdctx);
1773 retservent(struct cli_ctx *cctx, int num)
1784 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol);
1785 state_ctx = talloc_get_type(cctx->state_ctx, struct nss_state_ctx);
1786 nctx = talloc_get_type(cctx->rctx->pvt_ctx, struct nss_ctx);
1825 int nss_cmd_endservent(struct cli_ctx *cctx)
1835 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol);
1836 state_ctx = talloc_get_type(cctx->state_ctx, struct nss_state_ctx);
1837 nctx = talloc_get_type(cctx->rctx->pvt_ctx, struct nss_ctx);
1854 sss_cmd_done(cctx, NULL);