OLD | NEW |
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 Loading... |
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 |
OLD | NEW |