#ifndef TID_INTERNAL_H
#define TID_INTERNAL_H
#include <glib.h>
+#include <jansson.h>
-#include <tr_rp.h>
#include <trust_router/tid.h>
-#include <jansson.h>
-#include "tr_gss_client.h"
+#include <trust_router/tr_dh.h>
+#include <tr_rp.h>
+#include <tr_gss_client.h>
struct tid_srvr_blk {
TID_SRVR_BLK *next;
struct tidc_instance {
TR_GSSC_INSTANCE *gssc;
+ DH *client_dh;
};
struct tid_process {
};
struct tids_instance {
- int req_count;
- int error_count;
+ int req_count; /* successful requests */
+ int req_error_count; /* unsuccessful requests */
+ int error_count; /* invalid requests or internal errors */
char *priv_key;
char *ipaddr;
const char *hostname;
TIDS_REQ_FUNC *req_handler;
tids_auth_func *auth_handler;
void *cookie;
- unsigned int tids_port;
+ int tids_port;
TR_NAME *gss_name; /* GSS name client used for authentication */
GArray *pids; /* PIDs of active tids processes */
};
reference they already hold to the TID_REQ.*/
void tid_req_cleanup_json(TID_REQ *, json_t *json);
-int tid_req_add_path(TID_REQ *, const char *this_system, unsigned port);
+int tid_req_add_path(TID_REQ *req, const char *this_system, int port);
TID_SRVR_BLK *tid_srvr_blk_new(TALLOC_CTX *mem_ctx);
void tid_srvr_blk_free(TID_SRVR_BLK *srvr);