aboutsummaryrefslogtreecommitdiff
path: root/src/proone-resolv.c
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2020-08-10 19:25:43 +0930
committerDavid Timber <mieabby@gmail.com>2020-08-11 11:01:49 +0930
commitd7cc11191dfd3fead5e596fcbc24f40d1317819e (patch)
tree4f52b450bf499fe6721a944f2e9cd41cb1e17828 /src/proone-resolv.c
parent195946d11f8a7870b435e0eba32f2299aa1b96a1 (diff)
Build system change, bugfix ...
* Workaround for a bug where getrandom() call block within mbedtls * Remove use of undocumented autoconf feature: pkg-config * Remove proone-arch-test
Diffstat (limited to 'src/proone-resolv.c')
-rw-r--r--src/proone-resolv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/proone-resolv.c b/src/proone-resolv.c
index f103c78..44389b4 100644
--- a/src/proone-resolv.c
+++ b/src/proone-resolv.c
@@ -20,6 +20,7 @@
#include "util_ct.h"
#include "llist.h"
#include "resolv_worker.h"
+#include "mbedtls.h"
static int caught_signal = 0;
@@ -324,7 +325,7 @@ int main (void) {
assert(regcomp(&prmpt_regex, "(A|AAAA|TXT)\\s+([a-z0-9\\-\\.]+)", REG_ICASE | REG_EXTENDED) == 0);
/* org regex: ^\s+$ */
assert(regcomp(&empty_line_regex, "^\\s+$", REG_NOSUB | REG_EXTENDED) == 0);
- mbedtls_entropy_init(&entropy);
+ prne_mbedtls_entropy_init(&entropy);
mbedtls_ctr_drbg_init(&rnd);
assert(mbedtls_ctr_drbg_seed(&rnd, mbedtls_entropy_func, &entropy, (const uint8_t*)PRNE_BUILD_ENTROPY, sizeof(PRNE_BUILD_ENTROPY) - 1) == 0);
prne_init_wkr_sched_req(&wsr);