Lines Matching refs:req

52     struct tevent_req *req;
57 req = tevent_req_create(mem_ctx, &state, struct krb5_mocked_auth_state);
58 if (req == NULL) {
71 tt = tevent_add_timer(ev, req, tv, krb5_mocked_auth_done, req);
76 return req;
84 struct tevent_req *req;
87 req = talloc_get_type(pvt, struct tevent_req);
88 state = tevent_req_data(req, struct krb5_mocked_auth_state);
93 tevent_req_done(req);
95 tevent_req_error(req, state->ret);
99 int krb5_auth_recv(struct tevent_req *req,
105 state = tevent_req_data(req, struct krb5_mocked_auth_state);
115 TEVENT_REQ_RETURN_ON_ERROR(req);
184 static void test_krb5_wait_queue_single_done(struct tevent_req *req);
189 struct tevent_req *req;
195 req = krb5_auth_queue_send(test_ctx,
200 assert_non_null(req);
201 tevent_req_set_callback(req, test_krb5_wait_queue_single_done, test_ctx);
207 static void test_krb5_wait_queue_single_done(struct tevent_req *req)
210 tevent_req_callback_data(req, struct test_krb5_wait_queue);
215 ret = krb5_auth_queue_recv(req, &pam_status, &dp_err);
216 talloc_free(req);
222 static void test_krb5_wait_queue_multi_done(struct tevent_req *req);
228 struct tevent_req *req;
237 req = krb5_auth_queue_send(test_ctx,
242 assert_non_null(req);
243 tevent_req_set_callback(req, test_krb5_wait_queue_multi_done, test_ctx);
250 static void test_krb5_wait_queue_multi_done(struct tevent_req *req)
253 tevent_req_callback_data(req, struct test_krb5_wait_queue);
258 ret = krb5_auth_queue_recv(req, &pam_status, &dp_err);
259 talloc_free(req);
269 static void test_krb5_wait_queue_fail_odd_done(struct tevent_req *req);
275 struct tevent_req *req;
284 req = krb5_auth_queue_send(test_ctx,
289 assert_non_null(req);
290 tevent_req_set_callback(req, test_krb5_wait_queue_fail_odd_done, test_ctx);
297 static void test_krb5_wait_queue_fail_odd_done(struct tevent_req *req)
300 tevent_req_callback_data(req, struct test_krb5_wait_queue);
305 ret = krb5_auth_queue_recv(req, &pam_status, &dp_err);
306 talloc_free(req);