OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/ssl_platform_key.h" | 5 #include "net/ssl/ssl_platform_key.h" |
6 | 6 |
7 #include <Security/cssm.h> | 7 #include <Security/cssm.h> |
8 #include <Security/SecBase.h> | 8 #include <Security/SecBase.h> |
9 #include <Security/SecCertificate.h> | 9 #include <Security/SecCertificate.h> |
10 #include <Security/SecIdentity.h> | 10 #include <Security/SecIdentity.h> |
11 #include <Security/SecKey.h> | 11 #include <Security/SecKey.h> |
12 | 12 |
13 #include <memory> | 13 #include <memory> |
14 | 14 |
15 #include "base/location.h" | 15 #include "base/location.h" |
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/macros.h" | 19 #include "base/macros.h" |
20 #include "base/memory/ptr_util.h" | 20 #include "base/memory/ptr_util.h" |
21 #include "base/memory/scoped_policy.h" | 21 #include "base/memory/scoped_policy.h" |
22 #include "base/sequenced_task_runner.h" | |
23 #include "base/synchronization/lock.h" | 22 #include "base/synchronization/lock.h" |
24 #include "crypto/mac_security_services_lock.h" | 23 #include "crypto/mac_security_services_lock.h" |
25 #include "crypto/openssl_util.h" | 24 #include "crypto/openssl_util.h" |
26 #include "net/base/net_errors.h" | 25 #include "net/base/net_errors.h" |
27 #include "net/cert/x509_certificate.h" | 26 #include "net/cert/x509_certificate.h" |
28 #include "net/ssl/ssl_platform_key_util.h" | 27 #include "net/ssl/ssl_platform_key_util.h" |
29 #include "net/ssl/ssl_private_key.h" | 28 #include "net/ssl/ssl_private_key.h" |
30 #include "net/ssl/threaded_ssl_private_key.h" | 29 #include "net/ssl/threaded_ssl_private_key.h" |
31 #include "third_party/boringssl/src/include/openssl/ecdsa.h" | 30 #include "third_party/boringssl/src/include/openssl/ecdsa.h" |
32 #include "third_party/boringssl/src/include/openssl/mem.h" | 31 #include "third_party/boringssl/src/include/openssl/mem.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 231 |
233 return make_scoped_refptr(new ThreadedSSLPrivateKey( | 232 return make_scoped_refptr(new ThreadedSSLPrivateKey( |
234 base::MakeUnique<SSLPlatformKeyMac>(key_type, max_length, | 233 base::MakeUnique<SSLPlatformKeyMac>(key_type, max_length, |
235 private_key.get(), cssm_key), | 234 private_key.get(), cssm_key), |
236 GetSSLPlatformKeyTaskRunner())); | 235 GetSSLPlatformKeyTaskRunner())); |
237 } | 236 } |
238 | 237 |
239 #pragma clang diagnostic pop // "-Wdeprecated-declarations" | 238 #pragma clang diagnostic pop // "-Wdeprecated-declarations" |
240 | 239 |
241 } // namespace net | 240 } // namespace net |
OLD | NEW |