Lines Matching full:chain_context
95 // Map the errors in the chain_context->TrustStatus.dwErrorStatus returned by
294 // Saves some information about the certificate chain chain_context in
297 void GetCertChainInfo(PCCERT_CHAIN_CONTEXT chain_context,
299 PCERT_SIMPLE_CHAIN first_chain = chain_context->rgpChain[0];
539 bool X509Certificate::IsIssuedByKnownRoot(PCCERT_CHAIN_CONTEXT chain_context) {
540 PCERT_SIMPLE_CHAIN first_chain = chain_context->rgpChain[0];
739 PCCERT_CHAIN_CONTEXT chain_context;
751 &chain_context)) {
754 if (chain_context->TrustStatus.dwErrorStatus &
759 CertFreeCertificateChain(chain_context);
768 &chain_context)) {
772 ScopedCertChainContext scoped_chain_context(chain_context);
774 GetCertChainInfo(chain_context, verify_result);
776 chain_context->TrustStatus.dwErrorStatus);
812 chain_context,
856 chain_context,
875 AppendPublicKeyHashes(chain_context, &verify_result->public_key_hashes);
876 verify_result->is_issued_by_known_root = IsIssuedByKnownRoot(chain_context);
878 if (ev_policy_oid && CheckEV(chain_context, ev_policy_oid))
904 bool X509Certificate::CheckEV(PCCERT_CHAIN_CONTEXT chain_context,
906 DCHECK(chain_context->cChain != 0);
909 // chain_context->TrustStatus.dwErrorStatus is set.
910 DWORD error_status = chain_context->TrustStatus.dwErrorStatus;
911 DWORD info_status = chain_context->TrustStatus.dwInfoStatus;
912 if (!chain_context->cChain || error_status != CERT_TRUST_NO_ERROR)
915 // Check the end certificate simple chain (chain_context->rgpChain[0]).
918 PCERT_CHAIN_ELEMENT* element = chain_context->rgpChain[0]->rgpElement;
919 int num_elements = chain_context->rgpChain[0]->cElement;