Blame openssh-5.9p1-randclean.patch
|
Jan F. Chadima |
69dd72 |
diff -up openssh-5.9p0/entropy.c.randclean openssh-5.9p0/entropy.c
|
|
Jan F. Chadima |
69dd72 |
--- openssh-5.9p0/entropy.c.randclean 2011-08-30 13:52:45.000000000 +0200
|
|
Jan F. Chadima |
69dd72 |
+++ openssh-5.9p0/entropy.c 2011-08-30 13:57:44.630111338 +0200
|
|
Jan F. Chadima |
69dd72 |
@@ -217,6 +217,9 @@ seed_rng(void)
|
|
Jan F. Chadima |
69dd72 |
fatal("OpenSSL version mismatch. Built against %lx, you "
|
|
Jan F. Chadima |
69dd72 |
"have %lx", (u_long)OPENSSL_VERSION_NUMBER, SSLeay());
|
|
Jan F. Chadima |
69dd72 |
|
|
Jan F. Chadima |
69dd72 |
+ /* clean the PRNG status when exiting the program */
|
|
Jan F. Chadima |
69dd72 |
+ atexit(RAND_cleanup);
|
|
Jan F. Chadima |
69dd72 |
+
|
|
Jan F. Chadima |
69dd72 |
#ifndef OPENSSL_PRNG_ONLY
|
|
Jan F. Chadima |
69dd72 |
if (RAND_status() == 1) {
|
|
Jan F. Chadima |
69dd72 |
debug3("RNG is ready, skipping seeding");
|