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:
parent
d4fab3b42b
commit
0a17b70140
|
@ -2801,8 +2801,18 @@ static void test_schannel_provider(void)
|
||||||
if (!result) return;
|
if (!result) return;
|
||||||
|
|
||||||
result = CryptCreateHash(hProv, CALG_SCHANNEL_MASTER_HASH, hMasterSecret, 0, &hMasterHash);
|
result = CryptCreateHash(hProv, CALG_SCHANNEL_MASTER_HASH, hMasterSecret, 0, &hMasterHash);
|
||||||
ok (result, "%08x\n", GetLastError());
|
ok (result ||
|
||||||
if (!result) return;
|
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
|
/* Deriving the server write encryption key from the master hash can't
|
||||||
* succeed before the encryption key algorithm is set.
|
* succeed before the encryption key algorithm is set.
|
||||||
|
|
Loading…
Reference in New Issue