aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ejabberd/libressl.patch
blob: d4c6f7dd55cace6fbec474794bd27f1a008c6dff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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