pkginclude_HEADERS = include/trust_router/tid.h include/trust_router/tr_name.h \
include/trust_router/tr_dh.h \
- include/trust_router/tr_versioning.h
+ include/trust_router/tr_constraint.h \
+ include/trust_router/tr_versioning.h
noinst_HEADERS = include/gsscon.h include/tr_config.h \
include/tr_msg.h include/tr.h \
include/tr_idp.h include/tr_rp.h \
include/tr_comm.h include/tr_apc.h \
- include/tr_filter.h \
- include/tr_constraint.h
+ include/tr_filter.h
EXTRA_DIST = trust_router.spec
#include <tr_config.h>
#include <tr.h>
#include <tr_filter.h>
-#include <tr_constraint.h>
+#include <trust_router/tr_constraint.h>
void tr_print_config (FILE *stream, TR_CFG *cfg) {
fprintf(stream, "tr_print_config: Not yet implemented.\n");
return;
#include <jansson.h>
#include <tr_filter.h>
-#include <tr_constraint.h>
+#include <trust_router/tr_constraint.h>
TR_CONSTRAINT_SET *tr_constraint_set_from_fline (TR_FLINE *fline)
{
#define TR_FILTER_H
#include <trust_router/tr_name.h>
-#include <tr_constraint.h>
+#include <trust_router/tr_constraint.h>
#include <jansson.h>
#define TR_MAX_FILTERS 5
#include <trust_router/tr_name.h>
#include <trust_router/tr_versioning.h>
-#include <tr_constraint.h>
+#include <trust_router/tr_constraint.h>
#include <gssapi.h>
/* TID Client functions, in tid/tidc.c */
TR_EXPORT TIDC_INSTANCE *tidc_create (void);
-TR_EXPORT int tidc_open_connection (TIDC_INSTANCE *tidc, char *server, gss_ctx_id_t *gssctx);
+TR_EXPORT int tidc_open_connection (TIDC_INSTANCE *tidc, char *server, unsigned int port, gss_ctx_id_t *gssctx);
TR_EXPORT int tidc_send_request (TIDC_INSTANCE *tidc, int conn, gss_ctx_id_t gssctx, char *rp_realm, char *realm, char *coi, TIDC_RESP_FUNC *resp_handler, void *cookie);
TR_EXPORT int tidc_fwd_request (TIDC_INSTANCE *tidc, TID_REQ *req, TIDC_RESP_FUNC *resp_handler, void *cookie);
TR_EXPORT void tidc_destroy (TIDC_INSTANCE *tidc);
}
/* Set-up TID connection */
- if (-1 == (conn = tidc_open_connection(tidc, server, &gssctx))) {
+ if (-1 == (conn = tidc_open_connection(tidc, server, TID_PORT, &gssctx))) {
/* Handle error */
printf("Error in tidc_open_connection.\n");
return 1;
int tidc_open_connection (TIDC_INSTANCE *tidc,
char *server,
+ unsigned int port,
gss_ctx_id_t *gssctx)
{
int err = 0;
int conn = -1;
- err = gsscon_connect(server, TID_PORT, "trustidentity", &conn, gssctx);
+ err = gsscon_connect(server, port, "trustidentity", &conn, gssctx);
if (!err)
return conn;
{"tr_internal":{"max_tree_depth": 4,
- "tids_port": 12309,
"hostname":"moonshot-proxy.local"}}
\ No newline at end of file
/* Set-up TID connection */
if (-1 == (fwd_req->conn = tidc_open_connection(tidc,
aaa_servers->hostname->buf,
+ TID_PORT,
&(fwd_req->gssctx)))) {
fprintf(stderr, "tr_tids_req_handler: Error in tidc_open_connection.\n");
tids_send_err_response(tids, orig_req, "Can't open connection to next hop TIDS");