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

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

Issue 1100003006: Certificate Transparency: Fetching of Signed Tree Heads (DRAFT) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merging with master Created 5 years, 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/multi_log_ct_verifier.h" 5 #include "net/cert/multi_log_ct_verifier.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // SCT verified ok, just make sure the timestamp is legitimate. 223 // SCT verified ok, just make sure the timestamp is legitimate.
224 if (sct->timestamp > base::Time::Now()) { 224 if (sct->timestamp > base::Time::Now()) {
225 DVLOG(1) << "SCT is from the future!"; 225 DVLOG(1) << "SCT is from the future!";
226 result->invalid_scts.push_back(sct); 226 result->invalid_scts.push_back(sct);
227 LogSCTStatusToUMA(ct::SCT_STATUS_INVALID); 227 LogSCTStatusToUMA(ct::SCT_STATUS_INVALID);
228 return false; 228 return false;
229 } 229 }
230 230
231 LogSCTStatusToUMA(ct::SCT_STATUS_OK); 231 LogSCTStatusToUMA(ct::SCT_STATUS_OK);
232 result->verified_scts.push_back(sct); 232 result->verified_scts.push_back(sct);
233 NotifyObserversOfSCTVerified(sct, it->second.get());
233 return true; 234 return true;
234 } 235 }
235 236
236 } // namespace net 237 } // namespace net
OLDNEW
« net/cert/ct_verifier.h ('K') | « net/cert/multi_log_ct_verifier.h ('k') | net/net.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698