crypt32(10/10): Add a couple more parameter tests for hash messages

Juan Lang juan.lang at gmail.com
Tue Jul 17 10:29:33 CDT 2007


--Juan
-------------- next part --------------
From 57ca34399f652124c985cb69698a4de45f28a9db Mon Sep 17 00:00:00 2001
From: Juan Lang <juanlang at juan.corp.google.com>
Date: Tue, 17 Jul 2007 07:37:26 -0700
Subject: [PATCH] Add a couple more parameter tests for hash messages
---
 dlls/crypt32/tests/msg.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/dlls/crypt32/tests/msg.c b/dlls/crypt32/tests/msg.c
index 53c1235..b80a74a 100644
--- a/dlls/crypt32/tests/msg.c
+++ b/dlls/crypt32/tests/msg.c
@@ -1208,7 +1208,7 @@ static void test_decode_msg_get_param(vo
 {
     HCRYPTMSG msg;
     BOOL ret;
-    DWORD size = 0;
+    DWORD size = 0, version;
 
     msg = CryptMsgOpenToDecode(PKCS_7_ASN_ENCODING, 0, 0, 0, NULL, NULL);
     SetLastError(0xdeadbeef);
@@ -1241,6 +1241,14 @@ static void test_decode_msg_get_param(vo
     todo_wine
     check_param("hash computed hash", msg, CMSG_COMPUTED_HASH_PARAM,
      hashParam, sizeof(hashParam));
+    size = strlen(szOID_RSA_data) + 1;
+    todo_wine
+    check_param("hash inner OID", msg, CMSG_INNER_CONTENT_TYPE_PARAM,
+     (const BYTE *)szOID_RSA_data, strlen(szOID_RSA_data) + 1);
+    version = CMSG_HASHED_DATA_V0;
+    todo_wine
+    check_param("hash version", msg, CMSG_VERSION_PARAM, (const BYTE *)&version,
+     sizeof(version));
     CryptMsgClose(msg);
 }
 
-- 
1.4.1


More information about the wine-patches mailing list