crypt32: fix a wrong test (Augmented)

Mounir IDRASSI mounir.idrassi at idrix.fr
Mon May 7 09:32:31 CDT 2007


Hi,
This patch supersedes the previous one by correcting also the error
message printed.

Mounir IDRASSI
IDRIX - Cryptography and IT Security Experts
http://www.idrix.fr

-------------- next part --------------
>From 6e595d8b186dded9a67a0b589bc7e384943e8c96 Mon Sep 17 00:00:00 2001
From: Mounir IDRASSI <mounir.idrassi at idrix.fr>
Date: Mon, 7 May 2007 16:30:21 +0200
Subject: crypt32: fix a wrong test (Augmented)

---
 dlls/crypt32/tests/cert.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/crypt32/tests/cert.c b/dlls/crypt32/tests/cert.c
index 345c9f5..f6b451f 100644
--- a/dlls/crypt32/tests/cert.c
+++ b/dlls/crypt32/tests/cert.c
@@ -1212,8 +1212,8 @@ static void testCreateSelfSignCert(void)
                          "Unexpected key container\n");
                         ok(!lstrcmpW(info->pwszProvName, MS_DEF_PROV_W),
                          "Unexpected provider\n");
-                        ok(info->dwKeySpec == AT_SIGNATURE,
-                         "Expected AT_SIGNATURE, got %d\n", info->dwKeySpec);
+                        ok(info->dwKeySpec == (AT_SIGNATURE|AT_KEYEXCHANGE),
+                         "Expected (AT_SIGNATURE|AT_KEYEXCHANGE), got %d\n", info->dwKeySpec);
                     }
                     HeapFree(GetProcessHeap(), 0, info);
                 }
-- 
1.4.4.2



More information about the wine-patches mailing list