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

Unified Diff: net/http/http_response_info.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: net/http/http_response_info.cc
diff --git a/net/http/http_response_info.cc b/net/http/http_response_info.cc
index 4328b7ae2b64b9ab5680f67dc9fed463aebc2f00..0bf63dff16f15f4f60d45847fe7f6982ccfee58d 100644
--- a/net/http/http_response_info.cc
+++ b/net/http/http_response_info.cc
@@ -33,6 +33,10 @@ X509Certificate::PickleType GetPickleTypeForVersion(int version) {
}
}
+// 2 was used for SCT_STATUS_INVALID in SCTVerifyStatus enum but
+// was deprecated.
+uint64_t kObsoleteSCTInvalidStatus = 2;
+
} // namespace
// These values can be bit-wise combined to form the flags field of the
@@ -239,6 +243,8 @@ bool HttpResponseInfo::InitFromPickle(const base::Pickle& pickle,
uint16_t status;
if (!sct.get() || !iter.ReadUInt16(&status))
return false;
+ if (status == kObsoleteSCTInvalidStatus)
+ return false;
Ryan Sleevi 2016/09/01 00:01:29 Compare this with 286-289, as an example. This pre
Eran Messeri 2016/09/01 14:16:34 Done.
ssl_info.signed_certificate_timestamps.push_back(
SignedCertificateTimestampAndStatus(
sct, static_cast<ct::SCTVerifyStatus>(status)));

Powered by Google App Engine
This is Rietveld 408576698