summaryrefslogtreecommitdiff
path: root/chromium/net/cert/sct_status_flags.h
blob: 1bcb42272b08bb202b6ecb9a80f877ffd089428b (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 2013 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_STATUS_FLAGS_H_
#define NET_CERT_SCT_STATUS_FLAGS_H_

namespace net {

namespace ct {

// The possible verification statuses for a SignedCertificateTimestamp.
enum SCTVerifyStatus {
  // Not a real status, this just prevents a default int value from being
  // mis-interpreseted as a valid status.
  SCT_STATUS_NONE = 0,

  // The SCT is from an unknown log, so we cannot verify its signature.
  SCT_STATUS_LOG_UNKNOWN = 1,

  // The SCT is from a known log, but the signature is invalid.
  SCT_STATUS_INVALID = 2,

  // The SCT is from a known log, and the signature is valid.
  SCT_STATUS_OK = 3,
};

}  // namespace ct

}  // namespace net

#endif  // NET_CERT_SCT_STATUS_FLAGS_H_