Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Ismael Luceno (55763c2c61d077f21c00ce815f1a15825eb7162c)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (55763c2c61d077f21c00ce815f1a15825eb7162c)
  • Date: Mon, 2 Oct 2017 08:31:01 +0000

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

http/lynx/HISTORY | 3 +++
http/lynx/PRE_BUILD | 3 +++
http/lynx/openssl_api_fix.patch | 19 +++++++++++++++++++
3 files changed, 25 insertions(+)

New commits:
commit 55763c2c61d077f21c00ce815f1a15825eb7162c
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

lynx: Fix building against libressl

diff --git a/http/lynx/HISTORY b/http/lynx/HISTORY
index c426b3e..4c24c9e 100644
--- a/http/lynx/HISTORY
+++ b/http/lynx/HISTORY
@@ -1,3 +1,6 @@
+2017-10-02 Ismael Luceno <ismael AT sourcemage.org>
+ * PRE_BUILD, openssl_api_fix.patch: fixed building against libressl
+
2017-05-07 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: version 2.8.8rel.2
* DETAILS: add gpg checking
diff --git a/http/lynx/PRE_BUILD b/http/lynx/PRE_BUILD
new file mode 100755
index 0000000..92ba3a2
--- /dev/null
+++ b/http/lynx/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+patch -fp1 < "$SPELL_DIRECTORY"/openssl_api_fix.patch
diff --git a/http/lynx/openssl_api_fix.patch b/http/lynx/openssl_api_fix.patch
new file mode 100644
index 0000000..c6183a3
--- /dev/null
+++ b/http/lynx/openssl_api_fix.patch
@@ -0,0 +1,19 @@
+Replace direct manipulation of the SSL struct with proper
+API usage; fixes building against LibreSSL.
+
+--- a/WWW/Library/Implementation/HTTP.c
++++ b/WWW/Library/Implementation/HTTP.c
+@@ -720,7 +720,12 @@ 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;
++#if (!defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >=
0x10100000L) \
++ || LIBRESSL_VERSION_NUMBER >= 0x2060000fL
++ SSL_set_min_proto_version(handle, TLS1_1_VERSION);
++#else
++ SSL_set_options(handle, SSL_OP_NO_TLSv1);
++#endif
+ #if OPENSSL_VERSION_NUMBER >= 0x0090806fL && !defined(OPENSSL_NO_TLSEXT)
+ } else {
+ int ret = (int) SSL_set_tlsext_host_name(handle, ssl_host);



  • [SM-Commit] GIT changes to master grimoire by Ismael Luceno (55763c2c61d077f21c00ce815f1a15825eb7162c), Ismael Luceno, 10/02/2017

Archive powered by MHonArc 2.6.24.

Top of Page