rsaenh/tests: Skip broken TLS1 tests on Windows 8 and greater.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2016-11-07 17:03:47 +00:00 committed by Alexandre Julliard
parent d4fab3b42b
commit 0a17b70140
1 changed files with 12 additions and 2 deletions

View File

@ -2801,8 +2801,18 @@ static void test_schannel_provider(void)
if (!result) return;
result = CryptCreateHash(hProv, CALG_SCHANNEL_MASTER_HASH, hMasterSecret, 0, &hMasterHash);
ok (result, "%08x\n", GetLastError());
if (!result) return;
ok (result ||
broken(!result), /* Windows 8 and greater */
"%08x\n", GetLastError());
if (!result)
{
win_skip("Broken TLS1 hash creation\n");
CryptDestroyKey(hRSAKey);
CryptDestroyKey(hMasterSecret);
CryptReleaseContext(hProv, 0);
CryptAcquireContextA(&hProv, NULL, NULL, PROV_RSA_SCHANNEL, CRYPT_DELETEKEYSET);
return;
}
/* Deriving the server write encryption key from the master hash can't
* succeed before the encryption key algorithm is set.