Juan Lang
74ac0d30bd
wintrust: Fix a couple tests on a variety of systems.
2009-02-12 13:00:46 +01:00
Juan Lang
22ea6bd611
wintrust: Remove a couple tests that fail on a variety of systems.
2009-02-12 13:00:42 +01:00
Juan Lang
9e07f0de08
wintrust: Don't fail if a registry value doesn't exist.
2009-02-12 13:00:37 +01:00
Francois Gouget
f250f4fa04
Assorted spelling fixes.
2009-02-11 15:56:02 +01:00
Juan Lang
2d0e586425
wintrust: Use GetSystemDirectory rather than GetWindowsDirectory to find the CatRoot directories.
2009-02-04 12:24:57 +01:00
Andrew Talbot
8bfc62cf8b
wintrust: Declare a functions static.
2009-02-02 12:11:58 +01:00
Michael Stefaniuc
0087064c2f
wintrust: Remove superfluous pointer casts.
2009-01-29 14:06:06 +01:00
Paul Vriens
e6676ff50e
wintrust/tests: Fix a test failure on W2K.
2009-01-22 12:03:51 +01:00
Paul Vriens
d18249dda6
wintrust/tests: Check file attributes set by CryptCATAdminAddCatalog.
2009-01-21 10:24:15 +01:00
Paul Vriens
d4cf5a55c6
wintrust/tests: Add some cdf parsing tests.
2009-01-21 10:23:52 +01:00
Hans Leidekker
e361356e8e
wintrust: Set system attribute on the target catalog file in CryptCATAdminAddCatalog.
2009-01-21 10:23:24 +01:00
Alexandre Julliard
e098f427b4
wintrust/tests: Clean up temp files after test.
2009-01-19 15:45:33 +01:00
Paul Vriens
2c9a41a4e4
wintrust/tests: Add some tests that creates catalog files.
2009-01-19 14:20:29 +01:00
Paul Vriens
db8cce3fcb
wintrust/tests: Make the catalog properties test a bit more flexible.
2009-01-19 14:20:07 +01:00
Paul Vriens
39361deadc
wintrust/tests: Add a few parameter tests.
2009-01-19 14:19:56 +01:00
Paul Vriens
4a2e02d57d
wintrust: Add some CryptCATCDF stubs.
2009-01-19 14:19:45 +01:00
Paul Vriens
669aa20c91
wintrust/tests: Add a test for enumerating catalog attributes.
2009-01-19 14:18:30 +01:00
Michael Stefaniuc
898d795fdd
wintrust/tests: Remove superfluous pointer casts.
2009-01-13 15:26:04 +01:00
Paul Vriens
00ed4057b5
wintrust: Fix removing a catalog file.
2009-01-08 14:52:31 +01:00
Paul Vriens
5bfed84410
wintrust/tests: Add a few tests.
2009-01-08 14:52:26 +01:00
Juan Lang
ae133b808f
wintrust: Fix encoding OIDs with only two components.
2008-12-23 20:20:01 +01:00
Hans Leidekker
a04afe7b70
wintrust: Fix message handle type.
...
Spotted by Juan Lang.
2008-12-23 18:52:41 +01:00
Hans Leidekker
053b2295a5
wintrust: Add some tests.
2008-12-23 18:52:28 +01:00
Hans Leidekker
32766e3882
wintrust: Add stub implementations of CryptCATEnumerateAttr, CryptCATEnumerateCatAttr, CryptCATGetAttrInfo, CryptCATGetCatAttrInfo and CryptCATGetMemberInfo.
2008-12-23 18:52:18 +01:00
Hans Leidekker
615d023bf1
wintrust: Implement CryptCATAdminResolveCatalogPath and CryptCATCatalogInfoFromContext.
2008-12-23 18:52:02 +01:00
Hans Leidekker
dffccbf1f2
wintrust: Implement CryptCATEnumerateMember.
...
Based on work done by Maarten Lankhorst.
2008-12-23 18:51:53 +01:00
Hans Leidekker
c7109645dc
wintrust: Test find handles against INVALID_HANDLE_VALUE.
...
Spotted by Michael Stefaniuc.
2008-12-23 18:51:30 +01:00
Hans Leidekker
f9e0e5198f
wintrust: Implement CryptCATOpen and CryptCATClose.
...
Based on work done by Maarten Lankhorst.
2008-12-22 14:55:51 +01:00
Hans Leidekker
766669fbd2
wintrust: Implement CryptCATAdminEnumCatalogFromHash.
...
Based on work done by Maarten Lankhorst.
2008-12-22 14:55:51 +01:00
Hans Leidekker
21d5f4a617
wintrust: Record full catalog filename in catalog info structure, not just the basename.
2008-12-22 14:55:51 +01:00
Francois Gouget
c36c161ce6
wintrust/tests: Add a trailing '\n' to ok() calls.
2008-12-19 17:45:25 +01:00
Paul Vriens
936bec69cf
wintrust/tests: Don't crash on NT4 and W2K.
2008-12-19 17:16:31 +01:00
Paul Vriens
ff833ee255
wintrust/tests: Fix test crash on Win9x.
2008-12-19 17:16:26 +01:00
Hans Leidekker
50d76df1ea
wintrust: Implement CryptCATAdminCalcHashFromFileHandle.
...
Based on work done by Maarten Lankhorst.
2008-12-19 17:16:12 +01:00
Hans Leidekker
b8bb31dc34
wintrust: Add tests for adding and removing catalog files.
2008-12-18 14:52:40 +01:00
Hans Leidekker
02f805347d
wintrust: Implement CryptCATAdminAddCatalog, CryptCATAdminReleaseCatalogContext and CryptCATAdminReleaseContext.
...
Based on work done by Maarten Lankhorst.
2008-12-18 14:52:21 +01:00
Hans Leidekker
a99ef3570f
wintrust: Implement CryptCATAdminReleaseContext.
...
Based on work done by Maarten Lankhorst.
2008-12-18 13:16:13 +01:00
Hans Leidekker
1d9ce08ce2
wintrust: Implement CryptCATAdminAcquireContext.
...
Based on work done by Maarten Lankhorst.
2008-12-18 13:16:07 +01:00
Hans Leidekker
976341a45e
wintrust: Don't test last error on success.
2008-12-18 13:15:54 +01:00
Hans Leidekker
0b0621c8cb
wintrust: Open test file with share mode FILE_SHARE_READ.
2008-12-18 13:15:44 +01:00
Andrew Talbot
79ab433946
wintrust: Sign-compare warnings fix.
2008-12-11 14:29:14 +01:00
Juan Lang
8610a0b537
wintrust: Add tests for WVTAsn1SpcSpOpusInfoDecode.
2008-12-10 10:49:44 +01:00
Juan Lang
9e7c5626b3
wintrust: Implement WVTAsn1SpcSpOpusInfoEncode.
2008-12-10 10:49:38 +01:00
Juan Lang
796bb0734a
wintrust: Add tests for WVTAsn1SpcSpOpusInfoEncode.
2008-12-10 10:49:30 +01:00
Juan Lang
ffa3d341db
wintrust: Add stub for WVTAsn1SpcSpOpusInfoEncode.
2008-12-10 10:49:22 +01:00
Francois Gouget
8bd8609af8
wintrust: Remove WINAPI on static functions where not needed.
2008-11-25 11:50:06 +01:00
Alexandre Julliard
04eb1e6a63
wintrust: Fix a buffer overflow.
2008-11-17 17:08:40 +01:00
Juan Lang
cbccab6252
wintrust: Implement WVTAsn1SpcFinancialCriteriaInfoDecode.
2008-11-04 11:19:21 +01:00
Juan Lang
4c88340f72
wintrust: Add tests for WVTAsn1SpcFinancialCriteriaInfoDecode.
2008-11-04 11:19:15 +01:00
Juan Lang
05956a6483
wintrust: Add stub for WVTAsn1SpcFinancialCriteriaInfoDecode.
2008-11-04 11:19:11 +01:00
Juan Lang
bbecd6913c
wintrust: Implement WVTAsn1SpcFinancialCriteriaInfoEncode.
2008-11-04 11:19:05 +01:00
Juan Lang
5c0d8a3a12
wintrust: Add tests for WVTAsn1SpcFinancialCriteriaInfoEncode.
2008-11-04 11:19:00 +01:00
Juan Lang
c196e2eea0
wintrust: Add stub for WVTAsn1SpcFinancialCriteriaInfoEncode.
2008-11-04 11:18:54 +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
36d01401dc
wintrust: Implement WVTAsn1CatNameValueDecode.
2008-10-18 20:13:10 +02:00
Juan Lang
e009cd9039
wintrust: Add tests for WVTAsn1CatNameValueDecode.
2008-10-18 20:13:04 +02:00
Juan Lang
9216340ab7
wintrust: Add stub for WVTAsn1CatNameValueDecode.
2008-10-18 20:12:59 +02:00
Juan Lang
74b91cb25f
wintrust: Implement WVTAsn1CatNameValueEncode.
2008-10-18 20:12:53 +02:00
Juan Lang
1f6a67d881
wintrust: Add tests for WVTAsn1CatNameValueEncode.
2008-10-18 20:12:46 +02:00
Juan Lang
9033fa9ab2
wintrust: Add stub for WVTAsn1CatNameValueEncode.
2008-10-18 20:12:40 +02:00
Juan Lang
c80b99a2f4
wintrust: Implement WVTAsn1CatMemberInfoDecode.
2008-10-18 19:31:34 +02:00
Juan Lang
6b13b35640
wintrust: Add tests for WVTAsn1CatMemberInfoDecode.
2008-10-18 19:31:28 +02:00
Juan Lang
65c5d3e4a8
wintrust: Add stub for WVTAsn1CatMemberInfoDecode.
2008-10-18 19:31:19 +02:00
Juan Lang
d3d7dfa7ff
wintrust: Implement WVTAsn1CatMemberInfoEncode.
2008-10-18 19:31:10 +02:00
Juan Lang
52751981ad
wintrust: Add tests for WVTAsn1CatMemberInfoEncode.
2008-10-18 19:30:57 +02:00
Juan Lang
4ffb8a2318
wintrust: Add stub for WVTAsn1CatMemberInfoEncode.
2008-10-18 19:30:44 +02:00
Maarten Lankhorst
4b9fd9a289
includes: Fix CryptCATAdminAddCatalog definition.
2008-10-16 11:21:51 +02:00
Juan Lang
04a65b3cb8
wintrust: Fix test failures on Win9x.
2008-10-09 14:19:54 +02:00
Paul Vriens
b7787ec0c8
wintrust/tests: Vista/W2K8 have some extra struct members.
2008-10-09 13:01:50 +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
a4eb01d2d7
wintrust: Implement CryptSIPGetSignedDataMsg for .cat files.
2008-10-09 12:14:51 +02:00
Juan Lang
0f43beaa7b
wintrust: Implement OpenPersonalTrustDBDialog.
2008-10-02 10:28:45 -05:00
Juan Lang
8c90767c3d
wintrust: Implement WTHelperGetKnownUsages.
2008-10-01 09:56:22 -05:00
Juan Lang
c4c409e91c
wintrust: Add tests for WTHelperGetKnownUsages.
2008-10-01 09:55:20 -05:00
Juan Lang
6e0f86596f
wintrust: Add stub for WTHelperGetKnownUsages.
2008-10-01 09:54:38 -05: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
d99b23819d
wintrust: Support the CERT_CERTIFICATE_ACTION_VERIFY action.
2008-09-23 12:13:52 +02: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
f3ba89f948
wintrust: Use helper function to add the trust steps to execute.
2008-09-23 12:13:35 +02:00
Juan Lang
a74aab7516
wintrust: Use helper function to allocate CRYPT_PROVIDER_DATA.
2008-09-23 12:13:26 +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
Juan Lang
500403957d
wintrust: Add traces to a few more functions.
2008-09-19 12:09:02 +02:00
Juan Lang
61077035fc
wintrust: Don't assume dwStateAction is set in WINTRUST_DATA.
2008-09-18 12:32:31 +02:00
Marcus Meissner
de530b55af
include: Allocation size markup.
2008-09-15 11:23:27 +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
Paul Vriens
6d6881a791
wintrust/tests: Add a missing FreeLibrary.
2008-09-05 16:26:33 +02:00
Juan Lang
2a31760331
wintrust: Implement CryptSIPGetSignedDataMsg for cabinet files.
...
Fixes a regression in installing the DirectX 9 runtime.
Based on code from cabinet.dll's fdi.c, thus the healthy dose of
attributions. Unfortunately there's no public API that'll get this
info for me (that I know of.)
2008-07-24 11:58:02 +02:00
Juan Lang
c7d1d34956
wintrust: Don't assume input file is a PE file in CryptSIPGetSignedDataMsg.
2008-07-24 11:57:34 +02:00
Francois Gouget
32974e25a2
wintrust/tests: Fix compilation on systems that don't support nameless unions.
2008-07-21 12:57:42 +02:00
Juan Lang
88ac766f8b
wintrust: Correct error slot for SoftpubLoadSignature.
2008-07-16 17:53:32 +02:00
Juan Lang
b871679922
wintrust: Execute WinVerifyTrust as a sequence of steps, and return the error code from the first failing step of the sequence.
2008-07-16 17:53:18 +02:00
Juan Lang
a3e601ecf0
wintrust: Add tests for WinVerifyTrust/WinVerifyTrustEx.
2008-07-16 17:53:07 +02:00
Juan Lang
1da4a29050
wintrust: Move provider function tests to their own function.
2008-07-16 17:52:45 +02:00
Andrew Talbot
015321910d
wintrust: Remove unneeded address-of operators from array names.
2008-07-14 11:50:45 +02:00
Juan Lang
0c419108ef
wintrust: Use path in WIN_TRUST_SUBJECT_FILE structure rather than assuming a path is passed in place of WINTRUST_DATA's pFile member.
2008-07-11 13:58:07 +02:00
Roy Shea
363516d7c3
wintrust/test: Verify array length before calling memcmp in test.
2008-07-08 10:47:57 +02:00
Paul Vriens
b3db514cd5
wintrust/tests: Fix test on win9x.
2008-06-05 12:31:00 +02:00
Alexandre Julliard
ef07d83405
Include wine/port.h everywhere we use exceptions.
2008-04-29 20:18:49 +02:00
Rob Shearman
91d5844f76
wintrust: Check that provider functions are not NULL before using them.
2008-04-24 11:49:42 +02:00
Rob Shearman
8e0f125f45
wintrust: Implement WTHelperGetProvPrivateDataFromChain.
...
Also fill in pfnAddPrivData2Chain in WintrustLoadFunctionPointers, which
is the complement of WTHelperGetProvPrivateDataFromChain.
2008-04-24 11:49:35 +02:00
Austin English
6e59cd2c34
Spelling fixes.
2008-04-22 12:20:12 +02:00
Rhys McGuckin
890c3fd0f6
wintrust: Check for null CleanupPolicy function pointer.
2008-04-17 21:27:04 +02:00
Andrew Talbot
e68cc16a11
wintrust: Avoid assigning to struct members from other structs.
2008-04-07 11:24:09 +02:00
Andrew Talbot
a1732549ca
wintrust: Assign to structs instead of using memcpy.
2008-03-24 11:32:58 +01:00
Rob Shearman
48000893f9
makefiles: Simplify the use of the IMPORTLIB variable in the DLL makefiles.
...
Only specify the root to keep platform-specifics out of the individual
DLL makefiles.
2008-03-04 20:55:01 +01:00
Francois Gouget
dd50ac4e15
wintrust/tests: Crypt(En,De)codeObjectEx() are not available on Win9x. So load them dynamically and skip some tests.
2008-03-03 12:04:04 +01:00
Paul Vriens
4844672781
wintrust/tests: Add a few tests.
2008-02-28 20:00:45 +01:00
Paul Vriens
84039b26fe
wintrust/tests: W2K and XP-SP1 don't set last error.
2008-02-28 20:00:41 +01:00
Paul Vriens
ea4489cfb0
wintrust/crypt: Fix some test failures for a NULL parameter.
2008-02-11 20:41:40 +01:00
Paul Vriens
9be7a60d08
wintrust/tests: Change test_RegPolicyFlags to use the same logic as the rest of the tests.
2008-02-11 20:41:40 +01:00
Paul Vriens
c16830db8c
wintrust/tests: Use GetModuleHandleA instead of LoadLibraryA.
2008-02-11 20:41:40 +01:00
Paul Vriens
533b15d6ea
wintrust/tests: Use GetModuleHandleA instead of LoadLibraryA.
2008-02-06 14:20:52 +01:00
Juan Lang
14a12b8861
wintrust: Don't expect ImageGetCertificateData to succeed when Certificate is NULL.
2008-01-15 11:37:54 +01:00
Aric Stewart
8d5f94b199
wintrust: Implementations for WTHelperGetFileName and WTHelperGetFileHandle.
2007-12-11 17:49:48 +01:00
Alexandre Julliard
ad9396302d
Removed some unneeded imports.
2007-12-06 21:24:24 +01:00
Alexandre Julliard
97675b1365
Include objbase.h where need to get the DllRegisterServer prototype.
2007-11-06 14:39:16 +01:00
Juan Lang
0cd5f2089e
wintrust: Add generic chain action to known actions.
2007-10-09 20:20:40 +02: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
Juan Lang
d1fcdea034
wintrust: Implement GenericChainCertificateTrust.
2007-10-09 20:20:24 +02:00
Juan Lang
cab0c5a553
wintrust: Add a helper function to create a chain for a signer.
2007-10-09 20:20:17 +02:00
Juan Lang
1a88c8bccb
wintrust: Add a helper function to initialize chain creation parameters.
2007-10-09 20:20:11 +02:00
Juan Lang
7bff4e7141
wintrust: Trace input to WinVerifyTrust.
2007-10-09 20:20:04 +02:00
Juan Lang
4089be2588
wintrust: Use verify time rather than current time to check certificate chain.
2007-10-04 11:38:40 +02:00
Juan Lang
b78c69dd4b
wintrust: Remove bad check that prevents root certificates from appearing time valid.
2007-10-04 11:38:33 +02:00
Juan Lang
deb1709686
wintrust: Use file's creation time as time to verify.
2007-10-04 11:38:27 +02:00
Juan Lang
85efd02fab
wintrust: Copy time to verify from cert info.
2007-10-04 11:38:20 +02:00
Juan Lang
fa355b2180
wintrust: Add stub for WVTAsn1SpcSpOpusInfoDecode.
2007-10-01 12:33:43 +02:00
Juan Lang
07979b9975
wintrust: Don't warn for generic cert verify action.
2007-10-01 12:33:07 +02:00
Juan Lang
d7d4a5c4a9
wintrust: In SoftpubLoadSignature, don't assume a message is present.
2007-10-01 12:33:01 +02:00
Juan Lang
5fa5518641
wintrust: Improve SoftpubLoadMessage for WTD_CHOICE_CERT.
2007-10-01 12:32:55 +02:00
Juan Lang
5adeae168b
wintrust: Implement SoftpubDefCertInit.
2007-10-01 12:32:49 +02:00
Francois Gouget
9114bc1bd8
wintrust: Fix compilation on systems that don't support nameless unions.
2007-09-18 11:20:31 +02:00
Juan Lang
ae8e8a0a57
wintrust: Don't prefer native version.
2007-09-13 10:54:49 +02:00
Juan Lang
40f33d6568
wintrust: Implement WinVerifyTrust.
2007-09-13 10:54:41 +02:00
Juan Lang
0463f99b73
wintrust: Partially implement SoftpubAuthenticode.
2007-09-13 10:54:34 +02:00
Juan Lang
277ef05efb
wintrust: Save signer cert so chain can be created.
2007-09-13 10:54:29 +02:00
Juan Lang
b13d16a0da
wintrust: Implement SoftpubCleanup.
2007-09-13 10:54:22 +02:00
Francois Gouget
2eeb4eaf1d
wintrust: Fix compilation on systems that don't support nameless unions.
2007-09-12 11:33:10 +02:00
Juan Lang
b157166345
wintrust: Implement pfnCertificateTrust.
2007-08-29 12:00:33 +02:00
Juan Lang
5d7bffa5c7
wintrust: Save signers of a message in SoftpubLoadSignature.
2007-08-29 12:00:24 +02:00
Juan Lang
fb07a3aa02
wintrust: Use a helper function to get a signer's cert info from a message.
2007-08-29 12:00:18 +02:00