crypt32: Check chain root's trusted status regardless of whether its signature is valid.

This commit is contained in:
Juan Lang 2007-08-30 17:51:45 -07:00 committed by Alexandre Julliard
parent 8cd7abf1be
commit a4e88cb644
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ static BOOL CRYPT_BuildSimpleChain(HCERTCHAINENGINE hChainEngine,
CERT_TRUST_IS_NOT_SIGNATURE_VALID; CERT_TRUST_IS_NOT_SIGNATURE_VALID;
} }
} }
if (ret) if (CRYPT_IsCertificateSelfSigned(root))
{ {
BYTE hash[20]; BYTE hash[20];
DWORD size = sizeof(hash); DWORD size = sizeof(hash);