]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Made RAND_status check optional (broke --disable-crypto-rand)
authorFrancis Dupont <fdupont@isc.org>
Sun, 17 Sep 2017 10:02:09 +0000 (12:02 +0200)
committerFrancis Dupont <fdupont@isc.org>
Sun, 17 Sep 2017 10:02:09 +0000 (12:02 +0200)
lib/dns/openssl_link.c

index 0e5a9baf9cda1923fcd790adb94e5fd749a60b7c..9f44f25c3dc23c8ffc3321fbdff200b002d6483e 100644 (file)
@@ -290,6 +290,7 @@ dst__openssl_init(const char *engine) {
 #endif
 #endif /* USE_ENGINE */
 
+#ifdef ISC_PLATFORM_CRYPTORANDOM
        /* Protect ourselves against unseeded PRNG */
        if (RAND_status() != 1) {
                FATAL_ERROR(__FILE__, __LINE__,
@@ -297,6 +298,7 @@ dst__openssl_init(const char *engine) {
                            "cannot be initialized (see the `PRNG not "
                            "seeded' message in the OpenSSL FAQ)");
        }
+#endif
 
        return (ISC_R_SUCCESS);