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/nss_cert_database_chromeos.h" | 5 #include "net/cert/nss_cert_database_chromeos.h" |
6 | 6 |
7 #include <cert.h> | 7 #include <cert.h> |
8 #include <pk11pub.h> | 8 #include <pk11pub.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 NSSProfileFilterChromeOS::ModuleNotAllowedForProfilePredicate( | 68 NSSProfileFilterChromeOS::ModuleNotAllowedForProfilePredicate( |
69 profile_filter_)), | 69 profile_filter_)), |
70 modules->end()); | 70 modules->end()); |
71 DVLOG(1) << "filtered " << pre_size - modules->size() << " of " << pre_size | 71 DVLOG(1) << "filtered " << pre_size - modules->size() << " of " << pre_size |
72 << " modules"; | 72 << " modules"; |
73 } | 73 } |
74 | 74 |
75 void NSSCertDatabaseChromeOS::ListCertsImpl( | 75 void NSSCertDatabaseChromeOS::ListCertsImpl( |
76 const NSSProfileFilterChromeOS& profile_filter, | 76 const NSSProfileFilterChromeOS& profile_filter, |
77 CertificateList* certs) { | 77 CertificateList* certs) { |
78 NSSCertDatabase::ListCertsImpl(certs); | 78 NSSCertDatabase::ListCertsImpl(crypto::ScopedPK11Slot(), certs); |
79 | 79 |
80 size_t pre_size = certs->size(); | 80 size_t pre_size = certs->size(); |
81 certs->erase(std::remove_if( | 81 certs->erase(std::remove_if( |
82 certs->begin(), | 82 certs->begin(), |
83 certs->end(), | 83 certs->end(), |
84 NSSProfileFilterChromeOS::CertNotAllowedForProfilePredicate( | 84 NSSProfileFilterChromeOS::CertNotAllowedForProfilePredicate( |
85 profile_filter)), | 85 profile_filter)), |
86 certs->end()); | 86 certs->end()); |
87 DVLOG(1) << "filtered " << pre_size - certs->size() << " of " << pre_size | 87 DVLOG(1) << "filtered " << pre_size - certs->size() << " of " << pre_size |
88 << " certs"; | 88 << " certs"; |
89 } | 89 } |
90 | 90 |
91 } // namespace net | 91 } // namespace net |
OLD | NEW |