blob: f61ff0d0564a940010502e056f43efc3f88b9ad7 [file] [log] [blame]
// Copyright 2018 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 "net/cert/ct_policy_enforcer.h"
namespace certificate_transparency {
// A CTPolicyEnforcer that enforces the "Certificate Transparency in Chrome"
// policies detailed at
// This should only be used when there is a reliable, rapid update mechanism
// for the set of known, qualified logs - either through a reliable binary
// updating mechanism or through out-of-band delivery. See
// //net/docs/ for more details.
class ChromeCTPolicyEnforcer : public net::CTPolicyEnforcer {
ChromeCTPolicyEnforcer() = default;
~ChromeCTPolicyEnforcer() override = default;
net::ct::CTPolicyCompliance CheckCompliance(
net::X509Certificate* cert,
const net::ct::SCTList& verified_scts,
const net::NetLogWithSource& net_log) override;
} // namespace certificate_transparency