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

Unified Diff: net/cert/ct_sct_to_string.cc

Issue 2241213002: Distinguish between SCT invalidity reasons in UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: A patchset that actually works 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/cert/ct_sct_to_string.cc
diff --git a/net/cert/ct_sct_to_string.cc b/net/cert/ct_sct_to_string.cc
index f3912a828623240199ee30e628887d997a746aff..2515707cdce6a3e33a70af8d6a4267e423247d35 100644
--- a/net/cert/ct_sct_to_string.cc
+++ b/net/cert/ct_sct_to_string.cc
@@ -62,12 +62,14 @@ const std::string StatusToString(SCTVerifyStatus status) {
switch (status) {
case SCT_STATUS_LOG_UNKNOWN:
return "From unknown log";
- case SCT_STATUS_INVALID:
- return "Invalid";
+ case SCT_STATUS_INVALID_SIGNATURE:
+ return "Invalid signature";
case SCT_STATUS_OK:
return "Verified";
case SCT_STATUS_NONE:
return "None";
+ case SCT_STATUS_INVALID_TIMESTAMP:
+ return "Invalid timestamp";
case SCT_STATUS_MAX:
eroman 2016/08/15 19:20:22 See earlier comment -- we can remove handling of M
Eran Messeri 2016/08/16 14:17:18 See my response above - it is a bit of a nuisance
NOTREACHED();
}

Powered by Google App Engine
This is Rietveld 408576698