freebsd-ports/mail/up-imapproxy/files/patch-src_main.c
Bernard Spil b0339417b3 mail/up-imapproxy: Fix build without EGD methods
- Use OPENSSL_NO_EGD define to fix build
  - Replace USE_OPENSSL with new USES= ssl

PR:		200237
2016-07-03 10:01:53 +00:00

12 lines
471 B
C

--- src/main.c.orig 2016-01-29 18:11:40 UTC
+++ src/main.c
@@ -473,7 +473,9 @@ int main( int argc, char *argv[] )
ssl_thread_setup(fn);
/* Need to seed PRNG, too! */
+#ifndef OPENSSL_NO_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 ) )