67a5cd
From 48d86dd3d834bcedd0c977d193c36b12e8398b4e Mon Sep 17 00:00:00 2001
67a5cd
From: Francis Dupont <fdupont@isc.org>
67a5cd
Date: Sun, 17 Sep 2017 12:02:09 +0200
67a5cd
Subject: [PATCH] Made RAND_status check optional (broke --disable-crypto-rand)
67a5cd
67a5cd
---
67a5cd
 lib/dns/openssl_link.c | 2 ++
67a5cd
 1 file changed, 2 insertions(+)
67a5cd
67a5cd
diff --git a/lib/dns/openssl_link.c b/lib/dns/openssl_link.c
67a5cd
index 91e87d0..3cddaa9 100644
67a5cd
--- a/lib/dns/openssl_link.c
67a5cd
+++ b/lib/dns/openssl_link.c
67a5cd
@@ -289,6 +289,7 @@ dst__openssl_init(const char *engine) {
67a5cd
 #endif
67a5cd
 #endif /* !defined(OPENSSL_NO_ENGINE) */
67a5cd
 
67a5cd
+#ifdef ISC_PLATFORM_CRYPTORANDOM
67a5cd
 	/* Protect ourselves against unseeded PRNG */
67a5cd
 	if (RAND_status() != 1) {
67a5cd
 		FATAL_ERROR(__FILE__, __LINE__,
67a5cd
@@ -296,6 +297,7 @@ dst__openssl_init(const char *engine) {
67a5cd
 			    "cannot be initialized (see the `PRNG not "
67a5cd
 			    "seeded' message in the OpenSSL FAQ)");
67a5cd
 	}
67a5cd
+#endif
67a5cd
 
67a5cd
 	return (ISC_R_SUCCESS);
67a5cd
 
67a5cd
-- 
67a5cd
2.20.1
67a5cd