crypt32: Use the outer content's signature algorithm rather than the public key's embedded algorithm.

oldstable
Juan Lang 2007-07-31 14:58:26 -07:00 committed by Alexandre Julliard
parent e23c5083f5
commit e25b81fd9c
1 changed files with 1 additions and 1 deletions

View File

@ -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))
{