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

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