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

Unified Diff: net/cert/sct_status_flags.cc

Issue 2294373002: Certificate Transparency: Remove the obsolete invalid sct status. (Closed)
Patch Set: Addressing review comments Created 4 years, 3 months 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.cc
diff --git a/net/cert/sct_status_flags.cc b/net/cert/sct_status_flags.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a8f070a72987a91a03326b11a147b8e71f56d938
--- /dev/null
+++ b/net/cert/sct_status_flags.cc
@@ -0,0 +1,27 @@
+// Copyright 2016 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.
+
+#include "net/cert/sct_status_flags.h"
+
+namespace net {
+
+namespace ct {
+
+bool IsValidSCTStatus(uint32_t status) {
+ switch (status) {
+ case net::ct::SCT_STATUS_LOG_UNKNOWN:
+ case net::ct::SCT_STATUS_INVALID_SIGNATURE:
+ case net::ct::SCT_STATUS_OK:
+ case net::ct::SCT_STATUS_INVALID_TIMESTAMP:
+ return true;
+ case net::ct::SCT_STATUS_NONE:
+ return false;
+ }
+
+ return false;
+}
+
+} // namespace ct
+
+} // namespace net

Powered by Google App Engine
This is Rietveld 408576698