Blame openssh-5.3p1-randclean.patch
|
Jan F. Chadima |
e39eb5 |
diff -up openssh-5.3p1/entropy.c.randclean openssh-5.3p1/entropy.c
|
|
Jan F. Chadima |
e39eb5 |
--- openssh-5.3p1/entropy.c.randclean 2010-01-21 09:26:30.000000000 +0100
|
|
Jan F. Chadima |
e39eb5 |
+++ openssh-5.3p1/entropy.c 2010-01-21 09:26:37.000000000 +0100
|
|
Jan F. Chadima |
e39eb5 |
@@ -159,6 +159,9 @@ init_rng(void)
|
|
Jan F. Chadima |
e39eb5 |
fatal("OpenSSL version mismatch. Built against %lx, you "
|
|
Jan F. Chadima |
e39eb5 |
"have %lx", OPENSSL_VERSION_NUMBER, SSLeay());
|
|
Jan F. Chadima |
28355b |
|
|
Jan F. Chadima |
28355b |
+ /* clean the PRNG status when exiting the program */
|
|
Jan F. Chadima |
28355b |
+ atexit(RAND_cleanup);
|
|
Jan F. Chadima |
28355b |
+
|
|
Jan F. Chadima |
e39eb5 |
#ifndef OPENSSL_PRNG_ONLY
|
|
Jan F. Chadima |
e39eb5 |
original_uid = getuid();
|
|
Jan F. Chadima |
e39eb5 |
original_euid = geteuid();
|