mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 02:03:37 +00:00
dssenh/tests: Add CryptAcquireContextA last error check.
When container key doesn't exist yet. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=30244 Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
98f7be8540
commit
c5bdc2408f
|
@ -71,6 +71,19 @@ static void test_acquire_context(void)
|
|||
|
||||
/* test base DSS provider (PROV_DSS) */
|
||||
|
||||
SetLastError(0xdeadbeef);
|
||||
result = CryptAcquireContextA(&hProv, NULL, NULL, PROV_DSS, 0);
|
||||
if (!result)
|
||||
{
|
||||
todo_wine ok(GetLastError() == NTE_BAD_KEYSET, "Expected NTE_BAD_KEYSET, got %08x\n", GetLastError());
|
||||
SetLastError(0xdeadbeef);
|
||||
result = CryptAcquireContextA(&hProv, NULL, NULL, PROV_DSS, CRYPT_NEWKEYSET);
|
||||
}
|
||||
ok(result, "CryptAcquireContextA succeeded\n");
|
||||
|
||||
result = CryptReleaseContext(hProv, 0);
|
||||
ok(result, "CryptReleaseContext failed.\n");
|
||||
|
||||
result = CryptAcquireContextA(
|
||||
&hProv, NULL, MS_DEF_DSS_PROV_A, PROV_DSS, CRYPT_VERIFYCONTEXT);
|
||||
if(!result)
|
||||
|
|
Loading…
Reference in a new issue