X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=include%2Ftid_internal.h;h=8613eb86bdc194b2f31604d06eef5e31ff1b8e5b;hb=3c5fb17459ff56d5e23cea059503f46a42150a1e;hp=b6bd8fc92c3ec0fdcc806e17d8a579436c405de4;hpb=1a3ad555c6b58de28efb85e7ab07c2f35208ab0d;p=trust_router.git diff --git a/include/tid_internal.h b/include/tid_internal.h index b6bd8fc..8613eb8 100644 --- a/include/tid_internal.h +++ b/include/tid_internal.h @@ -39,6 +39,7 @@ #include #include #include +#include "tr_gss_client.h" struct tid_srvr_blk { TID_SRVR_BLK *next; @@ -51,6 +52,7 @@ struct tid_srvr_blk { struct tid_resp { TID_RC result; + TR_NAME *request_id; TR_NAME *err_msg; TR_NAME *rp_realm; TR_NAME *realm; @@ -66,6 +68,7 @@ struct tid_req { int resp_sent; int conn; int free_conn; /* free conn and gss ctx*/ + TR_NAME *request_id; gss_ctx_id_t gssctx; int resp_rcvd; TR_NAME *rp_realm; @@ -82,15 +85,17 @@ struct tid_req { }; struct tidc_instance { - // TID_REQ *req_list; - // TBD -- Do we still need a separate private key */ - // char *priv_key; - // int priv_len; - DH *client_dh; /* Client's DH struct with priv and pub keys */ + TR_GSSC_INSTANCE *gssc; +}; + +struct tid_process { + pid_t pid; + int read_fd; }; struct tids_instance { int req_count; + int error_count; char *priv_key; char *ipaddr; const char *hostname; @@ -99,6 +104,7 @@ struct tids_instance { void *cookie; unsigned int tids_port; TR_NAME *gss_name; /* GSS name client used for authentication */ + GArray *pids; /* PIDs of active tids processes */ }; /** Decrement a reference to #json when this tid_req is cleaned up. A @@ -115,7 +121,10 @@ TID_SRVR_BLK *tid_srvr_blk_add_func(TID_SRVR_BLK *head, TID_SRVR_BLK *new); #define tid_srvr_blk_add(head, new) ((head)=tid_srvr_blk_add_func((head),(new))) void tid_srvr_blk_set_path(TID_SRVR_BLK *block, TID_PATH *path); +TID_RC tid_resp_cpy(TID_RESP *dst, TID_RESP *src); void tid_resp_set_cons(TID_RESP *resp, TR_CONSTRAINT_SET *cons); void tid_resp_set_error_path(TID_RESP *resp, json_t *ep); +void tids_sweep_procs(TIDS_INSTANCE *tids); + #endif