Submitted By: Igor Živković Date: 2015-01-06 Initial Package Version: 5.09 Upstream Status: Unknown Origin: Sabotage Description: Fixes build with LibreSSL. diff -Naur stunnel-5.09.orig/src/ssl.c stunnel-5.09/src/ssl.c --- stunnel-5.09.orig/src/ssl.c 2015-01-02 15:29:55.000000000 +0100 +++ stunnel-5.09/src/ssl.c 2015-01-06 17:05:15.370334060 +0100 @@ -197,6 +197,7 @@ } s_log(LOG_DEBUG, "RAND_screen failed to sufficiently seed PRNG"); #else +#ifdef HAVE_RAND_EGD if(global->egd_sock) { if((bytes=RAND_egd(global->egd_sock))==-1) { s_log(LOG_WARNING, "EGD Socket %s failed", global->egd_sock); @@ -209,6 +210,7 @@ so no need to check if seeded sufficiently */ } } +#endif /* try the good-old default /dev/urandom, if available */ totbytes+=add_rand_file(global, "/dev/urandom"); if(RAND_status())