crypt32: Test updating hash messages with NULL stream output function.

This commit is contained in:
Juan Lang 2007-07-12 14:48:13 -07:00 committed by Alexandre Julliard
parent c2f8191a64
commit 5cb26d8e58
1 changed files with 10 additions and 0 deletions

View File

@ -745,6 +745,16 @@ static void test_hash_msg_update(void)
todo_wine
ok(ret, "CryptMsgUpdate failed: %x\n", GetLastError());
CryptMsgClose(msg);
/* Setting pfnStreamOutput to NULL results in no error. (In what appears
* to be a bug, it isn't actually used - see encoding tests.)
*/
streamInfo.pfnStreamOutput = NULL;
msg = CryptMsgOpenToEncode(PKCS_7_ASN_ENCODING, 0, CMSG_HASHED, &hashInfo,
NULL, &streamInfo);
ret = CryptMsgUpdate(msg, msgData, sizeof(msgData), FALSE);
todo_wine
ok(ret, "CryptMsgUpdate failed: %08x\n", GetLastError());
CryptMsgClose(msg);
}
static const BYTE emptyHashParam[] = {