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

Unified Diff: content/common/ssl_status_serialization.cc

Issue 2294373002: Certificate Transparency: Remove the obsolete invalid sct status. (Closed)
Patch Set: Created 4 years, 4 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: content/common/ssl_status_serialization.cc
diff --git a/content/common/ssl_status_serialization.cc b/content/common/ssl_status_serialization.cc
index 3785d277eafc0a1cc70ce2a39056563bda47803d..eb914c005df59fe7127263657b8d716c27409777 100644
--- a/content/common/ssl_status_serialization.cc
+++ b/content/common/ssl_status_serialization.cc
@@ -31,9 +31,6 @@ bool CheckSecurityStyle(int security_style) {
bool CheckSCTStatus(uint32_t sct_status) {
switch (sct_status) {
case net::ct::SCT_STATUS_LOG_UNKNOWN:
- // INVALID is deprecated and should not be used anymore, but it
- // might have been previously written into the disk cache.
- case net::ct::SCT_STATUS_INVALID:
case net::ct::SCT_STATUS_INVALID_SIGNATURE:
case net::ct::SCT_STATUS_OK:
case net::ct::SCT_STATUS_INVALID_TIMESTAMP:
@@ -42,6 +39,9 @@ bool CheckSCTStatus(uint32_t sct_status) {
// SCT_STATUS_NONE should never happen, so it isn't valid to
// receive a status of NONE in a serialized SSLStatus.
return false;
+ case 2:
estark 2016/08/31 22:03:33 Is this necessary? Can we just fall through to lin
Ryan Sleevi 2016/09/01 00:01:29 +1
Eran Messeri 2016/09/01 14:16:34 Done.
+ // Was SCT_STATUS_INVALID, which was removed.
+ return false;
}
return false;
}

Powered by Google App Engine
This is Rietveld 408576698