| 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_android.h" | 5 #include "net/ssl/ssl_platform_key_android.h" |
| 6 | 6 |
| 7 #include <strings.h> | 7 #include <strings.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 } | 216 } |
| 217 } | 217 } |
| 218 } | 218 } |
| 219 | 219 |
| 220 return make_scoped_refptr(new ThreadedSSLPrivateKey( | 220 return make_scoped_refptr(new ThreadedSSLPrivateKey( |
| 221 base::MakeUnique<SSLPlatformKeyAndroid>(type, key, max_length, sys_rsa), | 221 base::MakeUnique<SSLPlatformKeyAndroid>(type, key, max_length, sys_rsa), |
| 222 GetSSLPlatformKeyTaskRunner())); | 222 GetSSLPlatformKeyTaskRunner())); |
| 223 } | 223 } |
| 224 | 224 |
| 225 scoped_refptr<SSLPrivateKey> FetchClientCertPrivateKey( | 225 scoped_refptr<SSLPrivateKey> FetchClientCertPrivateKey( |
| 226 X509Certificate* certificate) { | 226 const X509Certificate* certificate) { |
| 227 return OpenSSLClientKeyStore::GetInstance()->FetchClientCertPrivateKey( | 227 return OpenSSLClientKeyStore::GetInstance()->FetchClientCertPrivateKey( |
| 228 certificate); | 228 certificate); |
| 229 } | 229 } |
| 230 | 230 |
| 231 } // namespace net | 231 } // namespace net |
| OLD | NEW |