crypt32: Include name constraints errors in the chain's error status.

This commit is contained in:
Juan Lang 2009-11-13 16:37:52 -08:00 committed by Alexandre Julliard
parent f9ad32f0ad
commit 3c8a04f12f
1 changed files with 4 additions and 0 deletions

View File

@ -816,8 +816,12 @@ static void CRYPT_CheckChainNameConstraints(PCERT_SIMPLE_CHAIN chain)
chain->rgpElement[j]->pCertContext->pCertInfo,
&errorStatus);
if (errorStatus)
{
chain->rgpElement[i]->TrustStatus.dwErrorStatus |=
errorStatus;
CRYPT_CombineTrustStatus(&chain->TrustStatus,
&chain->rgpElement[i]->TrustStatus);
}
else
chain->rgpElement[i]->TrustStatus.dwInfoStatus |=
CERT_TRUST_HAS_VALID_NAME_CONSTRAINTS;