crypt32(1/2): Use the outer content's signature algorithm rather than the public key's embedded algorithm...

Juan Lang juan.lang at gmail.com
Tue Jul 31 17:00:14 CDT 2007


as the latter often doesn't specify the hash algorithm
--Juan
-------------- next part --------------
From f395e02476f4c245366c5f35130d175b1b013974 Mon Sep 17 00:00:00 2001
From: Juan Lang <juanlang at juan.corp.google.com>
Date: Tue, 31 Jul 2007 14:58:26 -0700
Subject: [PATCH] Use the outer content's signature algorithm rather than the public key's
embedded algorithm, as the latter often doesn't specify the hash algorithm
---
 dlls/crypt32/cert.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/crypt32/cert.c b/dlls/crypt32/cert.c
index 94859ca..de1d5e0 100644
--- a/dlls/crypt32/cert.c
+++ b/dlls/crypt32/cert.c
@@ -1352,7 +1352,7 @@ static BOOL CRYPT_VerifyCertSignatureFro
     ALG_ID pubKeyID, hashID;
 
     info = CryptFindOIDInfo(CRYPT_OID_INFO_OID_KEY,
-     pubKeyInfo->Algorithm.pszObjId, 0);
+     signedCert->SignatureAlgorithm.pszObjId, 0);
     if (!info || (info->dwGroupId != CRYPT_PUBKEY_ALG_OID_GROUP_ID &&
      info->dwGroupId != CRYPT_SIGN_ALG_OID_GROUP_ID))
     {
-- 
1.4.1


More information about the wine-patches mailing list