aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am.common3
-rw-r--r--crypto/CMakeLists.txt1
-rw-r--r--patches/opensslconf.h.patch24
-rw-r--r--patches/windows_headers.patch13
-rw-r--r--ssl/CMakeLists.txt2
5 files changed, 25 insertions, 18 deletions
diff --git a/Makefile.am.common b/Makefile.am.common
index 2c641c5..87aa807 100644
--- a/Makefile.am.common
+++ b/Makefile.am.common
@@ -1,4 +1,3 @@
1AM_CFLAGS = 1AM_CFLAGS =
2AM_CPPFLAGS = -I$(top_srcdir)/crypto/hidden -I$(top_srcdir)/ssl/hidden 2AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/include/compat -DLIBRESSL_INTERNAL
3AM_CPPFLAGS += -I$(top_srcdir)/include -I$(top_srcdir)/include/compat -DLIBRESSL_INTERNAL
4AM_CPPFLAGS += -D__BEGIN_HIDDEN_DECLS= -D__END_HIDDEN_DECLS= 3AM_CPPFLAGS += -D__BEGIN_HIDDEN_DECLS= -D__END_HIDDEN_DECLS=
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt
index 1ed5405..8956884 100644
--- a/crypto/CMakeLists.txt
+++ b/crypto/CMakeLists.txt
@@ -999,7 +999,6 @@ target_include_directories(crypto_obj
999 ecdh 999 ecdh
1000 ecdsa 1000 ecdsa
1001 evp 1001 evp
1002 hidden
1003 hmac 1002 hmac
1004 modes 1003 modes
1005 ocsp 1004 ocsp
diff --git a/patches/opensslconf.h.patch b/patches/opensslconf.h.patch
new file mode 100644
index 0000000..e060a20
--- /dev/null
+++ b/patches/opensslconf.h.patch
@@ -0,0 +1,24 @@
1--- include/openssl/opensslconf.h.orig Tue Nov 22 21:08:27 2022
2+++ include/openssl/opensslconf.h Wed Nov 23 12:38:07 2022
3@@ -1,6 +1,21 @@
4 #include <openssl/opensslfeatures.h>
5 /* crypto/opensslconf.h.in */
6
7+#if defined(_MSC_VER) && !defined(__clang__) && !defined(__attribute__)
8+#define __attribute__(a)
9+#endif
10+
11+#ifndef LIBRESSL_NAMESPACE
12+# define LCRYPTO_UNUSED(x)
13+# define LCRYPTO_USED(x)
14+# define LCRYPTO_ALIAS1(pre, x)
15+# define LCRYPTO_ALIAS(x)
16+
17+# define LSSL_UNUSED(x)
18+# define LSSL_USED(x)
19+# define LSSL_ALIAS(x)
20+#endif /* !LIBRESSL_NAMESPACE */
21+
22 #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
23 #define OPENSSLDIR "/etc/ssl"
24 #endif
diff --git a/patches/windows_headers.patch b/patches/windows_headers.patch
index 0e9428c..17c447d 100644
--- a/patches/windows_headers.patch
+++ b/patches/windows_headers.patch
@@ -13,19 +13,6 @@ diff -u include/openssl.orig/dtls1.h include/openssl/dtls1.h
13 13
14 #include <stdio.h> 14 #include <stdio.h>
15 #include <stdlib.h> 15 #include <stdlib.h>
16--- include/openssl/opensslconf.h.orig Sat Nov 5 08:36:25 2016
17+++ include/openssl/opensslconf.h Mon Jul 17 06:06:58 2017
18@@ -1,6 +1,10 @@
19 #include <openssl/opensslfeatures.h>
20 /* crypto/opensslconf.h.in */
21
22+#if defined(_MSC_VER) && !defined(__clang__) && !defined(__attribute__)
23+#define __attribute__(a)
24+#endif
25+
26 #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
27 #define OPENSSLDIR "/etc/ssl"
28 #endif
29--- include/openssl/ossl_typ.h.orig Fri Feb 18 16:30:39 2022 16--- include/openssl/ossl_typ.h.orig Fri Feb 18 16:30:39 2022
30+++ include/openssl/ossl_typ.h Mon Feb 21 05:39:35 2022 17+++ include/openssl/ossl_typ.h Mon Feb 21 05:39:35 2022
31@@ -82,6 +82,22 @@ 18@@ -82,6 +82,22 @@
diff --git a/ssl/CMakeLists.txt b/ssl/CMakeLists.txt
index 13072b1..4c7357a 100644
--- a/ssl/CMakeLists.txt
+++ b/ssl/CMakeLists.txt
@@ -64,9 +64,7 @@ set(
64add_library(ssl_obj OBJECT ${SSL_SRC}) 64add_library(ssl_obj OBJECT ${SSL_SRC})
65target_include_directories(ssl_obj 65target_include_directories(ssl_obj
66 PRIVATE 66 PRIVATE
67 ../crypto/hidden
68 ../crypto/bio 67 ../crypto/bio
69 ./hidden
70 . 68 .
71 ../include/compat 69 ../include/compat
72 PUBLIC 70 PUBLIC