crypt32: Fix a failing test in Vista.
This commit is contained in:
parent
f9b0620f9f
commit
fff29663ab
|
@ -414,9 +414,11 @@ static void test_hash_message(void)
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
ret = CryptHashMessage(¶, FALSE, 2, toHash, hashSize, NULL,
|
ret = CryptHashMessage(¶, FALSE, 2, toHash, hashSize, NULL,
|
||||||
&hashedBlobSize, NULL, NULL);
|
&hashedBlobSize, NULL, NULL);
|
||||||
ok(!ret && GetLastError() == CRYPT_E_UNKNOWN_ALGO,
|
ok(!ret &&
|
||||||
"expected CRYPT_E_UNKNOWN_ALGO, got 0x%08x (%d)\n", GetLastError(),
|
(GetLastError() == CRYPT_E_UNKNOWN_ALGO ||
|
||||||
GetLastError());
|
GetLastError() == CRYPT_E_OID_FORMAT), /* Vista */
|
||||||
|
"expected CRYPT_E_UNKNOWN_ALGO or CRYPT_E_OID_FORMAT, got 0x%08x (%d)\n",
|
||||||
|
GetLastError(), GetLastError());
|
||||||
para.HashAlgorithm.pszObjId = oid_rsa_md5;
|
para.HashAlgorithm.pszObjId = oid_rsa_md5;
|
||||||
/* With a valid hash algorithm, this succeeds, even though fDetached is
|
/* With a valid hash algorithm, this succeeds, even though fDetached is
|
||||||
* FALSE.
|
* FALSE.
|
||||||
|
|
Loading…
Reference in New Issue