Commit b13b8ccc authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

advapi32/tests: Add a test for provider handle returned by CryptAcquireContext(CRYPT_DELETEKEYSET).

parent c530d494
......@@ -269,9 +269,12 @@ static void test_incorrect_api_usage(void)
result = pCryptSetKeyParam(hKey2, KP_MODE, (BYTE*)&dwTemp, sizeof(DWORD));
ok (!result && GetLastError() == ERROR_INVALID_PARAMETER, "%d\n", GetLastError());
hProv2 = 0xdeadbeef;
result = pCryptAcquireContextA(&hProv2, szBadKeySet, NULL, PROV_RSA_FULL,
CRYPT_DELETEKEYSET);
ok (result, "%d\n", GetLastError());
todo_wine
ok (hProv2 == 0, "%ld\n", hProv2);
if (!result) return;
result = pCryptReleaseContext(hProv, 0);
......@@ -1176,9 +1179,12 @@ static void test_container_sd(void)
ret = CryptReleaseContext(prov, 0);
ok(ret, "got %u\n", GetLastError());
prov = 0xdeadbeef;
ret = CryptAcquireContextA(&prov, "winetest", "Microsoft Enhanced Cryptographic Provider v1.0",
PROV_RSA_FULL, CRYPT_MACHINE_KEYSET|CRYPT_DELETEKEYSET);
ok(ret, "got %u\n", GetLastError());
todo_wine
ok(prov == 0, "got %ld\n", prov);
}
START_TEST(crypt)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment