ports

morpheus ports
git clone git://git.2f30.org/ports
Log | Files | Refs | LICENSE

elinks-libressl.patch (594B)


      1 --- src/network/ssl/ssl.c.old
      2 +++ src/network/ssl/ssl.c
      3 @@ -50,11 +50,14 @@
      4  	 * cannot initialize the PRNG and so every attempt to use SSL fails.
      5  	 * It's actually an OpenSSL FAQ, and according to them, it's up to the
      6  	 * application coders to seed the RNG. -- William Yodlowsky */
      7 +
      8 +#ifdef HAVE_SSL_RAND_EGD
      9  	if (RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile))) < 0) {
     10  		/* Not an EGD, so read and write to it */
     11  		if (RAND_load_file(f_randfile, -1))
     12  			RAND_write_file(f_randfile);
     13  	}
     14 +#endif
     15  
     16  	SSLeay_add_ssl_algorithms();
     17  	context = SSL_CTX_new(SSLv23_client_method());