Juan Lang : crypt32:
Test updating hash messages with NULL stream output function.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jul 13 08:30:24 CDT 2007
Module: wine
Branch: master
Commit: 5cb26d8e58b0640abccec28b3ee649c9bed6cdeb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5cb26d8e58b0640abccec28b3ee649c9bed6cdeb
Author: Juan Lang <juan.lang at gmail.com>
Date: Thu Jul 12 14:48:13 2007 -0700
crypt32: Test updating hash messages with NULL stream output function.
---
dlls/crypt32/tests/msg.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/crypt32/tests/msg.c b/dlls/crypt32/tests/msg.c
index 8874d8e..3e1ed81 100644
--- a/dlls/crypt32/tests/msg.c
+++ b/dlls/crypt32/tests/msg.c
@@ -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[] = {
More information about the wine-cvs
mailing list