summaryrefslogtreecommitdiff
path: root/chromium/net/cert/sct_auditing_delegate.h
blob: 21f39e1a93d0ebea27312b13bc390c73facea463 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright 2020 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.

#ifndef NET_CERT_SCT_AUDITING_DELEGATE_H_
#define NET_CERT_SCT_AUDITING_DELEGATE_H_

#include "net/base/host_port_pair.h"
#include "net/base/net_export.h"
#include "net/cert/signed_certificate_timestamp_and_status.h"

namespace net {

class X509Certificate;

// An interface for controlling SCT auditing behavior.
class NET_EXPORT SCTAuditingDelegate {
 public:
  virtual ~SCTAuditingDelegate() = default;

  virtual void MaybeEnqueueReport(
      const net::HostPortPair& host_port_pair,
      const net::X509Certificate* validated_certificate_chain,
      const net::SignedCertificateTimestampAndStatusList&
          signed_certificate_timestamps) = 0;

  virtual bool IsSCTAuditingEnabled() = 0;
};

}  // namespace net

#endif  // NET_CERT_SCT_AUDITING_DELEGATE_H_