rsaenh/tests: Mark an old behavior as broken (PVS-Studio).

All newer Windows support salt in their AES provider.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2015-10-28 11:22:37 +01:00 committed by Alexandre Julliard
parent bcff50a9d4
commit 899207b6c9
1 changed files with 2 additions and 2 deletions

View File

@ -1166,8 +1166,8 @@ static void test_aes(int keylen)
/* Does AES provider support salt? */ /* Does AES provider support salt? */
result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0); result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0);
ok((!result && GetLastError() == NTE_BAD_KEY) || result /* Win7 */, todo_wine ok(result || broken(GetLastError() == NTE_BAD_KEY), /* Vista or older */
"expected NTE_BAD_KEY, got %08x\n", GetLastError()); "Expected OK, got last error %d\n", GetLastError());
if (result) if (result)
ok(!dwLen, "unexpected salt length %d\n", dwLen); ok(!dwLen, "unexpected salt length %d\n", dwLen);