From bbb81af55000bf7e2b59ba1f542de5a7d8478ee7 Mon Sep 17 00:00:00 2001 From: Arnavion Date: Sat, 14 Feb 2015 00:31:41 -0800 Subject: 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. --- src/common/ssl.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/common/ssl.c') 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); } -- cgit 1.4.1