Commit Graph

71 Commits

Author SHA1 Message Date
Marko Friedemann b2e72dd09d wintrust: Use enhanced crypto provider in VerifyImageHash.
Softpub VerifyImageHash uses the default crypto provider and fails for
certificates using SHA256 et al. with NTE_BAD_ALGID (80090008)

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47034
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-22 19:48:28 +02:00
Mark Jansen 93ed3356d8 wintrust: Verify image hash in WinVerifyTrust.
Includes various improvements by Sebastian Lackner.

Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-09 15:46:03 +02:00
Michael Stefaniuc c77defede1 wintrust: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-19 08:09:19 +02:00
Sebastian Lackner 4b7ec82663 wintrust: Reset data->pWintrustData->u.pFile->hFile after closing handle. 2014-12-02 15:03:17 +01:00
Juan Lang ba78b54820 wintrust: Don't dereference a potentially NULL pointer. 2011-12-12 10:21:10 +01:00
Juan Lang c0a8694bbc wintrust: Correct ObjectTrust error with empty files. 2011-09-15 15:41:40 +02:00
Juan Lang 68fceb5e5b wintrust: Get time to verify from cryptographic message when present. 2010-10-15 11:32:53 +02:00
Juan Lang 2f83664981 wintrust: Correct GenericChainCertificateTrust's handling of WINTRUST_CreateChainForSigner's return value. 2010-03-03 10:58:55 +01:00
Juan Lang ab270f9966 wintrust: Fix copy-paste error. 2010-02-02 11:47:19 +01:00
Juan Lang 0f632c0caf wintrust: Fix uninitialized return value (Coverity). 2010-02-02 11:47:19 +01:00
Juan Lang 428fc17934 wintrust: Return error directly from WINTRUST_CreateChainForSigner. 2010-01-29 13:30:03 +01:00
Juan Lang 711ca0f4f3 wintrust: Fail creating a chain if a store couldn't be created. 2010-01-29 13:30:03 +01:00
Juan Lang 59dcf9c9ee wintrust: Return error directly from WINTRUST_CopyChain. 2010-01-29 13:30:03 +01:00
Juan Lang c9c23190f7 wintrust: Simplify error handling in SoftpubLoadSignature. 2010-01-29 13:30:03 +01:00
Juan Lang 47e75329e3 wintrust: Return error directly from WINTRUST_SaveSigner. 2010-01-29 13:30:03 +01:00
Juan Lang 1781878b00 wintrust: Return error directly from WINTRUST_VerifySigner. 2010-01-29 13:30:03 +01:00
Juan Lang 4c1e554d19 wintrust: Close file handle on error loading a message from it. 2010-01-28 12:14:02 +01:00
Juan Lang dce2a4590d wintrust: Return error directly from SOFTPUB_LoadCertMessage. 2010-01-28 12:13:59 +01:00
Juan Lang 6099adf79a wintrust: Return error directly from SOFTPUB_DecodeInnerContent. 2010-01-28 12:13:56 +01:00
Juan Lang 8085ea5fe0 wintrust: Return error directly from SOFTPUB_CreateStoreFromMessage. 2010-01-28 12:13:53 +01:00
Juan Lang 568b0025c7 wintrust: Return error directly from SOFTPUB_GetMessageFromFile. 2010-01-28 12:13:50 +01:00
Juan Lang 2c12de4b7e wintrust: Return error directly from SOFTPUB_GetSIP. 2010-01-28 12:13:47 +01:00
Juan Lang b5fbb87470 wintrust: Return error directly from SOFTPUB_GetFileSubject. 2010-01-28 12:13:44 +01:00
Juan Lang fc1fbf6107 wintrust: Return error directly from SOFTPUB_OpenFile. 2010-01-28 12:13:41 +01:00
Juan Lang 528876c402 wintrust: Return error directly from SOFTPUB_LoadCatalogMessage. 2010-01-28 12:13:38 +01:00
Juan Lang 9e8e14ed12 wintrust: Return error directly from SOFTPUB_LoadFileMessage. 2010-01-28 12:13:35 +01:00
Juan Lang f4b359942b wintrust: Only close a file in SoftpubCleanup if the WINTRUST_DATA contains a WINTRUST_FILE_INFO. 2009-11-04 16:45:16 +01:00
Alexandre Julliard ec98af650b wintrust: Add stubs for the driver policy init functions. 2009-08-14 15:29:26 +02:00
Juan Lang 9da4d2f3a9 wintrust: Check for the presence of required members of WINTRUST_CERT_INFO rather than requiring callers to be compiled with the same SDK version. 2009-06-15 13:42:26 +02:00
Hans Leidekker f0cf772d52 wintrust: Add stub implementations of HTTPSCertificateTrust and HTTPSFinalProv. 2009-06-12 17:33:15 +02:00
Juan Lang 9ae0f7a191 wintrust: Only check the pgKnownSubject member if the struct includes it. 2009-06-12 17:33:14 +02:00
Michael Stefaniuc 0087064c2f wintrust: Remove superfluous pointer casts. 2009-01-29 14:06:06 +01:00
Juan Lang 12a848e54b wintrust: Partially implement SoftpubLoadMessage for catalog files. 2008-10-24 14:25:00 +02:00
Juan Lang 153066c64a wintrust: Pass file handle and path to SOFTPUB_GetMessageFromFile. 2008-10-24 14:25:00 +02:00
Juan Lang 1bfb602993 wintrust: Separate loading a message from a WINTRUST_FILE_INFO into a helper function. 2008-10-24 14:25:00 +02:00
Juan Lang 6455674c97 wintrust: Separate loading a message from a WINTRUST_CERT_INFO into a helper function. 2008-10-24 14:25:00 +02:00
Juan Lang 04841e1f35 wintrust: Don't hardcode supported OIDs, let CryptDecodeObject handle it directly. 2008-10-09 12:15:03 +02:00
Juan Lang cdfb393db4 wintrust: Only set the error on the root element of the chain. 2008-09-29 17:22:04 -05:00
Juan Lang c20a617aec wintrust: Use helper function for setting confidence in SoftpubCheckCert. 2008-09-29 17:21:56 -05:00
Juan Lang cc3a94f40d wintrust: Map cert trust error status to a windows error. 2008-09-29 17:21:47 -05:00
Juan Lang 036128842a wintrust: Check that the end certificate in the chain isn't disallowed to match native behavior. 2008-09-23 12:13:46 +02:00
Juan Lang 2844cb5a65 wintrust: Only do policy check if pointer is set. 2008-09-23 12:13:39 +02:00
Juan Lang 30547a45e2 wintrust: Always initialize CERT_CHAIN_PARA's RequestedUsage. 2008-09-23 12:13:17 +02:00
Juan Lang a9dbc17d50 wintrust: Store the error status and confidence for each element in the chain. 2008-09-23 12:13:01 +02:00
Juan Lang 49fdba4768 wintrust: Search all additional stores when building a chain, not just the first one. 2008-09-23 12:12:57 +02:00
Rob Shearman 19e9b665c6 wintrust: Add explicit "!= NO_ERROR" to expressions that use variables containing error codes as booleans. 2008-09-12 16:50:13 +02:00
Juan Lang 88ac766f8b wintrust: Correct error slot for SoftpubLoadSignature. 2008-07-16 17:53:32 +02:00
Andrew Talbot a1732549ca wintrust: Assign to structs instead of using memcpy. 2008-03-24 11:32:58 +01:00
Juan Lang e69cf802e7 wintrust: Add traces. 2007-10-09 20:20:35 +02:00
Juan Lang 355193b70d wintrust: Implement GenericChainFinalProv. 2007-10-09 20:20:30 +02:00