crt: Add cut-down crypt32 to windowsapp
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index 375341e..b262529 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -3376,6 +3376,7 @@
%/libbcrypt_windowsapp.a \
%/libcabinet_windowsapp.a \
%/libchakrart_windowsapp.a \
+ %/libcrypt32_windowsapp.a \
%/libicu.a \
%/librometadata.a \
%/libwindows.ai.machinelearning.a \
diff --git a/mingw-w64-crt/lib-common/crypt32_windowsapp.def b/mingw-w64-crt/lib-common/crypt32_windowsapp.def
new file mode 100644
index 0000000..b65fd5c
--- /dev/null
+++ b/mingw-w64-crt/lib-common/crypt32_windowsapp.def
@@ -0,0 +1,151 @@
+LIBRARY crypt32
+
+EXPORTS
+
+CertAddCertificateContextToStore
+CertAddCertificateLinkToStore
+CertAddCRLContextToStore
+CertAddCRLLinkToStore
+CertAddCTLContextToStore
+CertAddCTLLinkToStore
+CertAddEncodedCertificateToStore
+CertAddEncodedCRLToStore
+CertAddEncodedCTLToStore
+CertAddSerializedElementToStore
+CertAddStoreToCollection
+CertAlgIdToOID
+CertCloseStore
+CertCompareCertificate
+CertCompareCertificateName
+CertCompareIntegerBlob
+CertControlStore
+CertCreateCertificateChainEngine
+CertCreateCertificateContext
+CertCreateContext
+CertCreateCRLContext
+CertCreateCTLContext
+CertCreateSelfSignCertificate
+CertDeleteCertificateFromStore
+CertDeleteCRLFromStore
+CertDeleteCTLFromStore
+CertDuplicateCertificateChain
+CertDuplicateCertificateContext
+CertDuplicateCRLContext
+CertDuplicateCTLContext
+CertDuplicateStore
+CertEnumCertificateContextProperties
+CertEnumCertificatesInStore
+CertEnumCRLContextProperties
+CertEnumCRLsInStore
+CertEnumCTLContextProperties
+CertEnumCTLsInStore
+CertEnumPhysicalStore
+CertEnumSystemStore
+CertEnumSystemStoreLocation
+CertFindAttribute
+CertFindCertificateInCRL
+CertFindCertificateInStore
+CertFindChainInStore
+CertFindCRLInStore
+CertFindCTLInStore
+CertFindExtension
+CertFindRDNAttr
+CertFindSubjectInCTL
+CertFreeCertificateChain
+CertFreeCertificateChainEngine
+CertFreeCertificateChainList
+CertFreeCertificateContext
+CertFreeCRLContext
+CertFreeCTLContext
+CertGetCertificateChain
+CertGetCertificateContextProperty
+CertGetCRLContextProperty
+CertGetCRLFromStore
+CertGetCTLContextProperty
+CertGetEnhancedKeyUsage
+CertGetIntendedKeyUsage
+CertGetIssuerCertificateFromStore
+CertGetNameStringA
+CertGetNameStringW
+CertGetPublicKeyLength
+CertGetStoreProperty
+CertGetSubjectCertificateFromStore
+CertGetValidUsages
+CertIsValidCRLForCertificate
+CertNameToStrA
+CertNameToStrW
+CertOIDToAlgId
+CertOpenStore
+CertRDNValueToStrA
+CertRDNValueToStrW
+CertRegisterSystemStore
+CertRemoveStoreFromCollection
+CertResyncCertificateChainEngine
+CertSaveStore
+CertSelectCertificateChains
+CertSerializeCertificateStoreElement
+CertSerializeCRLStoreElement
+CertSerializeCTLStoreElement
+CertSetCertificateContextProperty
+CertSetCRLContextProperty
+CertSetCTLContextProperty
+CertSetStoreProperty
+CertStrToNameA
+CertStrToNameW
+CertUnregisterSystemStore
+CertVerifyCertificateChainPolicy
+CertVerifySubjectCertificateContext
+CertVerifyTimeValidity
+CryptAcquireCertificatePrivateKey
+CryptBinaryToStringW
+CryptDecodeObject
+CryptDecodeObjectEx
+CryptDecryptMessage
+CryptEncodeObject
+CryptEncodeObjectEx
+CryptEncryptMessage
+CryptEnumOIDFunction
+CryptEnumOIDInfo
+CryptFindCertificateKeyProvInfo
+CryptFindLocalizedName
+CryptFindOIDInfo
+CryptFormatObject
+CryptFreeOIDFunctionAddress
+CryptGetDefaultOIDDllList
+CryptGetDefaultOIDFunctionAddress
+CryptGetMessageCertificates
+CryptGetOIDFunctionAddress
+CryptGetOIDFunctionValue
+CryptHashCertificate2
+CryptHashPublicKeyInfo
+CryptImportPublicKeyInfoEx2
+CryptInitOIDFunctionSet
+CryptInstallOIDFunctionAddress
+CryptMsgCalculateEncodedLength
+CryptMsgClose
+CryptMsgControl
+CryptMsgCountersign
+CryptMsgCountersignEncoded
+CryptMsgDuplicate
+CryptMsgGetAndVerifySigner
+CryptMsgGetParam
+CryptMsgOpenToDecode
+CryptMsgOpenToEncode
+CryptMsgUpdate
+CryptMsgVerifyCountersignatureEncoded
+CryptMsgVerifyCountersignatureEncodedEx
+CryptProtectData
+CryptProtectMemory
+CryptQueryObject
+CryptRetrieveTimeStamp
+CryptSignMessage
+CryptStringToBinaryA
+CryptUnprotectData
+CryptUnprotectMemory
+CryptVerifyDetachedMessageSignature
+CryptVerifyTimeStampSignature
+PFXExportCertStore
+PFXExportCertStoreEx
+PFXImportCertStore
+PFXIsPFXBlob
+PFXVerifyPassword
diff --git a/mingw-w64-crt/lib-common/windowsapp.mri b/mingw-w64-crt/lib-common/windowsapp.mri
index 60c34f9..7f26570 100644
--- a/mingw-w64-crt/lib-common/windowsapp.mri
+++ b/mingw-w64-crt/lib-common/windowsapp.mri
@@ -200,6 +200,7 @@
ADDLIB libbcrypt_windowsapp.a
ADDLIB libcabinet_windowsapp.a
ADDLIB libchakrart_windowsapp.a
+ADDLIB libcrypt32_windowsapp.a
ADDLIB libicu.a
ADDLIB librometadata.a
ADDLIB libwindows.ai.machinelearning.a
diff --git a/mingw-w64-crt/lib32/crypt32_windowsapp.def b/mingw-w64-crt/lib32/crypt32_windowsapp.def
new file mode 100644
index 0000000..76a6828
--- /dev/null
+++ b/mingw-w64-crt/lib32/crypt32_windowsapp.def
@@ -0,0 +1,151 @@
+LIBRARY crypt32
+
+EXPORTS
+
+CertAddCertificateContextToStore@16
+CertAddCertificateLinkToStore@16
+CertAddCRLContextToStore@16
+CertAddCRLLinkToStore@16
+CertAddCTLContextToStore@16
+CertAddCTLLinkToStore@16
+CertAddEncodedCertificateToStore@24
+CertAddEncodedCRLToStore@24
+CertAddEncodedCTLToStore@24
+CertAddSerializedElementToStore@32
+CertAddStoreToCollection@16
+CertAlgIdToOID@4
+CertCloseStore@8
+CertCompareCertificate@12
+CertCompareCertificateName@12
+CertCompareIntegerBlob@8
+CertControlStore@16
+CertCreateCertificateChainEngine@8
+CertCreateCertificateContext@12
+CertCreateContext@24
+CertCreateCRLContext@12
+CertCreateCTLContext@12
+CertCreateSelfSignCertificate@32
+CertDeleteCertificateFromStore@4
+CertDeleteCRLFromStore@4
+CertDeleteCTLFromStore@4
+CertDuplicateCertificateChain@4
+CertDuplicateCertificateContext@4
+CertDuplicateCRLContext@4
+CertDuplicateCTLContext@4
+CertDuplicateStore@4
+CertEnumCertificateContextProperties@8
+CertEnumCertificatesInStore@8
+CertEnumCRLContextProperties@8
+CertEnumCRLsInStore@8
+CertEnumCTLContextProperties@8
+CertEnumCTLsInStore@8
+CertEnumPhysicalStore@16
+CertEnumSystemStore@16
+CertEnumSystemStoreLocation@12
+CertFindAttribute@12
+CertFindCertificateInCRL@20
+CertFindCertificateInStore@24
+CertFindChainInStore@24
+CertFindCRLInStore@24
+CertFindCTLInStore@24
+CertFindExtension@12
+CertFindRDNAttr@8
+CertFindSubjectInCTL@20
+CertFreeCertificateChain@4
+CertFreeCertificateChainEngine@4
+CertFreeCertificateChainList@4
+CertFreeCertificateContext@4
+CertFreeCRLContext@4
+CertFreeCTLContext@4
+CertGetCertificateChain@32
+CertGetCertificateContextProperty@16
+CertGetCRLContextProperty@16
+CertGetCRLFromStore@16
+CertGetCTLContextProperty@16
+CertGetEnhancedKeyUsage@16
+CertGetIntendedKeyUsage@16
+CertGetIssuerCertificateFromStore@16
+CertGetNameStringA@24
+CertGetNameStringW@24
+CertGetPublicKeyLength@8
+CertGetStoreProperty@16
+CertGetSubjectCertificateFromStore@12
+CertGetValidUsages@20
+CertIsValidCRLForCertificate@16
+CertNameToStrA@20
+CertNameToStrW@20
+CertOIDToAlgId@4
+CertOpenStore@20
+CertRDNValueToStrA@16
+CertRDNValueToStrW@16
+CertRegisterSystemStore@16
+CertRemoveStoreFromCollection@8
+CertResyncCertificateChainEngine@4
+CertSaveStore@24
+CertSelectCertificateChains@32
+CertSerializeCertificateStoreElement@16
+CertSerializeCRLStoreElement@16
+CertSerializeCTLStoreElement@16
+CertSetCertificateContextProperty@16
+CertSetCRLContextProperty@16
+CertSetCTLContextProperty@16
+CertSetStoreProperty@16
+CertStrToNameA@28
+CertStrToNameW@28
+CertUnregisterSystemStore@8
+CertVerifyCertificateChainPolicy@16
+CertVerifySubjectCertificateContext@12
+CertVerifyTimeValidity@8
+CryptAcquireCertificatePrivateKey@24
+CryptBinaryToStringW@20
+CryptDecodeObject@28
+CryptDecodeObjectEx@32
+CryptDecryptMessage@24
+CryptEncodeObject@20
+CryptEncodeObjectEx@28
+CryptEncryptMessage@28
+CryptEnumOIDFunction@24
+CryptEnumOIDInfo@16
+CryptFindCertificateKeyProvInfo@12
+CryptFindLocalizedName@4
+CryptFindOIDInfo@12
+CryptFormatObject@36
+CryptFreeOIDFunctionAddress@8
+CryptGetDefaultOIDDllList@16
+CryptGetDefaultOIDFunctionAddress@24
+CryptGetMessageCertificates@20
+CryptGetOIDFunctionAddress@24
+CryptGetOIDFunctionValue@28
+CryptHashCertificate2@28
+CryptHashPublicKeyInfo@28
+CryptImportPublicKeyInfoEx2@20
+CryptInitOIDFunctionSet@8
+CryptInstallOIDFunctionAddress@24
+CryptMsgCalculateEncodedLength@24
+CryptMsgClose@4
+CryptMsgControl@16
+CryptMsgCountersign@16
+CryptMsgCountersignEncoded@28
+CryptMsgDuplicate@4
+CryptMsgGetAndVerifySigner@24
+CryptMsgGetParam@20
+CryptMsgOpenToDecode@24
+CryptMsgOpenToEncode@24
+CryptMsgUpdate@16
+CryptMsgVerifyCountersignatureEncoded@28
+CryptMsgVerifyCountersignatureEncodedEx@40
+CryptProtectData@28
+CryptProtectMemory@12
+CryptQueryObject@44
+CryptRetrieveTimeStamp@40
+CryptSignMessage@28
+CryptStringToBinaryA@28
+CryptUnprotectData@28
+CryptUnprotectMemory@12
+CryptVerifyDetachedMessageSignature@32
+CryptVerifyTimeStampSignature@32
+PFXExportCertStore@16
+PFXExportCertStoreEx@20
+PFXImportCertStore@12
+PFXIsPFXBlob@4
+PFXVerifyPassword@12