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

Side by Side Diff: net/base/x509_certificate.cc

Issue 5162001: X.509-related cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More files broke Created 10 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « net/base/x509_certificate.h ('k') | net/base/x509_certificate_mac.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 (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
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
OLDNEW
« no previous file with comments | « net/base/x509_certificate.h ('k') | net/base/x509_certificate_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698