aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ejabberd/libressl.patch
diff options
context:
space:
mode:
authorStefan Wagner <stw@bit-strickerei.de>2016-11-23 00:03:32 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2016-11-23 12:33:40 +0100
commit47c9e2374d9fd1a973bb38e1b98c4b3b7b5e7c8c (patch)
tree623c1363194a7930a8c5ae11fe461f114f41db1d /testing/ejabberd/libressl.patch
parent266438e091a1ae0e8db85b5911fda73c36677679 (diff)
downloadaports-47c9e2374d9fd1a973bb38e1b98c4b3b7b5e7c8c.tar.bz2
aports-47c9e2374d9fd1a973bb38e1b98c4b3b7b5e7c8c.tar.xz
testing/ejabberd: fixes for libressl
This fixes problems with libressl for ejabberd. * refs #6483
Diffstat (limited to 'testing/ejabberd/libressl.patch')
-rw-r--r--testing/ejabberd/libressl.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/ejabberd/libressl.patch b/testing/ejabberd/libressl.patch
new file mode 100644
index 0000000000..d4c6f7dd55
--- /dev/null
+++ b/testing/ejabberd/libressl.patch
@@ -0,0 +1,30 @@
+diff -ur a/deps/fast_tls/c_src/fast_tls_drv.c b/deps/fast_tls/c_src/fast_tls_drv.c
+--- a/deps/fast_tls/c_src/fast_tls_drv.c
++++ b/deps/fast_tls/c_src/fast_tls_drv.c
+@@ -26,7 +26,7 @@
+ #include <stdint.h>
+ #include "options.h"
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ #define DH_set0_pqg(dh, dh_p, NULL, dh_g) (dh)->p = dh_p; (dh)->g = dh_g
+ #endif
+
+@@ -346,7 +346,7 @@
+ }
+
+ driver_free(ht.buckets);
+-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
++#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
+ OPENSSL_cleanup();
+ #endif
+ }
+@@ -934,7 +934,7 @@
+ NULL, /* process_exit */
+ NULL /* stop_select */
+ };
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ #define our_alloc driver_alloc
+ #define our_realloc driver_realloc
+ #define our_free driver_free