rsaenh/tests: Skip broken TLS1 tests on Windows 8 and greater.
Huw Davies
huw at codeweavers.com
Mon Nov 7 11:03:47 CST 2016
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
dlls/rsaenh/tests/rsaenh.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c
index ebdbba8..4286db0 100644
--- a/dlls/rsaenh/tests/rsaenh.c
+++ b/dlls/rsaenh/tests/rsaenh.c
@@ -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.
--
2.7.4
More information about the wine-patches
mailing list