bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Use of 'ssl_st'


From: Tim Ruehsen
Subject: Re: [Bug-wget] Use of 'ssl_st'
Date: Thu, 05 Feb 2015 16:58:10 +0100
User-agent: KMail/4.14.2 (Linux/3.16.0-4-amd64; KDE/4.14.2; x86_64; ; )

Hi Gisle,

thanks for your hint and your work.

I already read about this problem... other projects are touched as well.
But I would not commit such a patch right now. Let's wait until there is an 
'official' way to fix it.

Regarding BoringSSL (and other SSL libraries)
There is an idea of an 'virtual' SSL Library (providing one API) with 
exchangeable engines. The cURL project includes code and Daniel Stenberg 
offered his help/knowledge if someone wants to put this into a library.
Maybe you are the one to start with !?

Tim

On Thursday 05 February 2015 16:30:00 Gisle Vanem wrote:
> The recent changes in OpenSSL's API has caused libcurl, Wget
> and probably other packages to break. Here is one example:
> 
>    openssl.c(548) : error C2037: left of 'state' specifies undefined
> struct/union 'ssl_st'
> 
> This structure is now tucked away in ssl_locl.h.
> 
> What can be done about this? There is probably a function/macro
> for it now. Here I just did a:
> 
> --- a/openssl.c   2015-02-05 15:31:22 +0000
> +++ b/openssl.c   2015-02-05 16:22:54 +0000
> @@ -545,7 +545,11 @@
>       DEBUGP (("SSL handshake timed out.\n"));
>       goto timeout;
>     }
> -  if (scwt_ctx.result <= 0 || conn->state != SSL_ST_OK)
> +  if (scwt_ctx.result <= 0
> +#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
> +   || conn->state != SSL_ST_OK
> +#endif
> +   )
>       goto error;
> 
>     ctx = xnew0 (struct openssl_transport_context);
> 
> PS. Would it one day be possible to build Wget using BoringSSL?
>    https://boringssl.googlesource.com/
> AFAIK, BoringSSL aims at OpenSSL compatibility, But it's not quite
> there yet.

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]