summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2015-02-14 00:31:41 -0800
committerArnavion <arnavion@gmail.com>2015-02-14 00:31:41 -0800
commitbbb81af55000bf7e2b59ba1f542de5a7d8478ee7 (patch)
tree043db567add3947b3e6c01b54bde592b92875a53
parenta22816fbbd4adb08b054de0f2f393474737e5da3 (diff)
Removed unnecessary Windows-only code for seeding openssl's RNG.
openssl seeds itself with CryptGenRandom on Windows in the same manner as /dev/(u)random on other OSes.
-rw-r--r--src/common/ssl.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/common/ssl.c b/src/common/ssl.c
index 2e34a1e5..de1d946b 100644
--- a/src/common/ssl.c
+++ b/src/common/ssl.c
@@ -106,15 +106,6 @@ _SSL_context_init (void (*info_cb_func))
 	/* used in SSL_connect(), SSL_accept() */
 	SSL_CTX_set_info_callback (ctx, info_cb_func);
 
-#ifdef WIN32
-	/* under win32, OpenSSL needs to be seeded with some randomness */
-	for (i = 0; i < 128; i++)
-	{
-		r = rand ();
-		RAND_seed ((unsigned char *)&r, sizeof (r));
-	}
-#endif
-
 	return(ctx);
 }