lynx-dev
[Top][All Lists]
Advanced

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

Re: [Lynx-dev] [PATCH] compile with OpenSSL 1.1.0b; WWW/Library/Implemen


From: Thomas Dickey
Subject: Re: [Lynx-dev] [PATCH] compile with OpenSSL 1.1.0b; WWW/Library/Implementation/HTTP.c
Date: Thu, 27 Oct 2016 16:54:32 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Oct 27, 2016 at 08:58:21PM +0900, Taketo Kabe wrote:
> I tried to compile Lynx 2.8.8rel2 with latest OpenSSL 1.1.0b, but failed with
> >> ../../../WWW/Library/Implementation/HTTP.c:723: dereferencing pointer to 
> >> incomplete type
> 
> The code tries to access the opaque pointer->options, which seems the
> last part left of directly accessing the struct member.
> Patch below fixed it.
> 
> --- ./WWW/Library/Implementation/HTTP.c.dist  Thu Oct 27 20:10:54 2016
> +++ ./WWW/Library/Implementation/HTTP.c       Thu Oct 27 20:38:01 2016
> @@ -720,7 +720,11 @@
>  #elif SSLEAY_VERSION_NUMBER >= 0x0900
>  #ifndef USE_NSS_COMPAT_INCL
>       if (!try_tls) {
> -         handle->options |= SSL_OP_NO_TLSv1;
> +#if OPENSSL_VERSION_NUMBER >= 0x10100000L
> +         SSL_set_min_proto_version(handle,TLS1_VERSION);
> +#else
> +         SSL_set_options(handle, SSL_OP_NO_TLSv1);
> +#endif

Kamil Dudka sent me this last week:

@@ -802,7 +802,7 @@
 #elif SSLEAY_VERSION_NUMBER >= 0x0900
 #ifndef USE_NSS_COMPAT_INCL
        if (!try_tls) {
-           handle->options |= SSL_OP_NO_TLSv1;
+           SSL_set_options(handle, SSL_OP_NO_TLSv1);
            CTRACE((tfp, "...adding SSL_OP_NO_TLSv1\n"));
        }

thanks

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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