#include "net/cert/cert_verifier.h"
#include <algorithm>
#include <string_view>
#include <utility>
#include "base/containers/span.h"
#include "base/types/optional_util.h"
#include "build/build_config.h"
#include "net/base/features.h"
#include "net/cert/caching_cert_verifier.h"
#include "net/cert/cert_verify_proc.h"
#include "net/cert/coalescing_cert_verifier.h"
#include "net/cert/crl_set.h"
#include "net/cert/do_nothing_ct_verifier.h"
#include "net/cert/multi_threaded_cert_verifier.h"
#include "net/cert/x509_util.h"
#include "net/net_buildflags.h"
#include "third_party/boringssl/src/include/openssl/pool.h"
#include "third_party/boringssl/src/include/openssl/sha.h"
namespace net {
namespace {
class DefaultCertVerifyProcFactory : public net::CertVerifyProcFactory { … };
void Sha256UpdateLengthPrefixed(SHA256_CTX* ctx, base::span<const uint8_t> s) { … }
}
CertVerifier::Config::Config() = default;
CertVerifier::Config::Config(const Config&) = default;
CertVerifier::Config::Config(Config&&) = default;
CertVerifier::Config::~Config() = default;
CertVerifier::Config& CertVerifier::Config::operator=(const Config&) = default;
CertVerifier::Config& CertVerifier::Config::operator=(Config&&) = default;
CertVerifier::RequestParams::RequestParams() = default;
CertVerifier::RequestParams::RequestParams(
scoped_refptr<X509Certificate> certificate,
std::string_view hostname,
int flags,
std::string_view ocsp_response,
std::string_view sct_list)
: … { … }
CertVerifier::RequestParams::RequestParams(const RequestParams& other) =
default;
CertVerifier::RequestParams::~RequestParams() = default;
bool CertVerifier::RequestParams::operator==(
const CertVerifier::RequestParams& other) const { … }
bool CertVerifier::RequestParams::operator<(
const CertVerifier::RequestParams& other) const { … }
std::unique_ptr<CertVerifierWithUpdatableProc>
CertVerifier::CreateDefaultWithoutCaching(
scoped_refptr<CertNetFetcher> cert_net_fetcher) { … }
std::unique_ptr<CertVerifier> CertVerifier::CreateDefault(
scoped_refptr<CertNetFetcher> cert_net_fetcher) { … }
bool operator==(const CertVerifier::Config& lhs,
const CertVerifier::Config& rhs) { … }
bool operator!=(const CertVerifier::Config& lhs,
const CertVerifier::Config& rhs) { … }
}