crypt32: Use the outer content's signature algorithm rather than the public key's embedded algorithm.
This commit is contained in:
parent
e23c5083f5
commit
e25b81fd9c
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue