# HG changeset patch # User Sebastien Jodogne # Date 1792668284 -7200 # Node ID 2e9cfd37eff10fe7c4a740fd48e7a44d993edc05 # Parent d02e9e35fd0f6f28c2ef383adfcfa10c4dc5310e fix build on msvc 2008 diff -r d02e9e35fd0f -r 2e9cfd37eff1 OrthancFramework/Resources/Patches/openssl-3.5.9.patch --- a/OrthancFramework/Resources/Patches/openssl-3.5.9.patch Thu Oct 22 12:33:19 2026 +0200 +++ b/OrthancFramework/Resources/Patches/openssl-3.5.9.patch Thu Oct 22 13:24:44 2026 +0200 @@ -37,6 +37,18 @@ if (syscall(SYS_mlock2, sh.arena, sh.arena_size, MLOCK_ONFAULT) < 0) { if (errno == ENOSYS) { if (mlock(sh.arena, sh.arena_size) < 0) +diff -urEb openssl-3.5.9.orig/crypto/ml_kem/ml_kem.c openssl-3.5.9/crypto/ml_kem/ml_kem.c +--- openssl-3.5.9.orig/crypto/ml_kem/ml_kem.c 2026-10-22 09:47:14.564901874 +0200 ++++ openssl-3.5.9/crypto/ml_kem/ml_kem.c 2026-10-22 13:07:38.748621689 +0200 +@@ -26,7 +26,7 @@ + #error "Invalid unequal lengths of ML-KEM shared secret and random inputs" + #endif + +-#if UINT_MAX < UINT32_MAX ++#if !defined(_MSC_VER) && (UINT_MAX < UINT32_MAX) + #error "Unsupported compiler: sizeof(unsigned int) < sizeof(uint32_t)" + #endif + diff -urEb openssl-3.5.9.orig/crypto/pkcs7/pk7_doit.c openssl-3.5.9/crypto/pkcs7/pk7_doit.c --- openssl-3.5.9.orig/crypto/pkcs7/pk7_doit.c 2026-10-22 09:47:14.567901842 +0200 +++ openssl-3.5.9/crypto/pkcs7/pk7_doit.c 2026-10-22 12:30:30.882791931 +0200 @@ -81,6 +93,17 @@ /* * Unfortunate workaround to avoid symbol conflict with wincrypt.h * See https://github.com/openssl/openssl/issues/9981 +diff -urEb openssl-3.5.9.orig/providers/implementations/signature/mac_legacy_sig.c openssl-3.5.9/providers/implementations/signature/mac_legacy_sig.c +--- openssl-3.5.9.orig/providers/implementations/signature/mac_legacy_sig.c 2026-10-22 09:47:14.597901521 +0200 ++++ openssl-3.5.9/providers/implementations/signature/mac_legacy_sig.c 2026-10-22 13:09:03.601002817 +0200 +@@ -10,7 +10,6 @@ + /* We need to use some engine deprecated APIs */ + #define OPENSSL_SUPPRESS_DEPRECATED + +-#include + #include + #include + #include diff -urEb openssl-3.5.9.orig/ssl/rio/rio_notifier.c openssl-3.5.9/ssl/rio/rio_notifier.c --- openssl-3.5.9.orig/ssl/rio/rio_notifier.c 2026-10-22 09:47:14.598901511 +0200 +++ openssl-3.5.9/ssl/rio/rio_notifier.c 2026-10-22 12:22:04.002093537 +0200