Commit Graph

56 Commits

Author SHA1 Message Date
Rémi Bernon 0fb7ea9120 wintrust: Don't fail CryptCATOpen on empty file or invalid data.
Fixes a regression from 699e0a55ea,
making "winetricks dotnet30sp1" fail.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49831
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-16 22:32:05 +01:00
Zebediah Figura 20f6f61212 wintrust: Translate CRYPTCAT_OPEN_CREATENEW to CREATE_ALWAYS.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-08 09:23:57 +02:00
Zebediah Figura 092cf0a06d wintrust: Assign the file open mode directly instead of treating it as a bitmask.
Found when debugging the "inf2cat" tool from the Windows 10 DDK.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-08 09:23:52 +02:00
Zebediah Figura e07539d1ce wintrust/tests: Add more tests for CryptCATOpen() file modes.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-08 09:23:50 +02:00
Hans Leidekker bdc309b949 wintrust/tests: Disable a test that crashes on 64-bit Windows 10.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-31 15:58:43 +01:00
Hans Leidekker 14444fab92 wintrust/tests: Fix test failures on Windows 8.1 and 10.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-19 14:11:30 +01:00
Andrey Gusev 6e954bd979 wintrust/tests: Fix a typo in ok() messages.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-02 12:26:49 +09:00
Michael Stefaniuc 971cf70014 wintrust/tests: Remove an unused assignment (PVS-Studio). 2015-01-23 15:33:06 +01:00
Frédéric Delanoy 2ab8729020 Assorted spelling/grammar fixes. 2014-06-20 12:19:31 +02:00
Huw Davies a27a1214a2 wintrust/tests: Fix failing test on win8. 2014-05-06 19:21:58 +02:00
Frédéric Delanoy bf1a43e620 wintrust/tests: Constify some character strings. 2014-01-02 11:52:39 +01:00
Detlef Riekenberg 48ae4314d0 wintrust/tests: Accept the CryptCATAdminAcquireContext win8 results. 2013-11-19 19:06:10 +01:00
Michael Stefaniuc 640dd17acf wintrust/tests: Compile with -D__WINESRC__. 2013-10-18 11:31:46 +02:00
André Hentschel aa80d16768 wintrust/tests: Unify test message in case of a FALSE return. 2012-12-06 20:31:31 +01:00
Francois Gouget 709a0b764d Use the CP_ACP and NULL macros instead of numeric literals when converting strings between ANSI and Unicode. 2012-09-24 22:27:28 +02:00
Detlef Riekenberg fbc735bef7 wintrust/tests: Handle ERROR_ACCESS_DENIED failures. 2012-08-14 11:58:14 +02:00
Nicolas Le Cam 2573c84423 wintrust/tests: BaseOfData isn't part of IMAGE_OPTIONAL_HEADER64 structure. 2011-05-06 14:23:46 +02:00
Piotr Caban 1ece5b3ab6 wintrust: Added CryptSIP{Get,Put}SignedDataMsg tests. 2011-05-03 19:34:29 +02:00
Austin English d23b088818 wintrust/tests: Remove win9x hacks. 2011-02-18 14:54:51 +01:00
Austin English 4d6caaebbd wintrust/tests: Make sure return values are used (LLVM/Clang). 2011-02-04 15:25:33 +01:00
Juan Lang 0b7711e545 wintrust/tests: Fix test failures when not running as administrator. 2010-05-18 08:49:52 +02:00
Gerald Pfeifer 7cdcdf781e wintrust/tests: Remove variable myARGC which is not really used from test_cdf_parsing. 2010-05-03 15:39:56 +02:00
James Hawkins b2d1c3eeec wintrust: Fix a memory leak until our implementation is fixed. 2010-01-07 17:59:58 +01:00
Paul Vriens 1862826a87 wintrust/tests: Add a basic CryptCATOpen test. 2009-05-19 15:24:56 +02:00
Detlef Riekenberg 24340287fd wintrust/tests: Do not test GetLastError on success. 2009-04-09 11:19:09 +02:00
Detlef Riekenberg 49ff2be04e wintrust/tests: Fix some tests on win9x. 2009-04-09 11:18:58 +02:00
Michael Stefaniuc 03f04e15fe wintrust/tests: Fix typos in ok() strings. 2009-02-17 12:51:44 +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
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
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 669aa20c91 wintrust/tests: Add a test for enumerating catalog attributes. 2009-01-19 14:18:30 +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
Hans Leidekker 053b2295a5 wintrust: Add some tests. 2008-12-23 18:52:28 +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 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
Roy Shea 363516d7c3 wintrust/test: Verify array length before calling memcmp in test. 2008-07-08 10:47:57 +02:00