Hi,

The current SquirrelMail IMAP proxy does not build with LibreSSL due
to LibreSSL dropping support for the perl EGD (entropy gathering
daemon). There are currently NO supported operating systems requiring
the perl EGD, all supported OS's have a random device that exceeds the
performance and randomness of the EGD. Most OS's have had proper RNGs
for many years.

To fix build with LibreSSL, I've added a configure check for RAND_egd
and an #ifdef around the line of code preventing building without it.
This is part of a larger effort to make all ports build on FreeBSD
with LibreSSL (see https://wiki.freebsd.org/LibreSSL) and provide the
patches to upstream projects.

Attached patches do not include the changes to config.h.in and
configure as these are regenerated by the FreeBSD port. The FreeBSD
port already contained additional patches to the code which have not
been included in these patches. You can view the original patches at
https://svnweb.freebsd.org/ports/head/mail/up-imapproxy/files/ and the
new patches at https://github.com/Sp1l/ports/tree/master/mail/up-imapproxy

Hope that you'll include these patches into your code!

Kind regards,

Bernard Spil.

Attachment: patch-configure.in
Description: Binary data

--- src/main.c.orig	2010-07-26 07:21:19 UTC
+++ src/main.c
@@ -472,7 +472,9 @@ int main( int argc, char *argv[] )
 	    ssl_thread_setup(fn);
 	    
             /* Need to seed PRNG, too! */
+#ifdef HAVE_RAND_EGD
             if ( RAND_egd( ( RAND_file_name( f_randfile, sizeof( f_randfile ) ) == f_randfile ) ? f_randfile : "/.rnd" ) ) 
+#endif
 	    {
                 /* Not an EGD, so read and write it. */
                 if ( RAND_load_file( f_randfile, -1 ) )
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
-----
squirrelmail-imapproxy mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.imapproxy
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-imapproxy

Reply via email to