Added hostname to configuration and example code.
[trust_router.git] / include / tr_config.h
index 4ee5232..b973372 100644 (file)
@@ -56,6 +56,7 @@ typedef enum tr_cfg_rc {
 
 typedef struct tr_cfg_internal {
   unsigned int max_tree_depth;
+  const char *hostname;
 } TR_CFG_INTERNAL;
 
 typedef struct tr_cfg {
@@ -77,4 +78,6 @@ void tr_print_config(FILE *stream, TR_CFG *cfg);
 
 TR_IDP_REALM *tr_cfg_find_idp (TR_CFG *tr_cfg, TR_NAME *idp_id, TR_CFG_RC *rc);
 TR_RP_CLIENT *tr_cfg_find_rp (TR_CFG *tr_cfg, TR_NAME *rp_gss, TR_CFG_RC *rc);
+TR_RP_CLIENT *tr_rp_client_lookup(TR_INSTANCE *tr, TR_NAME *gss_name);
+
 #endif