Commit Graph

407 Commits

Author SHA1 Message Date
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
Alexandre Julliard 8a281038af wintrust: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-27 09:29:13 +02: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
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
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
Gijs Vermeulen 479c300728 wintrust: Add CryptCATAdminAcquireContext2 stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45998
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-21 22:57:51 +01:00
Gijs Vermeulen 1c97c96373 wintrust: Update spec file.
File version: 10.0.17763.348 (Windows 10).

Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-21 22:57:51 +01:00
Michael Stefaniuc 2b8d9764ea wintrust: Remove redundant not-NULL checks (coccinellery).
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-22 12:27:23 +01: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
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
Jactry Zeng 567ad03310 wintrust: Update version to 6.1.7601.23769.
Installer of Google drive will check wintrust's version to make sure
Windows security update was installed.

Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-22 10:25:57 +01:00
Alexandre Julliard 9369e800c0 wintrust: Increase buffer size to silence a gcc warning.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-29 15:51:27 +02:00
André Hentschel f1dfc53ba2 wintrust: Fix CryptCATAdminAcquireContext spec file entry.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-23 13:15:44 +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
Carlo Bramini e141d4a1c6 wintrust: Use return value of sprintf() instead of calling strlen().
Signed-off-by: Carlo Bramini <carlo_bramini@users.sourceforge.net>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-14 11:07:09 -06:00
Jacek Caban fb518192bb wintrust: Don't close key if RegOpenKeyExW failed.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-17 16:19:47 -07: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
Francois Gouget 17d1126d03 wintrust: Fix spelling of a variable name.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-13 23:01:11 +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
Sebastian Lackner e5e05b971b wintrust: Create a dummy context to force creation of MachineGuid registry key. 2015-07-31 12:08:45 +02: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
Sebastian Lackner 4b7ec82663 wintrust: Reset data->pWintrustData->u.pFile->hFile after closing handle. 2014-12-02 15:03:17 +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 f4f01301f0 crypt32: Add a new element to SIP_ADD_NEWPROVIDER. 2014-06-11 13:03:46 +02:00
Alexandre Julliard 6eb922f1d4 wintrust: Remove unnecessary DllMain implementation. 2014-05-15 19:04:49 +02:00
Huw Davies a27a1214a2 wintrust/tests: Fix failing test on win8. 2014-05-06 19:21:58 +02:00
Frédéric Delanoy 0f2bed51bd Assorted spelling fixes. 2014-02-10 15:47:29 +01:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Frédéric Delanoy bf1a43e620 wintrust/tests: Constify some character strings. 2014-01-02 11:52:39 +01:00
Frédéric Delanoy 57d7f74d34 Assorted spelling fixes. 2013-11-21 19:44:46 +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
Marcus Meissner a090b46f72 wintrust: Fixed some memory leaks (Coverity). 2013-09-30 20:34:50 +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
Michael Stefaniuc a04900df68 wintrust: Avoid a TRUE:FALSE conditional expression. 2012-08-15 12:12:59 +02:00
Detlef Riekenberg fbc735bef7 wintrust/tests: Handle ERROR_ACCESS_DENIED failures. 2012-08-14 11:58:14 +02:00