| 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_impl.h" | 5 #include "net/ssl/client_cert_store_impl.h" |
| 6 | 6 |
| 7 #include <CommonCrypto/CommonDigest.h> | 7 #include <CommonCrypto/CommonDigest.h> |
| 8 #include <CoreFoundation/CFArray.h> | 8 #include <CoreFoundation/CFArray.h> |
| 9 #include <CoreServices/CoreServices.h> | 9 #include <CoreServices/CoreServices.h> |
| 10 #include <Security/SecBase.h> | 10 #include <Security/SecBase.h> |
| 11 #include <Security/Security.h> | 11 #include <Security/Security.h> |
| 12 | 12 |
| 13 #include <algorithm> | 13 #include <algorithm> |
| 14 #include <string> | 14 #include <string> |
| 15 | 15 |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/mac/mac_logging.h" | 17 #include "base/mac/mac_logging.h" |
| 18 #include "base/mac/scoped_cftyperef.h" | 18 #include "base/mac/scoped_cftyperef.h" |
| 19 #include "base/synchronization/lock.h" | 19 #include "base/synchronization/lock.h" |
| 20 #include "base/sys_string_conversions.h" | 20 #include "base/sys_string_conversions.h" |
| 21 #include "crypto/mac_security_services_lock.h" | 21 #include "crypto/mac_security_services_lock.h" |
| 22 #include "net/base/host_port_pair.h" | 22 #include "net/base/host_port_pair.h" |
| 23 #include "net/base/x509_util.h" | 23 #include "net/cert/x509_util.h" |
| 24 | 24 |
| 25 using base::mac::ScopedCFTypeRef; | 25 using base::mac::ScopedCFTypeRef; |
| 26 | 26 |
| 27 namespace net { | 27 namespace net { |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 bool GetClientCertsImpl(const scoped_refptr<X509Certificate>& preferred_cert, | 31 bool GetClientCertsImpl(const scoped_refptr<X509Certificate>& preferred_cert, |
| 32 const CertificateList& regular_certs, | 32 const CertificateList& regular_certs, |
| 33 const SSLCertRequestInfo& request, | 33 const SSLCertRequestInfo& request, |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 const scoped_refptr<X509Certificate>& preferred_cert, | 163 const scoped_refptr<X509Certificate>& preferred_cert, |
| 164 const CertificateList& regular_certs, | 164 const CertificateList& regular_certs, |
| 165 const SSLCertRequestInfo& request, | 165 const SSLCertRequestInfo& request, |
| 166 CertificateList* selected_certs) { | 166 CertificateList* selected_certs) { |
| 167 return GetClientCertsImpl(preferred_cert, regular_certs, request, | 167 return GetClientCertsImpl(preferred_cert, regular_certs, request, |
| 168 selected_certs); | 168 selected_certs); |
| 169 } | 169 } |
| 170 #endif | 170 #endif |
| 171 | 171 |
| 172 } // namespace net | 172 } // namespace net |
| OLD | NEW |