Lines Matching defs:cctx
116 struct cli_ctx *cctx;
120 cctx = secreq->cctx;
140 talloc_free(cctx);
145 TEVENT_FD_WRITEABLE(cctx->cfde);
148 static void sec_cmd_execute(struct cli_ctx *cctx)
153 secreq = talloc_get_type(cctx->state_ctx, struct sec_req_ctx);
155 req = sec_http_request_send(secreq, cctx->ev, secreq);
159 talloc_free(cctx);
458 static void sec_send(struct cli_ctx *cctx)
463 req = talloc_get_type(cctx->state_ctx, struct sec_req_ctx);
465 ret = sec_send_data(cctx->cfd, &req->reply);
472 talloc_free(cctx);
477 TEVENT_FD_NOT_WRITEABLE(cctx->cfde);
478 TEVENT_FD_READABLE(cctx->cfde);
479 talloc_zfree(cctx->state_ctx);
511 static void sec_recv(struct cli_ctx *cctx)
521 prctx = talloc_get_type(cctx->protocol_ctx, struct sec_proto_ctx);
522 req = talloc_get_type(cctx->state_ctx, struct sec_req_ctx);
525 req = talloc_zero(cctx, struct sec_req_ctx);
529 talloc_free(cctx);
532 req->cctx = cctx;
533 cctx->state_ctx = req;
538 ret = sec_recv_data(cctx->cfd, &data);
543 talloc_free(cctx);
556 talloc_free(cctx);
565 talloc_free(cctx);
574 TEVENT_FD_NOT_READABLE(cctx->cfde);
576 sec_cmd_execute(cctx);
584 struct cli_ctx *cctx = talloc_get_type(ptr, struct cli_ctx);
587 ret = reset_idle_timer(cctx);
596 sec_recv(cctx);
600 sec_send(cctx);
615 int sec_connection_setup(struct cli_ctx *cctx)
619 protocol_ctx = talloc_zero(cctx, struct sec_proto_ctx);
623 cctx->protocol_ctx = protocol_ctx;
624 cctx->cfd_handler = sec_fd_handler;