Merge branch 'master' into jennifer/trp-devel
[trust_router.git] / include / tid_internal.h
index 525e671..f415da6 100644 (file)
@@ -35,8 +35,9 @@
 #ifndef TID_INTERNAL_H
 #define TID_INTERNAL_H
 #include <glib.h>
-#include <trust_router/tid.h>
 
+#include <tr_rp.h>
+#include <trust_router/tid.h>
 #include <jansson.h>
 
 struct tid_srvr_blk {
@@ -64,6 +65,7 @@ struct tid_req {
   struct tid_req *next_req;
   int resp_sent;
   int conn;
+  int free_conn; /* free conn and gss ctx*/
   gss_ctx_id_t gssctx;
   int resp_rcvd;
   TR_NAME *rp_realm;
@@ -93,9 +95,10 @@ struct tids_instance {
   char *ipaddr;
   const char *hostname;
   TIDS_REQ_FUNC *req_handler;
-  tids_auth_func *auth_handler;
+  TIDS_AUTH_FUNC *auth_handler;
   void *cookie;
   uint16_t tids_port;
+  struct tr_rp_client *rp_gss;         /* Client matching GSS name */
 };