src/net/cert/trial_comparison_cert_verifier.cc
bool CertVerifyResultEqual(const CertVerifyResult& a,
                           const CertVerifyResult& b) {
  return std::tie(a.cert_status, a.is_issued_by_known_root) ==
             std::tie(b.cert_status, b.is_issued_by_known_root) &&
         (!!a.verified_cert == !!b.verified_cert) &&
         (!a.verified_cert ||
          a.verified_cert->EqualsIncludingChain(b.verified_cert.get()));
}
// Note: This ignores the result of stapled OCSP (which is the same for both
// verifiers) and informational statuses about the certificate algorithms and
// the hashes, since they will be the same if the certificate chains are the
// same.
This ignores the result of stapled OCSP (which is the same for both
verifiers) and informational statuses about the certificate algorithms and
the hashes, since they will be the same if the certificate chains are the
same.
This ignores the result of stapled OCSP ( which is the same for both verifiers ) and informational statuses about the certificate algorithms and the hashes since they will be the same if the certificate chains are the same .
bool CertVerifyResultEqual(const CertVerifyResult& a,
                           const CertVerifyResult& b) {
  return std::tie(a.cert_status, a.is_issued_by_known_root) ==
             std::tie(b.cert_status, b.is_issued_by_known_root) &&
         (!!a.verified_cert == !!b.verified_cert) &&
         (!a.verified_cert ||
          a.verified_cert->EqualsIncludingChain(b.verified_cert.get()));
}
bool CertVerifyResultEqual ( const CertVerifyResult & a , const CertVerifyResult & b ) { return std :: tie ( a . cert_status , a . is_issued_by_known_root ) == std :: tie ( b . cert_status , b . is_issued_by_known_root ) && ( ! ! a . verified_cert == ! ! b . verified_cert ) && ( ! a . verified_cert || a . verified_cert -> EqualsIncludingChain ( b . verified_cert . get ( ) ) ) ; }
Note: This ignores the result of stapled OCSP (which is the same for both
verifiers) and informational statuses about the certificate algorithms and
the hashes, since they will be the same if the certificate chains are the
same.
Note : This ignores the result of stapled OCSP ( which is the same for both verifiers ) and informational statuses about the certificate algorithms and the hashes since they will be the same if the certificate chains are the same .