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/ssl/client_cert_store_nss.h" | 5 #include "net/ssl/client_cert_store_nss.h" |
6 | 6 |
7 #include <nss.h> | 7 #include <nss.h> |
8 #include <ssl.h> | 8 #include <ssl.h> |
9 | 9 |
| 10 #include <algorithm> |
| 11 |
10 #include "base/bind.h" | 12 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
12 #include "base/location.h" | 14 #include "base/location.h" |
13 #include "base/logging.h" | 15 #include "base/logging.h" |
14 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
15 #include "base/strings/string_piece.h" | 17 #include "base/strings/string_piece.h" |
16 #include "base/threading/worker_pool.h" | 18 #include "base/threading/worker_pool.h" |
17 #include "crypto/nss_crypto_module_delegate.h" | 19 #include "crypto/nss_crypto_module_delegate.h" |
18 #include "net/cert/x509_util.h" | 20 #include "net/cert/x509_util.h" |
19 #include "net/ssl/ssl_cert_request_info.h" | 21 #include "net/ssl/ssl_cert_request_info.h" |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 } | 136 } |
135 for (CERTCertListNode* node = CERT_LIST_HEAD(found_certs); | 137 for (CERTCertListNode* node = CERT_LIST_HEAD(found_certs); |
136 !CERT_LIST_END(node, found_certs); node = CERT_LIST_NEXT(node)) { | 138 !CERT_LIST_END(node, found_certs); node = CERT_LIST_NEXT(node)) { |
137 certs->push_back(X509Certificate::CreateFromHandle( | 139 certs->push_back(X509Certificate::CreateFromHandle( |
138 node->cert, X509Certificate::OSCertHandles())); | 140 node->cert, X509Certificate::OSCertHandles())); |
139 } | 141 } |
140 CERT_DestroyCertList(found_certs); | 142 CERT_DestroyCertList(found_certs); |
141 } | 143 } |
142 | 144 |
143 } // namespace net | 145 } // namespace net |
OLD | NEW |