diff options
Diffstat (limited to 'www/elinks')
-rw-r--r-- | www/elinks/Makefile | 3 | ||||
-rw-r--r-- | www/elinks/files/patch-src_network_ssl_ssl.c | 14 |
2 files changed, 15 insertions, 2 deletions
diff --git a/www/elinks/Makefile b/www/elinks/Makefile index 4d2bf659872d..c4489ede3f70 100644 --- a/www/elinks/Makefile +++ b/www/elinks/Makefile @@ -11,8 +11,7 @@ MAINTAINER= beat@FreeBSD.org COMMENT= Links text WWW browser with enhancements GNU_CONFIGURE= yes -USES= bison cpe execinfo gmake localbase tar:bzip2 -USE_OPENSSL= yes +USES= bison cpe execinfo gmake localbase ssl tar:bzip2 CONFIGURE_ARGS= --without-zlib LIBS+= -lexecinfo diff --git a/www/elinks/files/patch-src_network_ssl_ssl.c b/www/elinks/files/patch-src_network_ssl_ssl.c new file mode 100644 index 000000000000..e1497ae2e927 --- /dev/null +++ b/www/elinks/files/patch-src_network_ssl_ssl.c @@ -0,0 +1,14 @@ +--- src/network/ssl/ssl.c.orig 2009-08-22 13:15:08.000000000 +0200 ++++ src/network/ssl/ssl.c 2015-03-21 12:41:15.886709287 +0100 +@@ -49,7 +49,10 @@ init_openssl(struct module *module) + * cannot initialize the PRNG and so every attempt to use SSL fails. + * It's actually an OpenSSL FAQ, and according to them, it's up to the + * application coders to seed the RNG. -- William Yodlowsky */ +- if (RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile))) < 0) { ++#ifndef OPENSSL_NO_EGD ++ if (RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile))) < 0) ++#endif ++ { + /* Not an EGD, so read and write to it */ + if (RAND_load_file(f_randfile, -1)) + RAND_write_file(f_randfile); |