Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Unified Diff: net/cert/sct_status_flags.h

Issue 88643002: SignedCertificateTimestamp storing & serialization code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@erans_patches
Patch Set: fixes Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/cert/multi_log_ct_verifier_unittest.cc ('k') | net/cert/signed_certificate_timestamp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/sct_status_flags.h
diff --git a/net/cert/sct_status_flags.h b/net/cert/sct_status_flags.h
new file mode 100644
index 0000000000000000000000000000000000000000..660c8c02d2cb2746e4851bd4fe20a570f261224b
--- /dev/null
+++ b/net/cert/sct_status_flags.h
@@ -0,0 +1,32 @@
+// Copyright (c) 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_
« no previous file with comments | « net/cert/multi_log_ct_verifier_unittest.cc ('k') | net/cert/signed_certificate_timestamp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698