Browse Source

lynx: fix compile

Waldemar Brodkorb 7 years ago
parent
commit
5a84ff982c
1 changed files with 11 additions and 0 deletions
  1. 11 0
      package/lynx/patches/patch-WWW_Library_Implementation_HTTP_c

+ 11 - 0
package/lynx/patches/patch-WWW_Library_Implementation_HTTP_c

@@ -0,0 +1,11 @@
+--- lynx2-8-8.orig/WWW/Library/Implementation/HTTP.c	2014-01-11 20:06:15.000000000 +0100
++++ lynx2-8-8/WWW/Library/Implementation/HTTP.c	2017-06-05 13:30:53.165071650 +0200
+@@ -720,7 +720,7 @@ static int HTLoadHTTP(const char *arg,
+ #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);
+ #if OPENSSL_VERSION_NUMBER >= 0x0090806fL && !defined(OPENSSL_NO_TLSEXT)
+ 	} else {
+ 	    int ret = (int) SSL_set_tlsext_host_name(handle, ssl_host);