Module: wine Branch: master Commit: 0a17b701403411804d401416aff970a229b517f7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0a17b701403411804d401416af...
Author: Huw Davies huw@codeweavers.com Date: Mon Nov 7 17:03:47 2016 +0000
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
---
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.