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

Unified Diff: net/cert/signed_certificate_timestamp.cc

Issue 997533002: Certificate Transparency: Correctly handle SCT origin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « net/cert/signed_certificate_timestamp.h ('k') | net/cert/signed_certificate_timestamp_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/signed_certificate_timestamp.cc
diff --git a/net/cert/signed_certificate_timestamp.cc b/net/cert/signed_certificate_timestamp.cc
index 371eea67b30dcb4ea05771b11f4fcb4620bff428..9c0f57d54549f1077818095b19636b718b6540b5 100644
--- a/net/cert/signed_certificate_timestamp.cc
+++ b/net/cert/signed_certificate_timestamp.cc
@@ -23,6 +23,8 @@ bool SignedCertificateTimestamp::LessThan::operator()(
return lhs->timestamp < rhs->timestamp;
if (lhs->extensions != rhs->extensions)
return lhs->extensions < rhs->extensions;
+ if (lhs->origin != rhs->origin)
+ return lhs->origin < rhs->origin;
return lhs->version < rhs->version;
}
« no previous file with comments | « net/cert/signed_certificate_timestamp.h ('k') | net/cert/signed_certificate_timestamp_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698