From 6806cbf59422162d22449a60b0cb49c282a80ffa Mon Sep 17 00:00:00 2001 From: "mohammad.alam" Date: Fri, 16 Oct 2026 16:34:34 -0400 Subject: [PATCH 1/2] config-win32: do not use CryptoAPI hashing on UWP The CryptoAPI hash functions are not available in the UWP API partition, so md5.c/sha256.c compiled with implicit declarations and Unity's UWP player failed to link (unresolved _CryptAcquireContext). Restore the CURL_WINDOWS_UWP guard so UWP uses the built-in MD5/SHA-256 again. --- lib/config-win32.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/config-win32.h b/lib/config-win32.h index c9ca7068424d..4990e7f7f274 100644 --- a/lib/config-win32.h +++ b/lib/config-win32.h @@ -287,7 +287,10 @@ #define HAVE_LDAP_SSL 1 #define USE_WIN32_LDAP 1 +/* CryptoAPI hashing is desktop-only, UWP uses the built-in MD5/SHA-256 */ +#ifndef CURL_WINDOWS_UWP #define USE_WIN32_CRYPTO 1 +#endif #define USE_UNIX_SOCKETS 1 #ifndef CURL_OS From 65f7d6eb91064f124628c17021601fcd11648aca Mon Sep 17 00:00:00 2001 From: "mohammad.alam" Date: Mon, 19 Oct 2026 11:38:20 -0400 Subject: [PATCH 2/2] config-win32: guard LDAP defines on UWP too, as before 8.22 Match the pre-8.22 layout: HAVE_LDAP_SSL, USE_WIN32_LDAP and USE_WIN32_CRYPTO all sit under one CURL_WINDOWS_UWP guard. --- lib/config-win32.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/config-win32.h b/lib/config-win32.h index 4990e7f7f274..d09b6b1ff6f0 100644 --- a/lib/config-win32.h +++ b/lib/config-win32.h @@ -285,12 +285,14 @@ # define USE_RESOLV_THREADED 1 #endif +#ifndef CURL_WINDOWS_UWP #define HAVE_LDAP_SSL 1 #define USE_WIN32_LDAP 1 -/* CryptoAPI hashing is desktop-only, UWP uses the built-in MD5/SHA-256 */ -#ifndef CURL_WINDOWS_UWP + +/* Define to use the Windows crypto library. */ #define USE_WIN32_CRYPTO 1 -#endif +#endif /* CURL_WINDOWS_UWP */ + #define USE_UNIX_SOCKETS 1 #ifndef CURL_OS