patch-src_network_ssl_ssl_c 764 B

12345678910111213141516
  1. --- elinks-0.11.7.orig/src/network/ssl/ssl.c 2009-08-22 13:15:08.000000000 +0200
  2. +++ elinks-0.11.7/src/network/ssl/ssl.c 2016-09-30 18:47:20.022831750 +0200
  3. @@ -49,11 +49,8 @@ init_openssl(struct module *module)
  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. - if (RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile))) < 0) {
  8. - /* Not an EGD, so read and write to it */
  9. - if (RAND_load_file(f_randfile, -1))
  10. - RAND_write_file(f_randfile);
  11. - }
  12. + if (RAND_load_file(f_randfile, -1))
  13. + RAND_write_file(f_randfile);
  14. SSLeay_add_ssl_algorithms();
  15. context = SSL_CTX_new(SSLv23_client_method());