The functions in winstorecompat cannot be linked properly when cryptoapi-l1-1-0 is linked at the same time. So whenever libwindowsapp.a is used. That's half of the cases where winstorecompat is used (the other case is when linking with libmincore.a).
The API's are forbidden anyway [1] so should be linked through external libraries. winstorecompat has proper replacements. When used with mincore the only way to link these calls was through winstorecompat so builds from be affected by this change. Technically CryptReleaseContext() is allowed but without other matching API's as far as I can see. And we cannot use the system one with the custom context created in winstorecompat. [1] https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis#apis-from-api-ms-win-security-cryptoapi-l1-1-0dll --- .../lib-common/api-ms-win-security-cryptoapi-l1-1-0.def | 4 ---- mingw-w64-crt/lib32/api-ms-win-security-cryptoapi-l1-1-0.def | 4 ---- 2 files changed, 8 deletions(-) diff --git a/mingw-w64-crt/lib-common/api-ms-win-security-cryptoapi-l1-1-0.def b/mingw-w64-crt/lib-common/api-ms-win-security-cryptoapi-l1-1-0.def index ebeeda2c..e3df36f3 100644 --- a/mingw-w64-crt/lib-common/api-ms-win-security-cryptoapi-l1-1-0.def +++ b/mingw-w64-crt/lib-common/api-ms-win-security-cryptoapi-l1-1-0.def @@ -2,8 +2,6 @@ LIBRARY api-ms-win-security-cryptoapi-l1-1-0 EXPORTS -CryptAcquireContextA -CryptAcquireContextW CryptCreateHash CryptDecrypt CryptDeriveKey @@ -15,7 +13,6 @@ CryptEnumProvidersA CryptEnumProvidersW CryptExportKey CryptGenKey -CryptGenRandom CryptGetDefaultProviderA CryptGetDefaultProviderW CryptGetHashParam @@ -24,7 +21,6 @@ CryptGetProvParam CryptGetUserKey CryptHashData CryptImportKey -CryptReleaseContext CryptSetHashParam CryptSetKeyParam CryptSetProviderW diff --git a/mingw-w64-crt/lib32/api-ms-win-security-cryptoapi-l1-1-0.def b/mingw-w64-crt/lib32/api-ms-win-security-cryptoapi-l1-1-0.def index 2590c143..7806fcad 100644 --- a/mingw-w64-crt/lib32/api-ms-win-security-cryptoapi-l1-1-0.def +++ b/mingw-w64-crt/lib32/api-ms-win-security-cryptoapi-l1-1-0.def @@ -2,8 +2,6 @@ LIBRARY api-ms-win-security-cryptoapi-l1-1-0 EXPORTS -CryptAcquireContextA@20 -CryptAcquireContextW@20 CryptCreateHash@20 CryptDecrypt@24 CryptDeriveKey@20 @@ -15,7 +13,6 @@ CryptEnumProvidersA@24 CryptEnumProvidersW@24 CryptExportKey@24 CryptGenKey@16 -CryptGenRandom@12 CryptGetDefaultProviderA@20 CryptGetDefaultProviderW@20 CryptGetHashParam@20 @@ -24,7 +21,6 @@ CryptGetProvParam@20 CryptGetUserKey@12 CryptHashData@16 CryptImportKey@24 -CryptReleaseContext@8 CryptSetHashParam@16 CryptSetKeyParam@16 CryptSetProviderW@8 -- 2.26.2 _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
