Lines Matching refs:pctx
30 struct cli_protocol *pctx;
33 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol);
34 if (!pctx) return EINVAL;
37 ret = sss_packet_new(pctx->creq, 0,
38 sss_packet_get_cmd(pctx->creq->in),
39 &pctx->creq->out);
45 sss_packet_set_error(pctx->creq->out, err);
71 struct cli_protocol *pctx;
74 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol);
75 if (!pctx) return EINVAL;
78 ret = sss_packet_new(pctx->creq, 0,
79 sss_packet_get_cmd(pctx->creq->in),
80 &pctx->creq->out);
85 ret = sss_cmd_empty_packet(pctx->creq->out);
90 sss_packet_set_error(pctx->creq->out, EOK);
106 struct cli_protocol *pctx;
117 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol);
118 if (!pctx) return EINVAL;
120 pctx->cli_protocol_version = NULL;
127 pctx->cli_protocol_version = &cli_protocol_version[0];
129 sss_packet_get_body(pctx->creq->in, &req_body, &req_blen);
138 pctx->cli_protocol_version = &cli_protocol_version[i];
147 ret = sss_packet_new(pctx->creq, sizeof(uint32_t),
148 sss_packet_get_cmd(pctx->creq->in),
149 &pctx->creq->out);
153 sss_packet_get_body(pctx->creq->out, &body, &blen);
155 protocol_version = (pctx->cli_protocol_version != NULL)
156 ? pctx->cli_protocol_version->version : 0;