Refactor tidc/monc to better share code
authorJennifer Richards <jennifer@painless-security.com>
Mon, 16 Apr 2018 21:32:01 +0000 (17:32 -0400)
committerJennifer Richards <jennifer@painless-security.com>
Mon, 16 Apr 2018 21:36:53 +0000 (17:36 -0400)
commit6491f2a660c3183b210b968a939eaa18f1b44a09
tree20cf1b03ca810727dc9b48dc9c8acc69fb86dfa1
parentd48e5dd128c51da41ccdf71a14ce7f8f083e1fdb
Refactor tidc/monc to better share code

  * Implement minimal decoding of monitoring responses
  * Add tr_gss_client.[ch] to house GSS req/resp message exchange
  * Always use 'payload' as the key for MON_RESP payload, don't name it
    after the command that it is responding to
  * Use better reference count behavior for MON_RESP payload
  * Move typedefs out of mon_internal.h to mon.h to avoid cyclic header
    dependencies
  * Fix some minor integer type mismatches in option parser
  * Update various test programs to use extra argument to
    tr_msg_(en/de)code methods
21 files changed:
CMakeLists.txt
Makefile.am
common/tests/filt_test.c
common/tr_gss_client.c [new file with mode: 0644]
common/tr_msg.c
include/mon.h [new file with mode: 0644]
include/mon_internal.h
include/tid_internal.h
include/tr_gss_client.h [new file with mode: 0644]
include/tr_msg.h
mon/mon_req_decode.c
mon/mon_resp.c
mon/mon_resp_decode.c [new file with mode: 0644]
mon/mon_resp_encode.c
mon/monc.c
tid/example/tidc_main.c
tid/tidc.c
tid/tids.c
tr/trmon_main.c
trp/msgtst.c
trp/trps.c