Commit ee2fc60c authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Fix remaining Win9x encoding test failures.

parent a1a25c53
...@@ -6481,8 +6481,14 @@ static void test_encodeCMSSignerInfo(DWORD dwEncoding) ...@@ -6481,8 +6481,14 @@ static void test_encodeCMSSignerInfo(DWORD dwEncoding)
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ret = pCryptEncodeObjectEx(dwEncoding, CMS_SIGNER_INFO, &info, ret = pCryptEncodeObjectEx(dwEncoding, CMS_SIGNER_INFO, &info,
CRYPT_ENCODE_ALLOC_FLAG, NULL, (BYTE *)&buf, &size); CRYPT_ENCODE_ALLOC_FLAG, NULL, (BYTE *)&buf, &size);
ok(!ret && GetLastError() == E_INVALIDARG, ok(!ret, "Expected failure, got %d\n", ret);
"Expected E_INVALIDARG, got %08x\n", GetLastError()); if (!ret && GetLastError() == ERROR_FILE_NOT_FOUND)
{
skip("no CMS_SIGNER_INFO encode support\n");
return;
}
ok(GetLastError() == E_INVALIDARG,
"Expected E_INVALIDARG, got %08x\n", GetLastError());
/* To be encoded, a signer must have a valid cert ID, where a valid ID may /* To be encoded, a signer must have a valid cert ID, where a valid ID may
* be a key id or a issuer serial number with at least the issuer set, and * be a key id or a issuer serial number with at least the issuer set, and
* the encoding must include PKCS_7_ASN_ENCODING. * the encoding must include PKCS_7_ASN_ENCODING.
......
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