patch-src_main_c 869 B

123456789101112131415161718192021222324
  1. $OpenBSD: patch-src_main_c,v 1.1 2014/04/19 15:22:32 sthen Exp $
  2. --- src/main.c.orig Sat Apr 19 16:19:37 2014
  3. +++ src/main.c Sat Apr 19 16:19:59 2014
  4. @@ -470,15 +470,10 @@ int main( int argc, char *argv[] )
  5. /* Set up OpenSSL thread protection */
  6. ssl_thread_setup(fn);
  7. -
  8. - /* Need to seed PRNG, too! */
  9. - if ( RAND_egd( ( RAND_file_name( f_randfile, sizeof( f_randfile ) ) == f_randfile ) ? f_randfile : "/.rnd" ) )
  10. - {
  11. - /* Not an EGD, so read and write it. */
  12. - if ( RAND_load_file( f_randfile, -1 ) )
  13. - RAND_write_file( f_randfile );
  14. - }
  15. -
  16. +
  17. + if ( RAND_load_file( f_randfile, -1 ) )
  18. + RAND_write_file( f_randfile );
  19. +
  20. SSL_load_error_strings();
  21. tls_ctx = SSL_CTX_new( TLSv1_client_method() );
  22. if ( tls_ctx == NULL )