2012-05-17 00:21:36 +02:00
|
|
|
--- entropy.c.orig
|
|
|
|
+++ entropy.c
|
2012-05-29 09:11:57 +02:00
|
|
|
@@ -216,12 +216,13 @@ seed_rng(void)
|
|
|
|
* allow 1.0.1 to work with 1.0.0). Going backwards is only allowed
|
|
|
|
* within a patch series.
|
2012-05-17 00:21:36 +02:00
|
|
|
*/
|
2012-05-29 09:11:57 +02:00
|
|
|
+#if 0
|
|
|
|
u_long version_mask = SSLeay() >= 0x1000000f ? ~0xffff0L : ~0xff0L;
|
|
|
|
if (((SSLeay() ^ OPENSSL_VERSION_NUMBER) & version_mask) ||
|
|
|
|
(SSLeay() >> 12) < (OPENSSL_VERSION_NUMBER >> 12))
|
2012-05-17 00:21:36 +02:00
|
|
|
fatal("OpenSSL version mismatch. Built against %lx, you "
|
|
|
|
"have %lx", (u_long)OPENSSL_VERSION_NUMBER, SSLeay());
|
|
|
|
-
|
2012-05-29 09:11:57 +02:00
|
|
|
+#endif
|
2012-05-17 00:21:36 +02:00
|
|
|
#ifndef OPENSSL_PRNG_ONLY
|
|
|
|
if (RAND_status() == 1) {
|
|
|
|
debug3("RNG is ready, skipping seeding");
|