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

Side by Side 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: Changing _MAX to be the last value 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 unified diff | Download patch
« no previous file with comments | « content/common/ssl_status_serialization_unittest.cc ('k') | net/cert/multi_log_ct_verifier.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/cert/ct_sct_to_string.h" 5 #include "net/cert/ct_sct_to_string.h"
6 6
7 namespace net { 7 namespace net {
8 8
9 namespace ct { 9 namespace ct {
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 case SignedCertificateTimestamp::SCT_ORIGIN_MAX: 55 case SignedCertificateTimestamp::SCT_ORIGIN_MAX:
56 NOTREACHED(); 56 NOTREACHED();
57 } 57 }
58 return "Unknown"; 58 return "Unknown";
59 } 59 }
60 60
61 const std::string StatusToString(SCTVerifyStatus status) { 61 const std::string StatusToString(SCTVerifyStatus status) {
62 switch (status) { 62 switch (status) {
63 case SCT_STATUS_LOG_UNKNOWN: 63 case SCT_STATUS_LOG_UNKNOWN:
64 return "From unknown log"; 64 return "From unknown log";
65 case SCT_STATUS_INVALID: 65 case SCT_STATUS_INVALID_SIGNATURE:
66 return "Invalid"; 66 return "Invalid signature";
67 case SCT_STATUS_OK: 67 case SCT_STATUS_OK:
68 return "Verified"; 68 return "Verified";
69 case SCT_STATUS_NONE: 69 case SCT_STATUS_NONE:
70 return "None"; 70 return "None";
71 case SCT_STATUS_MAX: 71 case SCT_STATUS_INVALID_TIMESTAMP:
72 NOTREACHED(); 72 return "Invalid timestamp";
73 } 73 }
74 return "Unknown"; 74 return "Unknown";
75 } 75 }
76 76
77 } // namespace ct 77 } // namespace ct
78 78
79 } // namespace net 79 } // namespace net
OLDNEW
« no previous file with comments | « content/common/ssl_status_serialization_unittest.cc ('k') | net/cert/multi_log_ct_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698