Blame SOURCES/elinks-0.11.0-ssl-noegd.patch

06c6ff
--- elinks-0.11.0/src/network/ssl/ssl.c.noegd	2006-01-10 09:24:50.000000000 +0100
06c6ff
+++ elinks-0.11.0/src/network/ssl/ssl.c	2006-01-10 09:25:01.000000000 +0100
06c6ff
@@ -44,18 +44,6 @@ SSL_CTX *context = NULL;
06c6ff
 static void
06c6ff
 init_openssl(struct module *module)
06c6ff
 {
06c6ff
-	unsigned char f_randfile[PATH_MAX];
06c6ff
-
06c6ff
-	/* In a nutshell, on OS's without a /dev/urandom, the OpenSSL library
06c6ff
-	 * cannot initialize the PRNG and so every attempt to use SSL fails.
06c6ff
-	 * It's actually an OpenSSL FAQ, and according to them, it's up to the
06c6ff
-	 * application coders to seed the RNG. -- William Yodlowsky */
06c6ff
-	if (RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile))) < 0) {
06c6ff
-		/* Not an EGD, so read and write to it */
06c6ff
-		if (RAND_load_file(f_randfile, -1))
06c6ff
-			RAND_write_file(f_randfile);
06c6ff
-	}
06c6ff
-
06c6ff
 	SSLeay_add_ssl_algorithms();
06c6ff
 	context = SSL_CTX_new(SSLv23_client_method());
06c6ff
 	SSL_CTX_set_options(context, SSL_OP_ALL);