From 657c44ae5407bbd971afa6e9d0904209fa9c137e Mon Sep 17 00:00:00 2001 From: Margaret Wasserman Date: Tue, 9 Jul 2013 15:48:40 -0400 Subject: [PATCH] Add code for rp client lookups to the build. --- Makefile.am | 1 + common/tr_config.c | 2 +- include/tr_rp.h | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 10b9b43..a2675bc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -14,6 +14,7 @@ common/tr_config.c \ common/tr_idp.c \ common/tr_comm.c \ common/tr_filter.c \ +common/tr_rp.c \ tr/tr.c tr_trust_router_LDADD = gsscon/libgsscon.la libtr_tid.la diff --git a/common/tr_config.c b/common/tr_config.c index 5648028..713ddb8 100644 --- a/common/tr_config.c +++ b/common/tr_config.c @@ -172,7 +172,7 @@ static TR_RP_CLIENT *tr_cfg_parse_one_rp_client (TR_INSTANCE *tr, json_t *jrp, T return NULL; } - rp->rp_match = tr_new_name(json_string_value(jfrealm)); + rp->rp_match = tr_new_name((char *)json_string_value(jfrealm)); if (0 == json_array_size(jgns)) { fprintf(stderr, "tr_cfg_parse_one_rp_client: RP Client has no GSS Names.\n"); diff --git a/include/tr_rp.h b/include/tr_rp.h index 3eb94c6..79a2fbf 100644 --- a/include/tr_rp.h +++ b/include/tr_rp.h @@ -37,6 +37,8 @@ #define TR_MAX_GSS_NAMES 5 +#include + typedef struct tr_rp_client { struct tr_rp_client *next; struct tr_rp_client *comm_next; @@ -51,4 +53,6 @@ typedef struct tr_rp_realm { TR_NAME *realm_name; } TR_RP_REALM; +TR_RP_CLIENT *tr_rp_client_lookup(TR_INSTANCE *tr, TR_NAME *gss_name); + #endif -- 2.1.4