summaryrefslogtreecommitdiff
path: root/net-misc/socat/files/openssl_init_settings.patch
blob: 2a4447ed42965e201d5a91821417deb4a9e2119e (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
31
32
33
34
35
36
37
38
39
40
41
42
diff -urN socat-1.7.4.4.orig/sslcls.c socat-1.7.4.4/sslcls.c
--- socat-1.7.4.4.orig/sslcls.c	2022-11-06 14:16:36.721072121 +0100
+++ socat-1.7.4.4/sslcls.c	2022-11-06 14:19:45.733085734 +0100
@@ -5,6 +5,10 @@
 /* explicit system call and C library trace function, for those who miss strace
  */
 
+#include "xiosysincludes.h"
+#if WITH_OPENSSL	/* make this address configure dependend */
+#endif
+#include <openssl/conf.h>
 #include "config.h"
 #include "xioconfig.h"	/* what features are enabled */
 
diff -urN socat-1.7.4.4.orig/sslcls.h socat-1.7.4.4/sslcls.h
--- socat-1.7.4.4.orig/sslcls.h	2022-11-06 14:16:36.721072121 +0100
+++ socat-1.7.4.4/sslcls.h	2022-11-06 14:18:36.433080743 +0100
@@ -2,6 +2,10 @@
 /* Copyright Gerhard Rieger and contributors (see file CHANGES) */
 /* Published under the GNU General Public License V.2, see file COPYING */
 
+#if defined(LIBRESSL_VERSION_NUMBER)
+#undef HAVE_OPENSSL_INIT_SSL
+#endif
+
 #ifndef __sslcls_h_included
 #define __sslcls_h_included 1
 
diff -urN socat-1.7.4.4.orig/xioconfig.h socat-1.7.4.4/xioconfig.h
--- socat-1.7.4.4.orig/xioconfig.h	2022-11-06 14:16:36.719072120 +0100
+++ socat-1.7.4.4/xioconfig.h	2022-11-06 14:18:36.433080743 +0100
@@ -2,6 +2,10 @@
 /* Copyright Gerhard Rieger and contributors (see file CHANGES) */
 /* Published under the GNU General Public License V.2, see file COPYING */
 
+#if defined(LIBRESSL_VERSION_NUMBER)
+#undef HAVE_OPENSSL_INIT_SSL
+#endif
+
 #ifndef __xioconfig_h_included
 #define __xioconfig_h_included 1