OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_CERT_SCT_STATUS_FLAGS_H_ | 5 #ifndef NET_CERT_SCT_STATUS_FLAGS_H_ |
6 #define NET_CERT_SCT_STATUS_FLAGS_H_ | 6 #define NET_CERT_SCT_STATUS_FLAGS_H_ |
7 | 7 |
8 namespace net { | 8 namespace net { |
9 | 9 |
10 namespace ct { | 10 namespace ct { |
11 | 11 |
12 // The possible verification statuses for a SignedCertificateTimestamp. | 12 // The possible verification statuses for a SignedCertificateTimestamp. |
13 // Note: The numeric values are used within histograms and should not change | 13 // Note: The numeric values are used within histograms and should not change |
14 // or be re-assigned. | 14 // or be re-assigned. |
15 enum SCTVerifyStatus { | 15 enum SCTVerifyStatus { |
16 // Not a real status, this just prevents a default int value from being | 16 // Not a real status, this just prevents a default int value from being |
17 // mis-interpreseted as a valid status. | 17 // mis-interpreseted as a valid status. |
18 // Also used to count SCTs that cannot be decoded in the histogram. | 18 // Also used to count SCTs that cannot be decoded in the histogram. |
19 SCT_STATUS_NONE = 0, | 19 SCT_STATUS_NONE = 0, |
20 | 20 |
21 // The SCT is from an unknown log, so we cannot verify its signature. | 21 // The SCT is from an unknown log, so we cannot verify its signature. |
22 SCT_STATUS_LOG_UNKNOWN = 1, | 22 SCT_STATUS_LOG_UNKNOWN = 1, |
23 | 23 |
estark
2016/08/15 13:22:08
Maybe leave a comment here to indicate that 2 used
Eran Messeri
2016/08/16 14:17:18
Done, thanks for the text.
| |
24 // The SCT is from a known log, but the signature is invalid. | |
25 SCT_STATUS_INVALID = 2, | |
26 | |
27 // The SCT is from a known log, and the signature is valid. | 24 // The SCT is from a known log, and the signature is valid. |
28 SCT_STATUS_OK = 3, | 25 SCT_STATUS_OK = 3, |
29 | 26 |
27 // The SCT is from a known log, but the signature is invalid. | |
28 SCT_STATUS_INVALID_SIGNATURE = 4, | |
29 | |
30 // The SCT is from a known log, but the timestamp is in the future. | |
31 SCT_STATUS_INVALID_TIMESTAMP = 5, | |
32 | |
30 // Used to bound the enum values. | 33 // Used to bound the enum values. |
31 SCT_STATUS_MAX, | 34 SCT_STATUS_MAX, |
32 }; | 35 }; |
33 | 36 |
34 } // namespace ct | 37 } // namespace ct |
35 | 38 |
36 } // namespace net | 39 } // namespace net |
37 | 40 |
38 #endif // NET_CERT_SCT_STATUS_FLAGS_H_ | 41 #endif // NET_CERT_SCT_STATUS_FLAGS_H_ |
OLD | NEW |