crypt32(5/25): Test opening hash messages to encode with streaming
Juan Lang
juan.lang at gmail.com
Thu Jul 12 17:17:04 CDT 2007
--Juan
-------------- next part --------------
From ebfe338f767e335b968b062f3ca159c3554629bb Mon Sep 17 00:00:00 2001
From: Juan Lang <juanlang at juan.corp.google.com>
Date: Thu, 12 Jul 2007 14:29:03 -0700
Subject: [PATCH] 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)
--
1.4.1
More information about the wine-patches
mailing list