| Index: components/cronet/ct_ignores.cc
|
| diff --git a/components/cronet/ct_ignores.cc b/components/cronet/ct_ignores.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..da24b882d58aa01939a4f50958f67d63414eface
|
| --- /dev/null
|
| +++ b/components/cronet/ct_ignores.cc
|
| @@ -0,0 +1,38 @@
|
| +// Copyright 2016 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 "components/cronet/ct_ignores.h"
|
| +
|
| +#include "net/base/net_errors.h"
|
| +#include "net/cert/ct_policy_status.h"
|
| +
|
| +namespace cronet {
|
| +
|
| +int IgnoresCTVerifier::Verify(
|
| + net::X509Certificate* cert,
|
| + const std::string& stapled_ocsp_response,
|
| + const std::string& sct_list_from_tls_extension,
|
| + net::SignedCertificateTimestampAndStatusList* output_scts,
|
| + const net::NetLogWithSource& net_log) {
|
| + return net::OK;
|
| +}
|
| +
|
| +void IgnoresCTVerifier::SetObserver(Observer* observer) {}
|
| +
|
| +net::ct::CertPolicyCompliance IgnoresCTPolicyEnforcer::DoesConformToCertPolicy(
|
| + net::X509Certificate* cert,
|
| + const net::SCTList& verified_scts,
|
| + const net::NetLogWithSource& net_log) {
|
| + return net::ct::CertPolicyCompliance::CERT_POLICY_COMPLIES_VIA_SCTS;
|
| +}
|
| +
|
| +net::ct::EVPolicyCompliance IgnoresCTPolicyEnforcer::DoesConformToCTEVPolicy(
|
| + net::X509Certificate* cert,
|
| + const net::ct::EVCertsWhitelist* ev_whitelist,
|
| + const net::SCTList& verified_scts,
|
| + const net::NetLogWithSource& net_log) {
|
| + return net::ct::EVPolicyCompliance::EV_POLICY_DOES_NOT_APPLY;
|
| +}
|
| +
|
| +} // namespace cronet
|
|
|