Commit 54958a21 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

rsaenh/tests: Fix some test failures on NT4 and lower.

parent 6c142387
...@@ -1048,7 +1048,9 @@ static void test_rc2(void) ...@@ -1048,7 +1048,9 @@ static void test_rc2(void)
dwLen = 0; dwLen = 0;
result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0); result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0);
ok(result, "%08x\n", GetLastError()); ok(result, "%08x\n", GetLastError());
ok(dwLen == 0, "unexpected salt length %d\n", dwLen); ok(dwLen == 0 ||
broken(dwLen == 11), /* Win9x/WinMe/NT4 */
"unexpected salt length %d\n", dwLen);
/* What sizes salt can I set? */ /* What sizes salt can I set? */
salt.pbData = pbData; salt.pbData = pbData;
for (i=0; i<24; i++) for (i=0; i<24; i++)
...@@ -1214,7 +1216,9 @@ static void test_rc4(void) ...@@ -1214,7 +1216,9 @@ static void test_rc4(void)
dwLen = 0; dwLen = 0;
result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0); result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0);
ok(result, "%08x\n", GetLastError()); ok(result, "%08x\n", GetLastError());
ok(dwLen == 0, "unexpected salt length %d\n", dwLen); ok(dwLen == 0 ||
broken(dwLen == 11), /* Win9x/WinMe/NT4 */
"unexpected salt length %d\n", dwLen);
/* What sizes salt can I set? */ /* What sizes salt can I set? */
salt.pbData = pbData; salt.pbData = pbData;
for (i=0; i<24; i++) for (i=0; i<24; i++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment