Commit Graph

83 Commits

Author SHA1 Message Date
Eric Pouech 339f4a3a70 advapi32/tests: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-23 10:17:25 +01:00
Paul Gofman 992117ac98 advapi32: Handle exceptions from dereferencing invalid crypt objects' handles.
Fixes crash on start in "Re:ZERO -Starting Life in Another World- The
Prophecy of the Throne".

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-23 22:30:31 +01:00
Paul Gofman 7d4eaa30a4 advapi32: Return ERROR_INVALID_PARAMETER for invalid crypt objects' handles.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-23 22:30:30 +01:00
Serge Gautherie 32b23dd114 advapi32/tests: Add more cases for CryptReleaseContext().
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-17 16:04:49 +01:00
Serge Gautherie 812c981886 advapi32/tests: Check all CryptReleaseContext() calls.
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-17 16:00:32 +01:00
Nikolay Sivov 970d8d5d09 advapi32/tests: Remove some workarounds in Crypt* tests.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-10 18:41:48 +01:00
Dmitry Timoshkov cd5c9a2bed advapi32: CryptAcquireContext(CRYPT_DELETEKEYSET) should set returned provider handle to 0.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-12 20:32:59 +01:00
Dmitry Timoshkov b13b8ccc1f advapi32/tests: Add a test for provider handle returned by CryptAcquireContext(CRYPT_DELETEKEYSET).
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-12 20:32:57 +01:00
Hans Leidekker fbec6c540a advapi32/tests: Fix a memory leak (Valgrind).
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-24 20:52:08 +01:00
Vincent Povirk f742b05d77 advapi32/tests: Skip test when registry virtualization can't delete values.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 13:14:13 +09:00
Frédéric Delanoy 0f2bed51bd Assorted spelling fixes. 2014-02-10 15:47:29 +01:00
Nikolay Sivov f6b2aa4a01 advapi32/tests: Compile with -D__WINESRC__. 2013-10-15 14:28:20 +02:00
Hans Leidekker 51acdc6b27 advapi32/tests: Mark a test result as broken. 2013-09-23 11:56:58 +02:00
Hans Leidekker 8e74c8953a rsaenh: Add support for retrieving the security descriptor on key containers. 2013-09-19 20:14:02 +02:00
André Hentschel 9374c5bb56 advapi32/tests: Remove bad key set on cleanup. 2013-04-02 12:47:26 +02:00
Alex Henrie 142afabb41 advapi32: Destination length -1 means no limit. 2013-01-31 12:21:08 +01:00
Marcus Meissner 748dd6fed3 advapi32: Removed a double free issue on loop termination (Coverity). 2012-10-10 10:35:47 +02:00
Johan Gill 16dc83578a advapi32: CryptCreateHash actually sets ERROR_INVALID_PARAMETER if the CSP handle is 0. 2012-02-14 17:59:29 +01:00
Juan Lang c21033c5e9 advapi32/tests: Fix a test failure on older NT4. 2012-02-13 13:09:45 +01:00
Michael Stefaniuc b856884c3b advapi32: Remove wrong "is NULL and error out" code (coccicheck). 2011-06-06 16:29:58 +02:00
Austin English d10a4dce8e advapi32/tests: Make sure to use return value (LLVM/Clang). 2011-02-04 15:25:33 +01:00
Juan Lang c91afb9733 rsaenh: Add support for CRYPT_IPSEC_HMAC_KEY. 2011-01-14 18:26:17 +01:00
André Hentschel f36b593498 advapi32: Fix test failure on some NT4 machines. 2010-12-13 17:29:46 +01:00
Andrew Nguyen 890ce5360d advapi32: Fix SystemFunction036 prototype to match ntsecapi.h. 2010-03-22 11:40:22 +01:00
Paul Vriens 0b994d0aee advapi32/tests: Restore default cryptographic provider after the tests. 2010-03-15 13:28:23 +01:00
Andrew Nguyen 3822f9d2e1 advapi32/tests: Test SystemFunction036. 2010-01-18 14:28:16 +01:00
Juan Lang dec7dda411 advapi32/tests: Fix memory leaks in tests. 2009-12-11 17:47:30 +01:00
Jeremy White 5df2626aae advapi32/tests: Only release providers and free keys if we've had success creating them. 2009-11-04 16:45:16 +01:00
Juan Lang 18ba0ae59f advapi32: Fix a comment typo. 2009-10-23 12:00:09 +02:00
Paul Vriens f555aef269 advapi32/tests: Fix some test failures on several platforms. 2009-10-23 12:00:00 +02:00
Juan Lang 9d9ae93a58 rsaenh: Revert part of d3c482250a. 2009-10-22 10:55:49 +02:00
Juan Lang a48aae26e6 rsaenh: Fail if CRYPT_IPSEC_HMAC_KEY is passed to CryptImportKey. 2009-10-22 10:55:42 +02:00
Juan Lang a1502846af rsaenh: Add more tests of the RC2 key length. 2009-10-22 10:55:35 +02:00
Paul Vriens b4955e5779 advapi32/tests: Fix a test failure on W2K and lower. 2009-10-14 11:22:46 +02:00
Dmitry Timoshkov d3c482250a rsaenh: Fix the accepted RC2 key length, based on a test case by Dan Kegel. 2009-10-13 14:07:00 +02:00
Francois Gouget e3b00de35f advapi32/tests: Use win_skip() to skip over unimplemented functionality. 2009-02-26 12:18:46 +01:00
James Hawkins a072f85b9f advapi32: Skip tests if the default provider cannot be removed. 2009-01-26 16:07:56 +01:00
Michael Stefaniuc 2fc7b81009 advapi32/tests: Remove superfluous pointer casts. 2009-01-13 15:26:00 +01:00
Nicolas Le Cam ae0bddeb85 advapi32/tests: Run a test on more platforms. 2008-11-07 11:27:23 +01:00
Nicolas Le Cam f714cf4bd1 advapi32/tests: test_enum_provider_types test cleanup. 2008-11-07 11:25:15 +01:00
Michael Stefaniuc dfb8e7cba3 advapi32/tests: Use 0 instead of casting NULL to a handle of integer type. 2008-10-27 11:28:06 +01:00
Francois Gouget 705de5d391 advapi32/tests: Remove a stray reference to CryptReleaseContext(). This gets the test to run again on Win95. 2008-05-22 11:43:09 +02:00
James Hawkins 9f859b4519 advapi32: Remove a test that fails on some systems. 2008-04-21 12:12:13 +02:00
Juan Lang 9ea9eaaa81 advapi32: Create MachineGuid value if it doesn't exist. 2008-03-25 19:58:43 +01:00
Juan Lang 4c984e089a advapi32: Test the MachineGuid value. 2008-03-25 19:58:37 +01:00
Juan Lang 3138f87e73 advapi32: Fix CryptVerifySignatureW test failures on Win98SE and NT4. 2008-02-16 13:51:37 +01:00
Paul Vriens e2de4b18e5 advapi32/tests: CryptVerifySignatureW is not implemented on win98. 2008-02-15 09:54:23 +01:00
Paul Vriens 56d085ccec advapi32/tests: Only use functions if they are implemented. 2008-02-12 22:40:15 +01:00
Juan Lang a5bbed2b95 advapi32: Add more tests for CryptVerifySignatureW, and correct its parameter checking. 2007-08-23 12:37:55 +02:00
Paul Vriens 02e160179f advapi32/tests: Use skip when we don't have enough rights. 2007-07-30 23:37:58 +02:00