Author: igor Date: Tue Jan 6 08:11:03 2015 New Revision: 3102 Log: fix stunnel build with libressl
Added: trunk/stunnel/stunnel-5.09-libressl-1.patch Added: trunk/stunnel/stunnel-5.09-libressl-1.patch ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ trunk/stunnel/stunnel-5.09-libressl-1.patch Tue Jan 6 08:11:03 2015 (r3102) @@ -0,0 +1,26 @@ +Submitted By: Igor Živković <[email protected]> +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()) -- http://lists.linuxfromscratch.org/listinfo/patches FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
