|
|
89a891 |
From c79ff443ba029eaf7da8781aef0b1ddbed467781 Mon Sep 17 00:00:00 2001
|
|
|
89a891 |
From: Petr Mensik <pemensik@redhat.com>
|
|
|
89a891 |
Date: Fri, 14 Jun 2019 12:30:01 +0200
|
|
|
89a891 |
Subject: [PATCH] Fix OpenSSL random generator warnings Squashed commit of the
|
|
|
89a891 |
following:
|
|
|
89a891 |
|
|
|
89a891 |
commit 70492c6361e55309dae0e48ae031e295f0a46a5e
|
|
|
89a891 |
Author: Evan Hunt <each@isc.org>
|
|
|
89a891 |
Date: Sat Sep 16 21:01:06 2017 -0700
|
|
|
89a891 |
|
|
|
89a891 |
[master] silence compiler warning
|
|
|
89a891 |
|
|
|
89a891 |
(cherry picked from commit 6e5ae91479408540f04337c9dc27c3f3fffae6c7)
|
|
|
89a891 |
|
|
|
89a891 |
commit 4d8c2767b584d993eb898d2210c85ffce214d1dc
|
|
|
89a891 |
Author: Mark Andrews <marka@isc.org>
|
|
|
89a891 |
Date: Fri Dec 22 08:48:38 2017 +1100
|
|
|
89a891 |
|
|
|
89a891 |
add POST(argc);
|
|
|
89a891 |
|
|
|
89a891 |
(cherry picked from commit be5a0eaa7adafc454658e09672d865eb453baeab)
|
|
|
89a891 |
(cherry picked from commit 0163c3b8130cbed705c3267948ab49eebe26286d)
|
|
|
89a891 |
|
|
|
89a891 |
commit c64b5b10a3a175482b89eddbe63d8b5107a2fbf3
|
|
|
89a891 |
Author: Petr Mensik <pemensik@redhat.com>
|
|
|
89a891 |
Date: Thu Jun 13 22:23:14 2019 +0200
|
|
|
89a891 |
|
|
|
89a891 |
fixup! completed and corrected the crypto-random change
|
|
|
89a891 |
---
|
|
|
89a891 |
bin/named/server.c | 3 +++
|
|
|
89a891 |
bin/tests/system/tkey/keydelete.c | 1 +
|
|
|
89a891 |
lib/dns/tests/dstrandom_test.c | 3 +--
|
|
|
89a891 |
3 files changed, 5 insertions(+), 2 deletions(-)
|
|
|
89a891 |
|
|
|
89a891 |
diff --git a/bin/named/server.c b/bin/named/server.c
|
|
|
89a891 |
index db0270900f..1afb461226 100644
|
|
|
89a891 |
--- a/bin/named/server.c
|
|
|
89a891 |
+++ b/bin/named/server.c
|
|
|
89a891 |
@@ -8100,6 +8100,8 @@ load_configuration(const char *filename, ns_server_t *server,
|
|
|
89a891 |
}
|
|
|
89a891 |
#endif
|
|
|
89a891 |
} else {
|
|
|
89a891 |
+ result = isc_entropy_createfilesource(ns_g_entropy,
|
|
|
89a891 |
+ randomdev);
|
|
|
89a891 |
#ifdef PATH_RANDOMDEV
|
|
|
89a891 |
if (ns_g_fallbackentropy != NULL) {
|
|
|
89a891 |
level = ISC_LOG_INFO;
|
|
|
89a891 |
@@ -8893,6 +8895,7 @@ ns_server_create(isc_mem_t *mctx, ns_server_t **serverp) {
|
|
|
89a891 |
server->in_roothints = NULL;
|
|
|
89a891 |
server->blackholeacl = NULL;
|
|
|
89a891 |
server->keepresporder = NULL;
|
|
|
89a891 |
+ server->rngctx = NULL;
|
|
|
89a891 |
|
|
|
89a891 |
/* Must be first. */
|
|
|
89a891 |
CHECKFATAL(dst_lib_init2(ns_g_mctx, ns_g_entropy,
|
|
|
89a891 |
diff --git a/bin/tests/system/tkey/keydelete.c b/bin/tests/system/tkey/keydelete.c
|
|
|
89a891 |
index 3d5ac74486..55ebb66a60 100644
|
|
|
89a891 |
--- a/bin/tests/system/tkey/keydelete.c
|
|
|
89a891 |
+++ b/bin/tests/system/tkey/keydelete.c
|
|
|
89a891 |
@@ -172,6 +172,7 @@ main(int argc, char **argv) {
|
|
|
89a891 |
randomfile = argv[2];
|
|
|
89a891 |
argv += 2;
|
|
|
89a891 |
argc -= 2;
|
|
|
89a891 |
+ POST(argc);
|
|
|
89a891 |
}
|
|
|
89a891 |
keyname = argv[1];
|
|
|
89a891 |
|
|
|
89a891 |
diff --git a/lib/dns/tests/dstrandom_test.c b/lib/dns/tests/dstrandom_test.c
|
|
|
89a891 |
index d2c72e7685..56738d14a4 100644
|
|
|
89a891 |
--- a/lib/dns/tests/dstrandom_test.c
|
|
|
89a891 |
+++ b/lib/dns/tests/dstrandom_test.c
|
|
|
89a891 |
@@ -14,8 +14,6 @@
|
|
|
89a891 |
* PERFORMANCE OF THIS SOFTWARE.
|
|
|
89a891 |
*/
|
|
|
89a891 |
|
|
|
89a891 |
-/* $Id$ */
|
|
|
89a891 |
-
|
|
|
89a891 |
/*! \file */
|
|
|
89a891 |
|
|
|
89a891 |
#include <config.h>
|
|
|
89a891 |
@@ -24,6 +22,7 @@
|
|
|
89a891 |
|
|
|
89a891 |
#include <stdio.h>
|
|
|
89a891 |
#include <string.h>
|
|
|
89a891 |
+#include <unistd.h>
|
|
|
89a891 |
|
|
|
89a891 |
#include <isc/entropy.h>
|
|
|
89a891 |
#include <isc/mem.h>
|
|
|
89a891 |
--
|
|
|
89a891 |
2.20.1
|
|
|
89a891 |
|