diff options
Diffstat (limited to 'patches')
-rw-r--r-- | patches/crypto_namespace.h.patch | 22 | ||||
-rw-r--r-- | patches/mlkem_internal.h.patch | 11 | ||||
-rw-r--r-- | patches/ssl_namespace.h.patch | 21 |
3 files changed, 11 insertions, 43 deletions
diff --git a/patches/crypto_namespace.h.patch b/patches/crypto_namespace.h.patch deleted file mode 100644 index 400030f..0000000 --- a/patches/crypto_namespace.h.patch +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | --- crypto/hidden/crypto_namespace.h.orig Fri Aug 2 23:52:55 2024 | ||
2 | +++ crypto/hidden/crypto_namespace.h Fri Aug 2 23:53:17 2024 | ||
3 | @@ -24,6 +24,12 @@ | ||
4 | * external calls use the latter name. | ||
5 | */ | ||
6 | |||
7 | +#ifdef _MSC_VER | ||
8 | +# define LCRYPTO_UNUSED(x) | ||
9 | +# define LCRYPTO_USED(x) | ||
10 | +# define LCRYPTO_ALIAS1(pre, x) | ||
11 | +# define LCRYPTO_ALIAS(x) | ||
12 | +#else | ||
13 | #ifdef LIBRESSL_NAMESPACE | ||
14 | #ifdef LIBRESSL_CRYPTO_NAMESPACE | ||
15 | # define LCRYPTO_UNUSED(x) __attribute__((deprecated)) \ | ||
16 | @@ -47,5 +53,6 @@ | ||
17 | # define LCRYPTO_ALIAS1(pre,x) | ||
18 | # define LCRYPTO_ALIAS(x) asm("") | ||
19 | #endif | ||
20 | +#endif /* _MSC_VER */ | ||
21 | |||
22 | #endif /* _LIBCRYPTO_CRYPTO_NAMESPACE_H_ */ | ||
diff --git a/patches/mlkem_internal.h.patch b/patches/mlkem_internal.h.patch new file mode 100644 index 0000000..b7cbdcf --- /dev/null +++ b/patches/mlkem_internal.h.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | --- crypto/mlkem/mlkem_internal.h.orig Sun Aug 17 13:20:18 2025 | ||
2 | +++ crypto/mlkem/mlkem_internal.h Sun Aug 17 13:20:37 2025 | ||
3 | @@ -19,7 +19,7 @@ | ||
4 | #define OPENSSL_HEADER_CRYPTO_MLKEM_INTERNAL_H | ||
5 | |||
6 | #include "bytestring.h" | ||
7 | -#include "mlkem.h" | ||
8 | +#include <openssl/mlkem.h> | ||
9 | |||
10 | #if defined(__cplusplus) | ||
11 | extern "C" { | ||
diff --git a/patches/ssl_namespace.h.patch b/patches/ssl_namespace.h.patch deleted file mode 100644 index eb9c7a2..0000000 --- a/patches/ssl_namespace.h.patch +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | --- ssl/hidden/ssl_namespace.h.orig Fri Aug 2 23:52:55 2024 | ||
2 | +++ ssl/hidden/ssl_namespace.h Fri Aug 2 23:53:17 2024 | ||
3 | @@ -23,6 +23,11 @@ | ||
4 | * and we alias that to the normal name. | ||
5 | */ | ||
6 | |||
7 | +#ifdef _MSC_VER | ||
8 | +#define LSSL_UNUSED(x) | ||
9 | +#define LSSL_USED(x) | ||
10 | +#define LSSL_ALIAS(x) | ||
11 | +#else | ||
12 | #ifdef LIBRESSL_NAMESPACE | ||
13 | #define LSSL_UNUSED(x) typeof(x) x __attribute__((deprecated)) | ||
14 | #define LSSL_USED(x) __attribute__((visibility("hidden"))) \ | ||
15 | @@ -37,5 +42,6 @@ | ||
16 | #define LSSL_USED(x) | ||
17 | #define LSSL_ALIAS(x) asm("") | ||
18 | #endif | ||
19 | +#endif /* _MSC_VER */ | ||
20 | |||
21 | #endif /* _LIBSSL_SSL_NAMESPACE_H_ */ | ||