Lines Matching refs:subreq

82 static void kcm_cmd_queue_done(struct tevent_req *subreq);
83 static void kcm_cmd_done(struct tevent_req *subreq);
94 struct tevent_req *subreq = NULL;
165 subreq = kcm_op_queue_send(state, ev, qctx, client);
166 if (subreq == NULL) {
170 tevent_req_set_callback(subreq, kcm_cmd_queue_done, req);
179 static void kcm_cmd_queue_done(struct tevent_req *subreq)
181 struct tevent_req *req = tevent_req_callback_data(subreq, struct tevent_req);
188 ret = kcm_op_queue_recv(subreq, state, &state->queue_entry);
189 talloc_zfree(subreq);
196 subreq = state->op->fn_send(state, state->ev, state->op_ctx);
197 if (subreq == NULL) {
201 tevent_req_set_callback(subreq, kcm_cmd_done, req);
204 static void kcm_cmd_done(struct tevent_req *subreq)
206 struct tevent_req *req = tevent_req_callback_data(subreq, struct tevent_req);
211 ret = state->op->fn_recv(subreq, &state->op_ret);
212 talloc_free(subreq);
289 static void kcm_op_gen_new_done(struct tevent_req *subreq);
296 struct tevent_req *subreq = NULL;
306 subreq = kcm_ccdb_nextid_send(state, ev,
309 if (subreq == NULL) {
313 tevent_req_set_callback(subreq, kcm_op_gen_new_done, req);
322 static void kcm_op_gen_new_done(struct tevent_req *subreq)
326 struct tevent_req *req = tevent_req_callback_data(subreq,
331 ret = kcm_ccdb_nextid_recv(subreq, state, &newid);
332 talloc_zfree(subreq);
367 static void kcm_op_initialize_got_byname(struct tevent_req *subreq);
368 static void kcm_op_initialize_cc_create_done(struct tevent_req *subreq);
369 static void kcm_op_initialize_cc_delete_done(struct tevent_req *subreq);
371 static void kcm_op_initialize_got_default(struct tevent_req *subreq);
372 static void kcm_op_initialize_set_default_done(struct tevent_req *subreq);
379 struct tevent_req *subreq = NULL;
415 subreq = kcm_ccdb_getbyname_send(state, ev,
419 if (subreq == NULL) {
423 tevent_req_set_callback(subreq, kcm_op_initialize_got_byname, req);
432 static void kcm_op_initialize_got_byname(struct tevent_req *subreq)
435 struct tevent_req *req = tevent_req_callback_data(subreq,
442 ret = kcm_ccdb_getbyname_recv(subreq, state, &state->new_cc);
443 talloc_zfree(subreq);
469 subreq = kcm_ccdb_delete_cc_send(state,
474 if (subreq == NULL) {
478 tevent_req_set_callback(subreq, kcm_op_initialize_cc_delete_done, req);
485 static void kcm_op_initialize_cc_delete_done(struct tevent_req *subreq)
487 struct tevent_req *req = tevent_req_callback_data(subreq,
491 ret = kcm_ccdb_delete_cc_recv(subreq);
492 talloc_zfree(subreq);
506 struct tevent_req *subreq;
524 subreq = kcm_ccdb_create_cc_send(state,
529 if (subreq == NULL) {
533 tevent_req_set_callback(subreq, kcm_op_initialize_cc_create_done, req);
536 static void kcm_op_initialize_cc_create_done(struct tevent_req *subreq)
538 struct tevent_req *req = tevent_req_callback_data(subreq,
544 ret = kcm_ccdb_create_cc_recv(subreq);
545 talloc_zfree(subreq);
554 subreq = kcm_ccdb_get_default_send(state, state->ev,
557 if (subreq == NULL) {
561 tevent_req_set_callback(subreq, kcm_op_initialize_got_default, req);
564 static void kcm_op_initialize_got_default(struct tevent_req *subreq)
566 struct tevent_req *req = tevent_req_callback_data(subreq,
574 ret = kcm_ccdb_get_default_recv(subreq, &old_dfl_uuid);
575 talloc_zfree(subreq);
596 subreq = kcm_ccdb_set_default_send(state,
601 if (subreq == NULL) {
605 tevent_req_set_callback(subreq, kcm_op_initialize_set_default_done, req);
614 static void kcm_op_initialize_set_default_done(struct tevent_req *subreq)
616 struct tevent_req *req = tevent_req_callback_data(subreq,
622 ret = kcm_ccdb_set_default_recv(subreq);
623 talloc_zfree(subreq);
642 static void kcm_op_destroy_getbyname_done(struct tevent_req *subreq);
643 static void kcm_op_destroy_delete_done(struct tevent_req *subreq);
650 struct tevent_req *subreq = NULL;
672 subreq = kcm_ccdb_uuid_by_name_send(state, ev,
676 if (subreq == NULL) {
680 tevent_req_set_callback(subreq, kcm_op_destroy_getbyname_done, req);
689 static void kcm_op_destroy_getbyname_done(struct tevent_req *subreq)
692 struct tevent_req *req = tevent_req_callback_data(subreq,
698 ret = kcm_ccdb_uuid_by_name_recv(subreq, state, uuid);
699 talloc_zfree(subreq);
708 subreq = kcm_ccdb_delete_cc_send(state,
713 if (subreq == NULL) {
717 tevent_req_set_callback(subreq, kcm_op_destroy_delete_done, req);
720 static void kcm_op_destroy_delete_done(struct tevent_req *subreq)
723 struct tevent_req *req = tevent_req_callback_data(subreq,
728 ret = kcm_ccdb_delete_cc_recv(subreq);
729 talloc_zfree(subreq);
751 static void kcm_op_store_getbyname_done(struct tevent_req *subreq);
752 static void kcm_op_store_done(struct tevent_req *subreq);
759 struct tevent_req *subreq = NULL;
808 subreq = kcm_ccdb_uuid_by_name_send(state, ev,
812 if (subreq == NULL) {
816 tevent_req_set_callback(subreq, kcm_op_store_getbyname_done, req);
825 static void kcm_op_store_getbyname_done(struct tevent_req *subreq)
828 struct tevent_req *req = tevent_req_callback_data(subreq,
834 ret = kcm_ccdb_uuid_by_name_recv(subreq, state, uuid);
835 talloc_zfree(subreq);
844 subreq = kcm_ccdb_store_cred_blob_send(state, state->ev,
849 if (subreq == NULL) {
853 tevent_req_set_callback(subreq, kcm_op_store_done, req);
856 static void kcm_op_store_done(struct tevent_req *subreq)
859 struct tevent_req *req = tevent_req_callback_data(subreq,
864 ret = kcm_ccdb_store_cred_blob_recv(subreq);
865 talloc_zfree(subreq);
885 static void kcm_op_get_principal_getbyname_done(struct tevent_req *subreq);
892 struct tevent_req *subreq = NULL;
909 subreq = kcm_ccdb_getbyname_send(state, ev,
913 if (subreq == NULL) {
917 tevent_req_set_callback(subreq, kcm_op_get_principal_getbyname_done, req);
926 static void kcm_op_get_principal_getbyname_done(struct tevent_req *subreq)
931 struct tevent_req *req = tevent_req_callback_data(subreq,
936 ret = kcm_ccdb_getbyname_recv(subreq, state, &cc);
937 talloc_zfree(subreq);
976 static void kcm_op_get_cred_uuid_getbyname_done(struct tevent_req *subreq);
984 struct tevent_req *subreq = NULL;
1002 subreq = kcm_ccdb_getbyname_send(state, ev,
1006 if (subreq == NULL) {
1010 tevent_req_set_callback(subreq, kcm_op_get_cred_uuid_getbyname_done, req);
1019 static void kcm_op_get_cred_uuid_getbyname_done(struct tevent_req *subreq)
1025 struct tevent_req *req = tevent_req_callback_data(subreq,
1030 ret = kcm_ccdb_getbyname_recv(subreq, state, &cc);
1031 talloc_zfree(subreq);
1074 static void kcm_op_get_cred_by_uuid_getbyname_done(struct tevent_req *subreq);
1082 struct tevent_req *subreq = NULL;
1099 subreq = kcm_ccdb_getbyname_send(state, ev,
1103 if (subreq == NULL) {
1107 tevent_req_set_callback(subreq, kcm_op_get_cred_by_uuid_getbyname_done, req);
1116 static void kcm_op_get_cred_by_uuid_getbyname_done(struct tevent_req *subreq)
1118 struct tevent_req *req = tevent_req_callback_data(subreq,
1129 ret = kcm_ccdb_getbyname_recv(subreq, state, &cc);
1130 talloc_zfree(subreq);
1225 static void kcm_op_get_cache_uuid_list_done(struct tevent_req *subreq);
1233 struct tevent_req *subreq = NULL;
1245 subreq = kcm_ccdb_list_send(state, ev,
1248 if (subreq == NULL) {
1252 tevent_req_set_callback(subreq, kcm_op_get_cache_uuid_list_done, req);
1261 static void kcm_op_get_cache_uuid_list_done(struct tevent_req *subreq)
1263 struct tevent_req *req = tevent_req_callback_data(subreq,
1270 ret = kcm_ccdb_list_recv(subreq, state, &uuid_list);
1271 talloc_zfree(subreq);
1310 static void kcm_op_get_cache_by_uuid_done(struct tevent_req *subreq);
1318 struct tevent_req *subreq = NULL;
1341 subreq = kcm_ccdb_getbyuuid_send(state, ev,
1345 if (subreq == NULL) {
1349 tevent_req_set_callback(subreq, kcm_op_get_cache_by_uuid_done, req);
1358 static void kcm_op_get_cache_by_uuid_done(struct tevent_req *subreq)
1362 struct tevent_req *req = tevent_req_callback_data(subreq,
1368 ret = kcm_ccdb_getbyuuid_recv(subreq, state, &cc);
1369 talloc_zfree(subreq);
1410 static void kcm_op_get_get_default_done(struct tevent_req *subreq);
1411 static void kcm_op_get_default_ccache_byuuid_done(struct tevent_req *subreq);
1412 static void kcm_op_get_default_ccache_list_done(struct tevent_req *subreq);
1422 struct tevent_req *subreq = NULL;
1436 subreq = kcm_ccdb_get_default_send(state, ev,
1439 if (subreq == NULL) {
1443 tevent_req_set_callback(subreq, kcm_op_get_get_default_done, req);
1452 static void kcm_op_get_get_default_done(struct tevent_req *subreq)
1454 struct tevent_req *req = tevent_req_callback_data(subreq, struct tevent_req);
1460 ret = kcm_ccdb_get_default_recv(subreq, &dfl_uuid);
1461 talloc_zfree(subreq);
1474 subreq = kcm_ccdb_list_send(state, state->ev,
1477 if (subreq == NULL) {
1481 tevent_req_set_callback(subreq, kcm_op_get_default_ccache_list_done, req);
1486 subreq = kcm_ccdb_name_by_uuid_send(state,
1491 if (subreq == NULL) {
1495 tevent_req_set_callback(subreq, kcm_op_get_default_ccache_byuuid_done, req);
1499 static void kcm_op_get_default_ccache_byuuid_done(struct tevent_req *subreq)
1501 struct tevent_req *req = tevent_req_callback_data(subreq, struct tevent_req);
1506 ret = kcm_ccdb_name_by_uuid_recv(subreq, state, &state->name);
1507 talloc_zfree(subreq);
1525 static void kcm_op_get_default_ccache_list_done(struct tevent_req *subreq)
1527 struct tevent_req *req = tevent_req_callback_data(subreq, struct tevent_req);
1533 ret = kcm_ccdb_list_recv(subreq, state, &uuid_list);
1534 talloc_zfree(subreq);
1556 subreq = kcm_ccdb_name_by_uuid_send(state,
1561 if (subreq == NULL) {
1565 tevent_req_set_callback(subreq, kcm_op_get_default_ccache_byuuid_done, req);
1602 static void kcm_op_set_default_ccache_getbyname_done(struct tevent_req *subreq);
1603 static void kcm_op_set_default_done(struct tevent_req *subreq);
1611 struct tevent_req *subreq = NULL;
1632 subreq = kcm_ccdb_uuid_by_name_send(state, ev,
1636 if (subreq == NULL) {
1640 tevent_req_set_callback(subreq, kcm_op_set_default_ccache_getbyname_done, req);
1649 static void kcm_op_set_default_ccache_getbyname_done(struct tevent_req *subreq)
1652 struct tevent_req *req = tevent_req_callback_data(subreq,
1658 ret = kcm_ccdb_uuid_by_name_recv(subreq, state, dfl_uuid);
1659 talloc_zfree(subreq);
1668 subreq = kcm_ccdb_set_default_send(state,
1673 if (subreq == NULL) {
1677 tevent_req_set_callback(subreq, kcm_op_set_default_done, req);
1681 static void kcm_op_set_default_done(struct tevent_req *subreq)
1684 struct tevent_req *req = tevent_req_callback_data(subreq,
1689 ret = kcm_ccdb_set_default_recv(subreq);
1690 talloc_zfree(subreq);
1703 static void kcm_op_get_kdc_offset_getbyname_done(struct tevent_req *subreq);
1711 struct tevent_req *subreq = NULL;
1731 subreq = kcm_ccdb_getbyname_send(state, ev,
1735 if (subreq == NULL) {
1739 tevent_req_set_callback(subreq, kcm_op_get_kdc_offset_getbyname_done, req);
1748 static void kcm_op_get_kdc_offset_getbyname_done(struct tevent_req *subreq)
1754 struct tevent_req *req = tevent_req_callback_data(subreq,
1759 ret = kcm_ccdb_getbyname_recv(subreq, state, &cc);
1760 talloc_zfree(subreq);
1801 static void kcm_op_set_kdc_offset_getbyname_done(struct tevent_req *subreq);
1802 static void kcm_op_set_kdc_offset_mod_done(struct tevent_req *subreq);
1810 struct tevent_req *subreq = NULL;
1831 subreq = kcm_ccdb_uuid_by_name_send(state, ev,
1835 if (subreq == NULL) {
1839 tevent_req_set_callback(subreq, kcm_op_set_kdc_offset_getbyname_done, req);
1848 static void kcm_op_set_kdc_offset_getbyname_done(struct tevent_req *subreq)
1854 struct tevent_req *req = tevent_req_callback_data(subreq,
1859 ret = kcm_ccdb_uuid_by_name_recv(subreq, state, uuid);
1860 talloc_zfree(subreq);
1887 subreq = kcm_ccdb_mod_cc_send(state,
1893 if (subreq == NULL) {
1897 tevent_req_set_callback(subreq, kcm_op_set_kdc_offset_mod_done, req);
1900 static void kcm_op_set_kdc_offset_mod_done(struct tevent_req *subreq)
1903 struct tevent_req *req = tevent_req_callback_data(subreq,
1908 ret = kcm_ccdb_mod_cc_recv(subreq);
1909 talloc_zfree(subreq);