Module Name: src
Committed By: tls
Date: Wed Mar 7 10:17:48 UTC 2012
Modified Files:
src/crypto/external/bsd/openssl/dist/crypto/rand: md_rand.c
Log Message:
Fix applications that call RAND_bytes() before any other RAND function.
Last change was...a bit too simple.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/crypto/external/bsd/openssl/dist/crypto/rand/md_rand.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/crypto/external/bsd/openssl/dist/crypto/rand/md_rand.c
diff -u src/crypto/external/bsd/openssl/dist/crypto/rand/md_rand.c:1.2 src/crypto/external/bsd/openssl/dist/crypto/rand/md_rand.c:1.3
--- src/crypto/external/bsd/openssl/dist/crypto/rand/md_rand.c:1.2 Mon Mar 5 20:13:36 2012
+++ src/crypto/external/bsd/openssl/dist/crypto/rand/md_rand.c Wed Mar 7 10:17:47 2012
@@ -395,6 +395,7 @@ static int ssleay_rand_bytes(unsigned ch
{
RAND_poll();
+ ok = (entropy >= ENTROPY_NEEDED);
/* If the PRNG state is not yet unpredictable, then seeing
* the PRNG output may help attackers to determine the new