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

Side by Side Diff: net/ssl/client_cert_store_impl_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: rebase to 238776 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
OLDNEW
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_impl.h" 5 #include "net/ssl/client_cert_store_impl.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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 CERT_AddCertToListTail( 142 CERT_AddCertToListTail(
143 cert_list, CERT_DupCertificate(input_certs[i]->os_cert_handle())); 143 cert_list, CERT_DupCertificate(input_certs[i]->os_cert_handle()));
144 } 144 }
145 145
146 GetClientCertsImpl(cert_list, request, false, selected_certs); 146 GetClientCertsImpl(cert_list, request, false, selected_certs);
147 CERT_DestroyCertList(cert_list); 147 CERT_DestroyCertList(cert_list);
148 return true; 148 return true;
149 } 149 }
150 150
151 } // namespace net 151 } // namespace net
OLDNEW
« content/public/browser/resource_context.h ('K') | « net/base/keygen_handler_nss.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698