[or-cvs] Okay, try to use RAND_poll() from OpenSSL where available.

Nick Mathewson nickm at seul.org
Sat Oct 8 05:47:18 UTC 2005


Update of /home/or/cvsroot/tor/src/common
In directory moria:/tmp/cvs-serv14563/src/common

Modified Files:
	crypto.c 
Log Message:
Okay, try to use RAND_poll() from OpenSSL where available.

Index: crypto.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/crypto.c,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -d -r1.167 -r1.168
--- crypto.c	7 Oct 2005 19:53:57 -0000	1.167
+++ crypto.c	8 Oct 2005 05:47:15 -0000	1.168
@@ -1581,8 +1581,7 @@
 
 /* Use RAND_poll if openssl is 0.9.6 release or later.  (The "f" means
    "release".)  */
-// #define USE_RAND_POLL (OPENSSL_VERSION_NUMBER >= 0x0090600fl)
-#define USE_RAND_POLL 0
+#define USE_RAND_POLL (OPENSSL_VERSION_NUMBER >= 0x0090600fl)
 
 /** Seed OpenSSL's random number generator with bytes from the
  * operating system.  Return 0 on success, -1 on failure.



More information about the tor-commits mailing list