OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <keyhi.h> | 5 #include <keyhi.h> |
6 #include <pk11pub.h> | 6 #include <pk11pub.h> |
7 #include <prerror.h> | 7 #include <prerror.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "base/sequenced_task_runner.h" | |
13 #include "crypto/scoped_nss_types.h" | 12 #include "crypto/scoped_nss_types.h" |
14 #include "net/cert/x509_certificate.h" | 13 #include "net/cert/x509_certificate.h" |
15 #include "net/ssl/client_key_store.h" | 14 #include "net/ssl/client_key_store.h" |
16 #include "net/ssl/ssl_platform_key.h" | 15 #include "net/ssl/ssl_platform_key.h" |
17 #include "net/ssl/ssl_platform_key_util.h" | 16 #include "net/ssl/ssl_platform_key_util.h" |
18 #include "net/ssl/ssl_private_key.h" | 17 #include "net/ssl/ssl_private_key.h" |
19 #include "net/ssl/threaded_ssl_private_key.h" | 18 #include "net/ssl/threaded_ssl_private_key.h" |
20 #include "third_party/boringssl/src/include/openssl/mem.h" | 19 #include "third_party/boringssl/src/include/openssl/mem.h" |
21 #include "third_party/boringssl/src/include/openssl/nid.h" | 20 #include "third_party/boringssl/src/include/openssl/nid.h" |
22 #include "third_party/boringssl/src/include/openssl/rsa.h" | 21 #include "third_party/boringssl/src/include/openssl/rsa.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 return ClientKeyStore::GetInstance()->FetchClientCertPrivateKey( | 126 return ClientKeyStore::GetInstance()->FetchClientCertPrivateKey( |
128 *certificate); | 127 *certificate); |
129 } | 128 } |
130 | 129 |
131 return make_scoped_refptr(new ThreadedSSLPrivateKey( | 130 return make_scoped_refptr(new ThreadedSSLPrivateKey( |
132 base::MakeUnique<SSLPlatformKeyChromecast>(std::move(key)), | 131 base::MakeUnique<SSLPlatformKeyChromecast>(std::move(key)), |
133 GetSSLPlatformKeyTaskRunner())); | 132 GetSSLPlatformKeyTaskRunner())); |
134 } | 133 } |
135 | 134 |
136 } // namespace net | 135 } // namespace net |
OLD | NEW |