From a8f9efde83e3b074f149400ae8e65f2b6dc913b1 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sun, 21 Feb 2016 00:35:55 +0100 Subject: [PATCH] libwebsockets: add libressl patch --- .../libwebsockets/patches/fix-libressl.diff | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/libwebsockets/patches/fix-libressl.diff diff --git a/srcpkgs/libwebsockets/patches/fix-libressl.diff b/srcpkgs/libwebsockets/patches/fix-libressl.diff new file mode 100644 index 00000000000..dd39abaadc4 --- /dev/null +++ b/srcpkgs/libwebsockets/patches/fix-libressl.diff @@ -0,0 +1,18 @@ +diff --git a/lib/ssl.c b/lib/ssl.c +index ac3ad2e..88906e7 100644 +--- lib/ssl.c ++++ lib/ssl.c +@@ -339,13 +339,6 @@ lws_context_init_server_ssl(struct lws_context_creation_info *info, + if (lws_context_ssl_init_ecdh(context)) + return 1; + +-#if OPENSSL_VERSION_NUMBER >= 0x10200000L +- n = SSL_CTX_build_cert_chain((SSL_CTX *)user, +- SSL_BUILD_CHAIN_FLAG_CHECK | +- SSL_BUILD_CHAIN_FLAG_IGNORE_ERROR); +- lwsl_notice("%s: build cert chain %d", __func__, n); +-#endif +- + /* + * SSL is happy and has a cert it's content with + * If we're supporting HTTP2, initialize that