xref: /aosp_15_r20/external/cronet/net/cert/ct_policy_enforcer.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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,const NetLogWithSource & net_log) const11 ct::CTPolicyCompliance DefaultCTPolicyEnforcer::CheckCompliance(
12     X509Certificate* cert,
13     const ct::SCTList& verified_scts,
14     const NetLogWithSource& net_log) const {
15   return ct::CTPolicyCompliance::CT_POLICY_BUILD_NOT_TIMELY;
16 }
17 
GetLogDisqualificationTime(std::string_view log_id) const18 std::optional<base::Time> DefaultCTPolicyEnforcer::GetLogDisqualificationTime(
19     std::string_view log_id) const {
20   return std::nullopt;
21 }
22 
IsCtEnabled() const23 bool DefaultCTPolicyEnforcer::IsCtEnabled() const {
24   return false;
25 }
26 
27 }  // namespace net
28