[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] [PATCH] OpenSSL TLSv1+ regression in wget-1.16
From: |
Jérémie Courrèges-Anglas |
Subject: |
Re: [Bug-wget] [PATCH] OpenSSL TLSv1+ regression in wget-1.16 |
Date: |
Tue, 02 Dec 2014 18:49:28 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (berkeley-unix) |
Darshit Shah <address@hidden> writes:
> I'll push it in a while after adding the ChangeLog entry.
>
> Though I noticed a Patch 1/2 in the git mail header. Is there any other
> patch that we should know about?
Yup, the first one was sent in a hurry (good catch!).
With this wget should build out of the box on OpenBSD. We'll still keep
local patches in our ports tree to fix paths in the documentation,
though.
Cheers,
From 4142db8a2ba462cd2d764c09d0e4996e23ca13c2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Courr=C3=A8ges-Anglas?= <address@hidden>
Date: Mon, 1 Dec 2014 13:43:22 +0100
Subject: [PATCH 2/2] openssl backend: detect the availability of RAND_egd
Alternatives like LibreSSL don't provide RAND_egd() anymore.
Fixes compilation on OpenBSD.
---
configure.ac | 1 +
src/openssl.c | 2 ++
2 files changed, 3 insertions(+)
diff --git a/configure.ac b/configure.ac
index 43949a2..26d72b6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -392,6 +392,7 @@ AS_IF([test x"$with_ssl" = xopenssl], [
AC_MSG_NOTICE([compiling in support for SSL via OpenSSL])
AC_LIBOBJ([openssl])
LIBS="$LIBSSL $LIBS"
+ AC_CHECK_FUNCS([RAND_egd])
elif test x"$with_ssl" != x
then
AC_MSG_ERROR([--with-ssl=openssl was given, but SSL is not available.])
diff --git a/src/openssl.c b/src/openssl.c
index 81da5a2..3a975ff 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -91,9 +91,11 @@ init_prng (void)
if (RAND_status ())
return;
+#ifdef HAVE_RAND_EGD
/* Get random data from EGD if opt.egd_file was used. */
if (opt.egd_file && *opt.egd_file)
RAND_egd (opt.egd_file);
+#endif
if (RAND_status ())
return;
--
2.1.3
--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE
signature.asc
Description: PGP signature
- [Bug-wget] [PATCH] OpenSSL TLSv1+ regression in wget-1.16, Jérémie Courrèges-Anglas, 2014/12/02
- Re: [Bug-wget] [PATCH] OpenSSL TLSv1+ regression in wget-1.16, Tim Ruehsen, 2014/12/02
- Re: [Bug-wget] [PATCH] OpenSSL TLSv1+ regression in wget-1.16, Darshit Shah, 2014/12/02
- Re: [Bug-wget] [PATCH] OpenSSL TLSv1+ regression in wget-1.16,
Jérémie Courrèges-Anglas <=
- Re: [Bug-wget] [PATCH] OpenSSL TLSv1+ regression in wget-1.16, Darshit Shah, 2014/12/02
- Re: [Bug-wget] [PATCH] OpenSSL TLSv1+ regression in wget-1.16, Giuseppe Scrivano, 2014/12/03
- Re: [Bug-wget] [PATCH] OpenSSL TLSv1+ regression in wget-1.16, Jérémie Courrèges-Anglas, 2014/12/03
- Re: [Bug-wget] [PATCH] OpenSSL TLSv1+ regression in wget-1.16, Tim Rühsen, 2014/12/03
- Re: [Bug-wget] [PATCH] OpenSSL TLSv1+ regression in wget-1.16, Tim Ruehsen, 2014/12/04
- Re: [Bug-wget] [PATCH] OpenSSL TLSv1+ regression in wget-1.16, Jérémie Courrèges-Anglas, 2014/12/05
- Re: [Bug-wget] [PATCH] OpenSSL TLSv1+ regression in wget-1.16, Tim Ruehsen, 2014/12/17
- Re: [Bug-wget] [PATCH] OpenSSL TLSv1+ regression in wget-1.16, Jérémie Courrèges-Anglas, 2014/12/17