Module: wine Branch: master Commit: e6c339d076e38d169e042306519db4c1ae7b58e7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e6c339d076e38d169e04230651...
Author: Juan Lang juan.lang@gmail.com Date: Thu Jul 12 14:29:03 2007 -0700
crypt32: Test opening hash messages to encode with streaming.
---
dlls/crypt32/tests/msg.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/dlls/crypt32/tests/msg.c b/dlls/crypt32/tests/msg.c index f5b2fc5..24ef5c6 100644 --- a/dlls/crypt32/tests/msg.c +++ b/dlls/crypt32/tests/msg.c @@ -658,6 +658,7 @@ static void test_hash_msg_open(void) HCRYPTMSG msg; CMSG_HASHED_ENCODE_INFO hashInfo = { 0 }; static char oid_rsa_md5[] = szOID_RSA_MD5; + CMSG_STREAM_INFO streamInfo = { 0, nop_stream_output, NULL };
SetLastError(0xdeadbeef); msg = CryptMsgOpenToEncode(PKCS_7_ASN_ENCODING, 0, CMSG_HASHED, &hashInfo, @@ -678,6 +679,16 @@ static void test_hash_msg_open(void) todo_wine ok(msg != NULL, "CryptMsgOpenToEncode failed: %x\n", GetLastError()); CryptMsgClose(msg); + msg = CryptMsgOpenToEncode(PKCS_7_ASN_ENCODING, CMSG_DETACHED_FLAG, + CMSG_HASHED, &hashInfo, NULL, NULL); + todo_wine + ok(msg != NULL, "CryptMsgOpenToEncode failed: %x\n", GetLastError()); + CryptMsgClose(msg); + msg = CryptMsgOpenToEncode(PKCS_7_ASN_ENCODING, CMSG_DETACHED_FLAG, + CMSG_HASHED, &hashInfo, NULL, &streamInfo); + todo_wine + ok(msg != NULL, "CryptMsgOpenToEncode failed: %x\n", GetLastError()); + CryptMsgClose(msg); }
static void test_hash_msg_update(void)