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

Side by Side Diff: net/ssl/client_cert_store_nss.cc

Issue 61643007: Update keygen to use correct NSS slot on ChromeOS multiprofile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jam review changes Created 7 years 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/keygen_handler_nss.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "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
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
OLDNEW
« no previous file with comments | « net/base/keygen_handler_nss.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698