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

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: 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
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..6c145568911d724359036c039919cc9edc6f92b4
--- /dev/null
+++ b/net/cert/sct_status_flags.h
@@ -0,0 +1,21 @@
+// 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_H_
+#define NET_CERT_SCT_STATUS_H_
+
+namespace net {
+
+typedef uint16 SignedCertificateTimestampVerificationStatus;
+
+const SignedCertificateTimestampVerificationStatus kSctStatusAll = 0x0003;
Eran M. (Google) 2013/11/26 21:33:22 You may be able to use values I defined in the oth
alcutter 2013/11/26 23:00:05 Could you give your enum a type name ?
+const SignedCertificateTimestampVerificationStatus kSctStatusOk = 0x0000;
Eran M. (Google) 2013/11/26 21:33:22 Nit: I'd suggest having the OK status as non-zero,
alcutter 2013/11/26 23:00:05 This was actually a bit-field, which is why zero w
+
+const SignedCertificateTimestampVerificationStatus kSctStatusInvalid = 1 << 0;
+const SignedCertificateTimestampVerificationStatus kSctStatusLogUnknown = 1
+ << 1;
+
+} // namespace net
+
+#endif // NET_CERT_SCT_STATUS_H_

Powered by Google App Engine
This is Rietveld 408576698