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

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