Discussion:
[SM-imapproxy] [PATCH] remove EGD support
Loganaden Velvindron
2016-03-31 19:57:25 UTC
Permalink
EGD has largely become legacy now.

OpenSSL disables it by default in its latest release, and LibreSSL has
ripped it out completely.

I took the patch from OpenBSD, from an older version.

Index: src/main.c
===================================================================
--- src/main.c (revision 14549)
+++ src/main.c (working copy)
@@ -452,13 +452,8 @@
/* Set up OpenSSL thread protection */
ssl_thread_setup(fn);

- /* Need to seed PRNG, too! */
- if ( RAND_egd( ( RAND_file_name( f_randfile, sizeof( f_randfile ) )
== f_randfile ) ? f_randfile : "/.rnd" ) )
- {
- /* Not an EGD, so read and write it. */
- if ( RAND_load_file( f_randfile, -1 ) )
+ if ( RAND_load_file( f_randfile, -1 ) )
RAND_write_file( f_randfile );
- }

SSL_load_error_strings();



------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
-----
squirrelmail-imapproxy mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-***@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.imapproxy
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-imapproxy
Paul Lesniewski
2016-09-14 00:01:27 UTC
Permalink
Post by Loganaden Velvindron
EGD has largely become legacy now.
OpenSSL disables it by default in its latest release, and LibreSSL has
ripped it out completely.
I took the patch from OpenBSD, from an older version.
Committed. Thank you.
Post by Loganaden Velvindron
Index: src/main.c
===================================================================
--- src/main.c (revision 14549)
+++ src/main.c (working copy)
@@ -452,13 +452,8 @@
/* Set up OpenSSL thread protection */
ssl_thread_setup(fn);
- /* Need to seed PRNG, too! */
- if ( RAND_egd( ( RAND_file_name( f_randfile, sizeof( f_randfile ) )
== f_randfile ) ? f_randfile : "/.rnd" ) )
- {
- /* Not an EGD, so read and write it. */
- if ( RAND_load_file( f_randfile, -1 ) )
+ if ( RAND_load_file( f_randfile, -1 ) )
RAND_write_file( f_randfile );
- }
SSL_load_error_strings();
--
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php
Paul Lesniewski
2016-09-14 03:05:43 UTC
Permalink
Post by Paul Lesniewski
Post by Loganaden Velvindron
EGD has largely become legacy now.
OpenSSL disables it by default in its latest release, and LibreSSL has
ripped it out completely.
I took the patch from OpenBSD, from an older version.
Committed. Thank you.
Actually, sorry, I reversed this and used a different patch from the BSD
team that makes its use conditional. Please do let me know if this
creates any problems.

Thanks again!
--
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php
Loading...