summaryrefslogtreecommitdiff
path: root/pkg/libressl/patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-04-24 00:13:02 -0700
committerMichael Forney <mforney@mforney.org>2019-04-24 00:13:20 -0700
commitd4dbd89012a669ce85e27488b5e6ed294b30be3f (patch)
treefa621f1706492f68a799b402f66813e8dfb248ed /pkg/libressl/patch
parent064c90cc028bd558f74245cb845526f0be21aabb (diff)
libressl: Update to 2.9.1
Diffstat (limited to 'pkg/libressl/patch')
-rw-r--r--pkg/libressl/patch/0001-Use-plain-vsyslog-for-OPENSSL_showfatal.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkg/libressl/patch/0001-Use-plain-vsyslog-for-OPENSSL_showfatal.patch b/pkg/libressl/patch/0001-Use-plain-vsyslog-for-OPENSSL_showfatal.patch
new file mode 100644
index 00000000..4df04c88
--- /dev/null
+++ b/pkg/libressl/patch/0001-Use-plain-vsyslog-for-OPENSSL_showfatal.patch
@@ -0,0 +1,31 @@
+From a16c45e3c7b271fb74a83d84e83189858b9b88bb Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Wed, 24 Apr 2019 00:07:34 -0700
+Subject: [PATCH] Use plain vsyslog for OPENSSL_showfatal
+
+The compat version just ignores the second argument anyway, and
+patching it out allows us to continue to ignore the compat functions.
+---
+ crypto/cryptlib.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c
+index 38d31e7ac..d6eface9b 100644
+--- a/crypto/cryptlib.c
++++ b/crypto/cryptlib.c
+@@ -345,11 +345,10 @@ OPENSSL_cpuid_setup(void)
+ static void
+ OPENSSL_showfatal(const char *fmta, ...)
+ {
+- struct syslog_data sdata = SYSLOG_DATA_INIT;
+ va_list ap;
+
+ va_start(ap, fmta);
+- vsyslog_r(LOG_INFO|LOG_LOCAL2, &sdata, fmta, ap);
++ vsyslog(LOG_INFO|LOG_LOCAL2, fmta, ap);
+ va_end(ap);
+ }
+
+--
+2.21.0
+