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

Side by Side Diff: net/cert/ct_sct_to_string.cc

Issue 2277653002: Bring back SCT_STATUS_INVALID for cached entries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix SCT_STATUS_INVALID comment to not refer to disk cache Created 4 years, 3 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/sct_status_flags.h » ('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:
66 return "Invalid";
65 case SCT_STATUS_INVALID_SIGNATURE: 67 case SCT_STATUS_INVALID_SIGNATURE:
66 return "Invalid signature"; 68 return "Invalid signature";
67 case SCT_STATUS_OK: 69 case SCT_STATUS_OK:
68 return "Verified"; 70 return "Verified";
69 case SCT_STATUS_NONE: 71 case SCT_STATUS_NONE:
70 return "None"; 72 return "None";
71 case SCT_STATUS_INVALID_TIMESTAMP: 73 case SCT_STATUS_INVALID_TIMESTAMP:
72 return "Invalid timestamp"; 74 return "Invalid timestamp";
73 } 75 }
74 return "Unknown"; 76 return "Unknown";
75 } 77 }
76 78
77 } // namespace ct 79 } // namespace ct
78 80
79 } // namespace net 81 } // namespace net
OLDNEW
« no previous file with comments | « content/common/ssl_status_serialization_unittest.cc ('k') | net/cert/sct_status_flags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698