Lines Matching defs:op_ctx

48  * functions with this prototype. The operation receives an op_ctx
51 * into the op_ctx reply IO buffer and returns the op_ret status code
60 struct kcm_op_ctx *op_ctx);
76 struct kcm_op_ctx *op_ctx;
128 /* Allocating op_ctx on the heap makes it possible for operations to use
129 * op_ctx as their temporary context and avoid tmp_ctx altogether
131 state->op_ctx = talloc_zero(state, struct kcm_op_ctx);
132 if (state->op_ctx == NULL) {
137 state->op_ctx->kcm_data = kcm_data;
138 state->op_ctx->client = client;
140 state->op_ctx->input = sss_iobuf_init_readonly(state->op_ctx,
143 if (state->op_ctx->input == NULL) {
156 state->op_ctx->reply = sss_iobuf_init_empty(
196 subreq = state->op->fn_send(state, state->ev, state->op_ctx);
235 sss_iobuf_get_data(state->op_ctx->reply),
236 sss_iobuf_get_len(state->op_ctx->reply));
274 struct kcm_op_ctx *op_ctx;
293 struct kcm_op_ctx *op_ctx)
304 state->op_ctx = op_ctx;
307 op_ctx->kcm_data->db,
308 op_ctx->client);
343 ret = sss_iobuf_write_stringz(state->op_ctx->reply, newid);
359 struct kcm_op_ctx *op_ctx;
376 struct kcm_op_ctx *op_ctx)
387 state->op_ctx = op_ctx;
390 ret = sss_iobuf_read_stringz(op_ctx->input, &state->name);
399 ret = kcm_check_name(state->name, op_ctx->client);
407 ret = sss_krb5_unmarshal_princ(op_ctx, op_ctx->input, &state->princ);
416 op_ctx->kcm_data->db,
417 op_ctx->client,
453 ok = kcm_cc_access(state->new_cc, state->op_ctx->client);
471 state->op_ctx->kcm_data->db,
472 state->op_ctx->client,
511 ret = kcm_cc_new(state->op_ctx,
512 state->op_ctx->kcm_data->k5c,
513 state->op_ctx->client,
526 state->op_ctx->kcm_data->db,
527 state->op_ctx->client,
555 state->op_ctx->kcm_data->db,
556 state->op_ctx->client);
598 state->op_ctx->kcm_data->db,
599 state->op_ctx->client,
647 struct kcm_op_ctx *op_ctx)
659 state->op_ctx = op_ctx;
662 ret = sss_iobuf_read_stringz(op_ctx->input, &name);
673 op_ctx->kcm_data->db,
674 op_ctx->client,
710 state->op_ctx->kcm_data->db,
711 state->op_ctx->client,
745 struct kcm_op_ctx *op_ctx;
756 struct kcm_op_ctx *op_ctx)
769 state->op_ctx = op_ctx;
772 ret = sss_iobuf_read_stringz(op_ctx->input, &name);
782 creds_len = sss_iobuf_get_size(op_ctx->input) - strlen(name) -1;
797 ret = sss_iobuf_read(op_ctx->input,
809 op_ctx->kcm_data->db,
810 op_ctx->client,
845 state->op_ctx->kcm_data->db,
846 state->op_ctx->client,
889 struct kcm_op_ctx *op_ctx)
901 state->op_ctx = op_ctx;
903 ret = sss_iobuf_read_stringz(op_ctx->input, &name);
910 op_ctx->kcm_data->db,
911 op_ctx->client,
962 ret = sss_krb5_marshal_princ(princ, state->op_ctx->reply);
981 struct kcm_op_ctx *op_ctx)
993 state->op_ctx = op_ctx;
995 ret = sss_iobuf_read_stringz(op_ctx->input, &name);
1003 op_ctx->kcm_data->db,
1004 op_ctx->client,
1058 ret = sss_iobuf_write_len(state->op_ctx->reply,
1079 struct kcm_op_ctx *op_ctx)
1091 state->op_ctx = op_ctx;
1093 ret = sss_iobuf_read_stringz(op_ctx->input, &name);
1100 op_ctx->kcm_data->db,
1101 op_ctx->client,
1146 ret = sss_iobuf_read_len(state->op_ctx->input,
1187 ret = sss_iobuf_write_len(state->op_ctx->reply,
1207 struct kcm_op_ctx *op_ctx)
1216 state->op_ctx = op_ctx;
1230 struct kcm_op_ctx *op_ctx)
1241 state->op_ctx = op_ctx;
1246 op_ctx->kcm_data->db,
1247 op_ctx->client);
1292 ret = sss_iobuf_write_len(state->op_ctx->reply,
1315 struct kcm_op_ctx *op_ctx)
1327 state->op_ctx = op_ctx;
1331 ret = sss_iobuf_read_len(op_ctx->input,
1342 op_ctx->kcm_data->db,
1343 op_ctx->client,
1387 ret = sss_iobuf_write_stringz(state->op_ctx->reply,
1404 struct kcm_op_ctx *op_ctx;
1419 struct kcm_op_ctx *op_ctx)
1431 state->op_ctx = op_ctx;
1437 state->op_ctx->kcm_data->db,
1438 state->op_ctx->client);
1475 state->op_ctx->kcm_data->db,
1476 state->op_ctx->client);
1488 state->op_ctx->kcm_data->db,
1489 state->op_ctx->client,
1558 state->op_ctx->kcm_data->db,
1559 state->op_ctx->client,
1577 cli_creds_get_uid(state->op_ctx->client));
1584 ret = sss_iobuf_write_stringz(state->op_ctx->reply, state->name);
1608 struct kcm_op_ctx *op_ctx)
1620 state->op_ctx = op_ctx;
1623 ret = sss_iobuf_read_stringz(op_ctx->input, &name);
1633 op_ctx->kcm_data->db,
1634 op_ctx->client,
1670 state->op_ctx->kcm_data->db,
1671 state->op_ctx->client,
1708 struct kcm_op_ctx *op_ctx)
1720 state->op_ctx = op_ctx;
1722 ret = sss_iobuf_read_stringz(op_ctx->input, &name);
1732 op_ctx->kcm_data->db,
1733 op_ctx->client,
1780 ret = sss_iobuf_write_int32(state->op_ctx->reply, offset_be);
1797 struct kcm_op_ctx *op_ctx;
1807 struct kcm_op_ctx *op_ctx)
1819 state->op_ctx = op_ctx;
1822 ret = sss_iobuf_read_stringz(op_ctx->input, &name);
1832 op_ctx->kcm_data->db,
1833 op_ctx->client,
1869 ret = sss_iobuf_read_int32(state->op_ctx->input, &offset_be);
1889 state->op_ctx->kcm_data->db,
1890 state->op_ctx->client,