| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/base/x509_certificate.h" | 5 #include "net/base/x509_certificate.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 | 8 |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
| 12 #include "base/singleton.h" |
| 12 #include "base/string_piece.h" | 13 #include "base/string_piece.h" |
| 13 #include "base/time.h" | 14 #include "base/time.h" |
| 14 #include "net/base/pem_tokenizer.h" | 15 #include "net/base/pem_tokenizer.h" |
| 15 | 16 |
| 16 namespace net { | 17 namespace net { |
| 17 | 18 |
| 18 namespace { | 19 namespace { |
| 19 | 20 |
| 20 // Returns true if this cert fingerprint is the null (all zero) fingerprint. | 21 // Returns true if this cert fingerprint is the null (all zero) fingerprint. |
| 21 // We use this as a bogus fingerprint value. | 22 // We use this as a bogus fingerprint value. |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 | 339 |
| 339 bool X509Certificate::HasIntermediateCertificates(const OSCertHandles& certs) { | 340 bool X509Certificate::HasIntermediateCertificates(const OSCertHandles& certs) { |
| 340 for (size_t i = 0; i < certs.size(); ++i) { | 341 for (size_t i = 0; i < certs.size(); ++i) { |
| 341 if (!HasIntermediateCertificate(certs[i])) | 342 if (!HasIntermediateCertificate(certs[i])) |
| 342 return false; | 343 return false; |
| 343 } | 344 } |
| 344 return true; | 345 return true; |
| 345 } | 346 } |
| 346 | 347 |
| 347 } // namespace net | 348 } // namespace net |
| OLD | NEW |