From 10512fc50e6184397206a41c157c09d9b02e9e1a Mon Sep 17 00:00:00 2001 From: David Timber Date: Sat, 11 Jan 2020 18:03:47 +1100 Subject: staged resolv_worker * replaced RNG from `rnd` to `mbedtls_ctr_drbg` * use of `uint_fastN_t` where appropriate * heartbeat protocol draft * improved worker scheduling mech --- src/heartbeat.h | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 src/heartbeat.h (limited to 'src/heartbeat.h') diff --git a/src/heartbeat.h b/src/heartbeat.h deleted file mode 100644 index 3d396cb..0000000 --- a/src/heartbeat.h +++ /dev/null @@ -1,42 +0,0 @@ -#pragma once -#include "protocol.h" -#include "util_ct.h" - -#include -#include -#include - - -typedef struct prne_htbt_host_info prne_htbt_host_info_t; - -typedef enum { - PRNE_HTBT_OP_HOST_INFO, - PRNE_HTBT_OP_CMD, - PRNE_HTBT_OP_NY_BIN, - PRNE_HTBT_OP_RSP, - - NB_PRNE_HTBT_OP -} prne_htbt_op_t; -PRNE_LIMIT_ENUM(prne_htbt_op_t, NB_PRNE_HTBT_OP, 0xFF); - -typedef enum { - PRNE_HTBT_RSP_OK, - PRNE_HTBT_RSP_ERRNO, - - NB_PRNE_HTBT_RSP -} prne_htbt_rsp_t; -PRNE_LIMIT_ENUM(prne_htbt_rsp_t, NB_PRNE_HTBT_RSP, 0xFF); - -struct prne_htbt_host_info { - char prog_ver[36]; - uint64_t uptime; - uint64_t rerun_cnt; - uint64_t bne_cnt; - uint64_t infect_cnt; - uint32_t god_pid; - uint32_t proone_pid; - const char *cred_str; - uint8_t cred_id_len; - uint8_t cred_pw_len; - prne_arch_t arch; -}; -- cgit