Add TRP handling events, plus change to cfg layout.
authorJennifer Richards <jennifer@painless-security.com>
Thu, 26 May 2016 02:42:13 +0000 (22:42 -0400)
committerJennifer Richards <jennifer@painless-security.com>
Thu, 26 May 2016 18:24:28 +0000 (14:24 -0400)
commit63189ccb50596b232c7d35bb429e3ef655da3124
tree48bf1983f41d8a493a7df352d2529740222c5ed6
parentc388b01f3c2cdaba28e58d587c1050bda135c1b5
Add TRP handling events, plus change to cfg layout.

The main purpose of this commit is to add a stub for TRP event handling.
This currently amounts to listning to a TCP port and replying with a
brief message. Additionally, moved the active and new configurations
in the TR_INSTANCE struct into a container called TR_CFG_MGR. Other
instance types (TIDS, TRPS [new with this commit], and CFGWATCH)
instances now refer to the TR_CFG_MGR rather than to the TR_INSTANCE.
This resolves circular include dependencies and makes for a cycle-free
object hierarchy. Finally, introduced more complete use of talloc
for memory management, though this is probably not complete yet.
17 files changed:
Makefile.am
common/tr_comm.c
common/tr_config.c
include/tid_internal.h
include/tr.h
include/tr_cfgwatch.h
include/tr_config.h
include/tr_tid.h
include/tr_trp.h [new file with mode: 0644]
include/trust_router/tid.h
tid/example/tids_main.c
tid/tids.c
tr/tr.c
tr/tr_cfgwatch.c
tr/tr_main.c
tr/tr_tid.c
tr/tr_trp.c [new file with mode: 0644]