Lines Matching refs:req

59     struct tevent_req *req;
67 req = tevent_req_create(mem_ctx, &state, struct proxy_child_ctx);
68 if (req == NULL) {
93 talloc_zfree(req);
102 value.ptr = req;
108 talloc_zfree(req);
125 talloc_zfree(req);
128 tevent_req_set_callback(subreq, proxy_child_init_done, req);
139 return req;
162 struct tevent_req *req;
169 req = tevent_req_create(mem_ctx, &state, struct pc_init_ctx);
170 if (req == NULL) {
177 state->command = talloc_asprintf(req,
197 talloc_zfree(req);
218 state->sige = tevent_add_signal(auth_ctx->be->ev, req,
220 pc_init_sig_handler, req);
223 talloc_zfree(req);
234 child_ctx->init_req = req;
242 state->timeout = tevent_add_timer(auth_ctx->be->ev, req,
243 tv, pc_init_timeout, req);
248 return req;
258 struct tevent_req *req;
267 req = talloc_get_type(pvt, struct tevent_req);
268 init_ctx = tevent_req_data(req, struct pc_init_ctx);
287 tevent_req_error(req, EIO);
292 tevent_req_error(req, EIO);
315 struct tevent_req *req;
318 req = talloc_get_type(ptr, struct tevent_req);
319 tevent_req_error(req, ETIMEDOUT);
322 static errno_t proxy_child_init_recv(struct tevent_req *req,
328 TEVENT_REQ_RETURN_ON_ERROR(req);
330 state = tevent_req_data(req, struct pc_init_ctx);
360 struct tevent_req *req =
363 tevent_req_data(req, struct proxy_child_ctx);
370 tevent_req_error(req, ret);
375 subreq = proxy_pam_conv_send(req, child_ctx->auth_ctx,
380 tevent_req_error(req, EIO);
383 tevent_req_set_callback(subreq, proxy_pam_conv_done, req);
392 tevent_req_error(req, ENOMEM);
405 tevent_req_error(req, ENOMEM);
521 struct tevent_req *req;
524 req = tevent_req_create(mem_ctx, &state, struct proxy_conv_ctx);
525 if (req == NULL) {
540 talloc_zfree(req);
551 talloc_zfree(req);
556 proxy_pam_conv_reply, req, NULL);
559 talloc_zfree(req);
564 return req;
569 struct tevent_req *req;
578 req = talloc_get_type(ptr, struct tevent_req);
579 state = tevent_req_data(req, struct proxy_conv_ctx);
590 tevent_req_error(req, EIO);
601 tevent_req_error(req, EIO);
623 tevent_req_done(req);
626 static errno_t proxy_pam_conv_recv(struct tevent_req *req)
628 TEVENT_REQ_RETURN_ON_ERROR(req);
635 struct tevent_req *req;
638 req = tevent_req_callback_data(subreq, struct tevent_req);
644 tevent_req_error(req, ret);
648 tevent_req_done(req);
651 static int proxy_child_recv(struct tevent_req *req,
657 TEVENT_REQ_RETURN_ON_ERROR(req);
659 ctx = tevent_req_data(req, struct proxy_child_ctx);
672 struct tevent_req *req;
681 req = talloc_get_type(entry->value.ptr, struct tevent_req);
682 state = tevent_req_data(req, struct proxy_child_ctx);
703 talloc_zfree(req);
706 tevent_req_set_callback(subreq, proxy_child_init_done, req);
728 struct tevent_req *req;
730 req = tevent_req_create(mem_ctx, &state, struct proxy_pam_handler_state);
731 if (req == NULL) {
751 tevent_req_set_callback(subreq, proxy_pam_handler_done, req);
764 return req;
768 tevent_req_done(req);
769 tevent_req_post(req, params->ev);
771 return req;
778 struct tevent_req *req;
782 req = tevent_req_callback_data(subreq, struct tevent_req);
783 state = tevent_req_data(req, struct proxy_pam_handler_state);
800 * Hopefully this is impossible, since freeing req
833 tevent_req_done(req);
838 struct tevent_req *req,
843 state = tevent_req_data(req, struct proxy_pam_handler_state);
845 TEVENT_REQ_RETURN_ON_ERROR(req);