mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-05 03:36:08 +03:00
41 lines
1.3 KiB
C++
41 lines
1.3 KiB
C++
// Copyright 2017 The Chromium Authors
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef NET_CERT_CERT_VERIFY_PROC_BUILTIN_H_
|
|
#define NET_CERT_CERT_VERIFY_PROC_BUILTIN_H_
|
|
|
|
#include <memory>
|
|
|
|
#include "base/memory/scoped_refptr.h"
|
|
#include "base/time/time.h"
|
|
#include "net/base/net_export.h"
|
|
#include "net/cert/cert_verify_proc.h"
|
|
|
|
namespace net {
|
|
|
|
class CertNetFetcher;
|
|
class CRLSet;
|
|
class CTPolicyEnforcer;
|
|
class CTVerifier;
|
|
class SystemTrustStore;
|
|
|
|
// TODO(crbug.com/41276779): This is not how other cert_verify_proc_*.h are
|
|
// implemented -- they expose the type in the header. Use a consistent style
|
|
// here too.
|
|
NET_EXPORT scoped_refptr<CertVerifyProc> CreateCertVerifyProcBuiltin(
|
|
scoped_refptr<CertNetFetcher> net_fetcher,
|
|
scoped_refptr<CRLSet> crl_set,
|
|
std::unique_ptr<CTVerifier> ct_verifier,
|
|
scoped_refptr<CTPolicyEnforcer> ct_policy_enforcer,
|
|
std::unique_ptr<SystemTrustStore> system_trust_store,
|
|
const CertVerifyProc::InstanceParams& instance_params);
|
|
|
|
// Returns the time limit used by CertVerifyProcBuiltin. Intended for test use.
|
|
NET_EXPORT_PRIVATE base::TimeDelta
|
|
GetCertVerifyProcBuiltinTimeLimitForTesting();
|
|
|
|
} // namespace net
|
|
|
|
#endif // NET_CERT_CERT_VERIFY_PROC_BUILTIN_H_
|