aboutsummaryrefslogtreecommitdiff
path: root/src/htbt.h
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2020-08-24 09:37:43 +0930
committerDavid Timber <mieabby@gmail.com>2020-08-24 10:05:29 +0930
commitacf0b7a45171555eba2c10a6ef84f915c62f6791 (patch)
tree7253e8d86a199948530671c8bf59ecbb2c6e08f8 /src/htbt.h
parent076671e7aa28451de087088c2e47f9e6064ae434 (diff)
* htbt checkpoint
* Change PRNE_BUILD_ENTROPY to uint8_t array * endian.h problem * Remove "-I." CFLAG added by Automake () * Moved endian conversion macros to endian.h * Moved DNS server config from config.h to resolv.h to reduce compile time * Refactor resolv_ensure_act_dns_fd() to reduce binary size
Diffstat (limited to 'src/htbt.h')
-rw-r--r--src/htbt.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/htbt.h b/src/htbt.h
new file mode 100644
index 0000000..edb6cda
--- /dev/null
+++ b/src/htbt.h
@@ -0,0 +1,14 @@
+#pragma once
+#include "pth.h"
+#include "resolv.h"
+
+
+typedef struct prne_htbt prne_htbt_t;
+struct prne_htbt;
+
+
+prne_htbt_t *prne_alloc_htbt_worker (
+ prne_worker_t *w,
+ pth_t sigterm_pth,
+ prne_resolv_t *resolv, // optional
+ mbedtls_ctr_drbg_context *ctr_drbg);