Add code for rp client lookups to the build.
authorMargaret Wasserman <margaret@moonshot-proxy>
Tue, 9 Jul 2013 19:48:40 +0000 (15:48 -0400)
committerMargaret Wasserman <margaret@moonshot-proxy>
Tue, 9 Jul 2013 19:48:40 +0000 (15:48 -0400)
Makefile.am
common/tr_config.c
include/tr_rp.h

index 10b9b43..a2675bc 100644 (file)
@@ -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
index 5648028..713ddb8 100644 (file)
@@ -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");
index 3eb94c6..79a2fbf 100644 (file)
@@ -37,6 +37,8 @@
 
 #define TR_MAX_GSS_NAMES 5
 
+#include <tr.h>
+
 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