blob: 6f3b636372f0e09a4d14733b809ecf841b26c89d [file] [log] [blame]
// Copyright (c) 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <memory>
#include "net/third_party/quiche/src/quic/core/crypto/proof_source.h"
#include "net/third_party/quiche/src/quic/core/crypto/proof_verifier.h"
#include "net/quic/platform/impl/quic_default_proof_providers_impl.h"
namespace quic {
// Provides a default proof verifier. The verifier has to do a good faith
// attempt at verifying the certificate against a reasonable root store, and not
// just always return success.
inline std::unique_ptr<ProofVerifier> CreateDefaultProofVerifier() {
return CreateDefaultProofVerifierImpl();
// Provides a default proof source for CLI-based tools. The actual certificates
// used in the proof source should be confifgurable via command-line flags.
inline std::unique_ptr<ProofSource> CreateDefaultProofSource() {
return CreateDefaultProofSourceImpl();
} // namespace quic