Juan Lang : crypt32: Use the outer content'
s signature algorithm rather than the public key's embedded algorithm.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Aug 1 05:16:49 CDT 2007
Module: wine
Branch: master
Commit: e25b81fd9c7679a2bf7bfa632992855655767915
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e25b81fd9c7679a2bf7bfa632992855655767915
Author: Juan Lang <juan.lang at gmail.com>
Date: Tue Jul 31 14:58:26 2007 -0700
crypt32: Use the outer content's signature algorithm rather than the public key's embedded 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_VerifyCertSignatureFromPublicKeyInfo(HCRYPTPROV hCryptProv,
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))
{
More information about the wine-cvs
mailing list