• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "net/cert/ct_policy_enforcer.h"
6 
7 #include "net/cert/ct_policy_status.h"
8 
9 namespace net {
10 
CheckCompliance(X509Certificate * cert,const ct::SCTList & verified_scts,base::Time current_time,const NetLogWithSource & net_log) const11 ct::CTPolicyCompliance DefaultCTPolicyEnforcer::CheckCompliance(
12     X509Certificate* cert,
13     const ct::SCTList& verified_scts,
14     base::Time current_time,
15     const NetLogWithSource& net_log) const {
16   return ct::CTPolicyCompliance::CT_POLICY_BUILD_NOT_TIMELY;
17 }
18 
GetLogDisqualificationTime(std::string_view log_id) const19 std::optional<base::Time> DefaultCTPolicyEnforcer::GetLogDisqualificationTime(
20     std::string_view log_id) const {
21   return std::nullopt;
22 }
23 
IsCtEnabled() const24 bool DefaultCTPolicyEnforcer::IsCtEnabled() const {
25   return false;
26 }
27 
28 }  // namespace net
29