#include <jansson.h>
#include <tr_msg.h>
-#include <tr_name.h>
-#include <tid.h>
+#include <trust_router/tr_name.h>
+#include <trust_router/tid.h>
static json_t *tr_msg_encode_dh(DH *dh)
{
#include <stdlib.h>
#include <string.h>
-#include <tr_name.h>
+#include <trust_router/tr_name.h>
TR_NAME *tr_new_name (char *name)
{
#define TR_H
#include <tr_msg.h>
-#include <tr_name.h>
+#include <trust_router/tr_name.h>
#include <tr_config.h>
-#include <tid.h>
+#include <trust_router/tid.h>
#define TRUST_ROUTER_PORT 12308
#ifndef TR_MSG_H
#define TR_MSG_H
-#include <tid.h>
+#include <trust_router/tid.h>
#include <jansson.h>
enum msg_type {
#include <openssl/dh.h>
#include <gsscon.h>
-#include <tr_name.h>
-#include <tr_versioning.h>
+#include <trust_router/tr_name.h>
+#include <trust_router/tr_versioning.h>
#define TID_PORT 12309
#ifndef TR_NAME_H
#define TR_NAME_H
+#include <trust_router/tr_versioning.h>
typedef struct tr__name {
char *buf;
int len;
} TR_NAME;
-TR_NAME *tr_new_name (char *name);
-TR_NAME *tr_dup_name (TR_NAME *from);
+TR_EXPORT TR_NAME *tr_new_name (char *name);
+TR_EXPORT TR_NAME *tr_dup_name (TR_NAME *from);
#endif
#include <stdio.h>
#include <gsscon.h>
-#include <tid.h>
+#include <trust_router/tid.h>
static int tidc_response_received = 0;
#include <stdio.h>
-#include <tid.h>
+#include <trust_router/tid.h>
int tids_req_handler (TIDS_INSTANCE * tids,
TID_REQ *req,
#include <gsscon.h>
#include <tr_dh.h>
-#include <tid.h>
+#include <trust_router/tid.h>
#include <tr_msg.h>
+#include <gsscon.h>
/* char tmp_key[32] =
{0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
#include <jansson.h>
#include <gsscon.h>
-#include <tid.h>
+#include <trust_router/tid.h>
+
static int tids_listen (int port)
{