| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/threading/worker_pool.h" | 14 #include "base/threading/worker_pool.h" |
| 15 #include "crypto/crypto_module_blocking_password_delegate.h" | 15 #include "crypto/nss_crypto_module_delegate.h" |
| 16 #include "net/cert/x509_util.h" | 16 #include "net/cert/x509_util.h" |
| 17 | 17 |
| 18 namespace net { | 18 namespace net { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 // Examines the certificates in |cert_list| to find all certificates that match | 22 // Examines the certificates in |cert_list| to find all certificates that match |
| 23 // the client certificate request in |request|, storing the matching | 23 // the client certificate request in |request|, storing the matching |
| 24 // certificates in |selected_certs|. | 24 // certificates in |selected_certs|. |
| 25 // If |query_nssdb| is true, NSS will be queried to construct full certificate | 25 // If |query_nssdb| is true, NSS will be queried to construct full certificate |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 CERT_AddCertToListTail( | 139 CERT_AddCertToListTail( |
| 140 cert_list, CERT_DupCertificate(input_certs[i]->os_cert_handle())); | 140 cert_list, CERT_DupCertificate(input_certs[i]->os_cert_handle())); |
| 141 } | 141 } |
| 142 | 142 |
| 143 GetClientCertsImpl(cert_list, request, false, selected_certs); | 143 GetClientCertsImpl(cert_list, request, false, selected_certs); |
| 144 CERT_DestroyCertList(cert_list); | 144 CERT_DestroyCertList(cert_list); |
| 145 return true; | 145 return true; |
| 146 } | 146 } |
| 147 | 147 |
| 148 } // namespace net | 148 } // namespace net |
| OLD | NEW |