Commit Graph

164 Commits

Author SHA1 Message Date
Eric Pouech 457044cb47 wintrust/tests: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-09 19:11:43 +01:00
Alexandre Julliard f0cd33c69e include: Add support for defining Win32 types as 'long' where possible.
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
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
Daniel Lehman 95a80d3585 wintrust: Set last error in WinVerifyTrust.
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-25 08:47:25 +01:00
Sven Baars 55a5818106 wintrust/tests: Initialize cbStruct in the ObjectTrust tests.
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-11 20:01:40 +01:00
Michael Stefaniuc 70996f49e3 wintrust: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-29 22:23:41 +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
Sebastian Lackner 0e84010766 wintrust/tests: Add some additional tests.
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-27 23:09:09 +01:00
Mark Jansen eaf68e99ba wintrust/tests: Add tests for WinVerifyTrust.
Includes various improvements by Sebastian Lackner <sebastian@fds-team.de>.

Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-27 23:08:59 +01:00
Michael Stefaniuc 6ff4365fb3 wintrust/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-30 09:11:20 +02:00
Alex Henrie 110db9fe1d wintrust/tests: Initialize structure passed to WintrustLoadFunctionPointers.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-18 18:44:20 +01: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
Huw Davies 7770937a57 wintrust/tests: Zero-init error array to prevent failures on 64-bit.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-20 17:39:44 +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
Huw Davies efd063f5c5 wintrust/tests: Initialize the pSigState member to prevent Windows 8 and 10 from crashing.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-28 14:16:54 +01:00
Huw Davies 098aa2be84 wintrust/tests: Remove a test that crashes on Windows 8 amd 10.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-28 14:16:53 +01:00
Sebastian Lackner f9e5c96e5e wintrust/tests: Fix test for pfnAddSgnr2Chain.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-02 11:26:38 +09: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
Nikolay Sivov 9b9dd19297 wintrust/tests: Use proper return types when calling provider funcs (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 01:04:29 +09:00
Michael Stefaniuc 971cf70014 wintrust/tests: Remove an unused assignment (PVS-Studio). 2015-01-23 15:33:06 +01:00
André Hentschel dc4d32953f wintrust: Remove unused variable (Clang). 2014-12-04 14:03:19 +01:00
Frédéric Delanoy 2ab8729020 Assorted spelling/grammar fixes. 2014-06-20 12:19:31 +02:00
Bruno Jesus dbdb244d13 wintrust/tests: Fix a memory leak (valgrind). 2014-06-11 16:10:23 +02:00
Huw Davies a27a1214a2 wintrust/tests: Fix failing test on win8. 2014-05-06 19:21:58 +02:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01: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
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Hans Leidekker e1b4334f89 wintrust/tests: Replace the self-signed certificate with one that expires in ten years. 2013-06-21 16:23:34 +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
Thomas Faber e68d5b93ff wintrust/tests: Fix build with MSVC. 2012-06-22 14:09:45 +02:00
Francois Gouget 3de330db54 tests: Remove unneeded assert.h includes. 2011-09-27 10:59:56 +02:00
Juan Lang c0a8694bbc wintrust: Correct ObjectTrust error with empty files. 2011-09-15 15:41:40 +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
Juan Lang 7c42297bf3 wintrust/tests: Fix a leak (valgrind). 2011-02-17 17:26:00 +01:00
Juan Lang 4325d75d5d wintrust/tests: Fix a leak (valgrind). 2011-02-10 10:28:02 -06:00
Austin English 4d6caaebbd wintrust/tests: Make sure return values are used (LLVM/Clang). 2011-02-04 15:25:33 +01:00
Austin English 855c5e848d wintrust/tests: Make sure return values are used (LLVM/Clang). 2011-02-04 15:25:33 +01:00
Austin English 0fed8b0fe2 wintrust/tests: Make sure return values are used (LLVM/Clang). 2011-02-04 15:25:33 +01:00
Detlef Riekenberg 179e26b3f1 wintrust/tests: Run the test again on W98. 2010-11-05 17:15:36 +01:00
Juan Lang 604e39dde5 crypt32: Add parameter checking to CryptSIPCreateIndirectData. 2010-09-24 18:20:27 +02:00
Juan Lang ea715da1c6 wintrust/tests: Test CryptSIPCreateIndirectData. 2010-09-24 18:20:25 +02:00