]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[rt31459d] update the newer tools
authorEvan Hunt <each@isc.org>
Wed, 13 Sep 2017 05:49:35 +0000 (22:49 -0700)
committerEvan Hunt <each@isc.org>
Wed, 13 Sep 2017 05:49:35 +0000 (22:49 -0700)
bin/tests/makejournal.c
bin/tools/mdig.c
lib/dns/lib.c
lib/dns/openssl_link.c
lib/ns/tests/nstest.c

index d8df93820e9f9c869175ba4fde0867ecd18a5460..599db75b8a6fa7b04161f1d9ffe2950cd18e7bbb 100644 (file)
@@ -98,12 +98,12 @@ main(int argc, char **argv) {
        CHECK(isc_mem_create(0, 0, &mctx));
        CHECK(isc_entropy_create(mctx, &ectx));
 
-       CHECK(isc_hash_create(mctx, ectx, DNS_NAME_MAXWIRE));
-       hash_active = ISC_TRUE;
-
        CHECK(dst_lib_init(mctx, ectx, ISC_ENTROPY_BLOCKING));
        dst_active = ISC_TRUE;
 
+       CHECK(isc_hash_create(mctx, ectx, DNS_NAME_MAXWIRE));
+       hash_active = ISC_TRUE;
+
        CHECK(isc_log_create(mctx, &lctx, &logconfig));
        isc_log_registercategories(lctx, categories);
        isc_log_setcontext(lctx);
index c1204495a234f93859e100abb560d60b17de0b12..c895f1b56d11e9561fa77538fb44f436d04af7c0 100644 (file)
@@ -1934,12 +1934,11 @@ main(int argc, char *argv[]) {
 
        ectx = NULL;
        RUNCHECK(isc_entropy_create(mctx, &ectx));
+       RUNCHECK(dst_lib_init(mctx, ectx, ISC_ENTROPY_GOODONLY));
        RUNCHECK(isc_hash_create(mctx, ectx, DNS_NAME_MAXWIRE));
        RUNCHECK(isc_entropy_getdata(ectx, cookie_secret,
                                     sizeof(cookie_secret), NULL, 0));
 
-       RUNCHECK(dst_lib_init(mctx, ectx, ISC_ENTROPY_GOODONLY));
-
        ISC_LIST_INIT(queries);
        parse_args(ISC_FALSE, argc, argv);
        if (server == NULL)
index fd73683b478c30e744c9adbabfbdeaace714f55a..fd265c53ec2d8ac7de27f8c0ce2048d1ce6ec551 100644 (file)
@@ -96,6 +96,8 @@ initialize(void) {
        if (result != ISC_R_SUCCESS)
                goto cleanup_dst;
 
+       isc_hash_init();
+
        initialize_done = ISC_TRUE;
        return;
 
index d8973abe212dd99a13c70dad656b50c128e59eaa..0e5a9baf9cda1923fcd790adb94e5fd749a60b7c 100644 (file)
@@ -22,7 +22,6 @@
 
 /*
  * Principal Author: Brian Wellington
- * $Id$
  */
 #ifdef OPENSSL
 
@@ -294,8 +293,8 @@ dst__openssl_init(const char *engine) {
        /* Protect ourselves against unseeded PRNG */
        if (RAND_status() != 1) {
                FATAL_ERROR(__FILE__, __LINE__,
-                           "The OpenSSL pseudo random number generator "
-                           "cannot be initialized (cf the `PRNG not "
+                           "OpenSSL pseudorandom number generator "
+                           "cannot be initialized (see the `PRNG not "
                            "seeded' message in the OpenSSL FAQ)");
        }
 
index 9eb00f5435e3e9d3020b5a4422122841e91f417d..4a9f20e46441198513b51a7c6f8f97c067614d19 100644 (file)
@@ -235,12 +235,12 @@ ns_test_begin(FILE *logfile, isc_boolean_t start_managers) {
        CHECK(isc_mem_create(0, 0, &mctx));
        CHECK(isc_entropy_create(mctx, &ectx));
 
-       CHECK(isc_hash_create(mctx, ectx, DNS_NAME_MAXWIRE));
-       hash_active = ISC_TRUE;
-
        CHECK(dst_lib_init(mctx, ectx, ISC_ENTROPY_BLOCKING));
        dst_active = ISC_TRUE;
 
+       CHECK(isc_hash_create(mctx, ectx, DNS_NAME_MAXWIRE));
+       hash_active = ISC_TRUE;
+
        if (logfile != NULL) {
                isc_logdestination_t destination;
                isc_logconfig_t *logconfig = NULL;