commit fd240775e4abd7d064960a31dc7ca31e8acaa385
parent 6762a4bfe230f2ff2d4a4fe42dec398831e51422
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 12 Jul 2014 20:29:19 +0000
elinks: use libressl
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Diffstat:
2 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/elinks/elinks-libressl.patch b/elinks/elinks-libressl.patch
@@ -0,0 +1,17 @@
+--- src/network/ssl/ssl.c.old
++++ src/network/ssl/ssl.c
+@@ -50,11 +50,14 @@
+ * 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 */
++
++#ifdef HAVE_SSL_RAND_EGD
+ if (RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile))) < 0) {
+ /* Not an EGD, so read and write to it */
+ if (RAND_load_file(f_randfile, -1))
+ RAND_write_file(f_randfile);
+ }
++#endif
+
+ SSLeay_add_ssl_algorithms();
+ context = SSL_CTX_new(SSLv23_client_method());
diff --git a/elinks/elinks.mk b/elinks/elinks.mk
@@ -1,5 +1,5 @@
TARG = elinks
-DEPS = zlib bzip2 openssl
+DEPS = zlib bzip2 libressl
<$mkbuild/mk.common-noinst