| 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 #ifndef NET_SSL_SSL_PLATFORM_KEY_TEST_H_ | 5 #ifndef NET_SSL_SSL_PLATFORM_KEY_ANDROID_H_ |
| 6 #define NET_SSL_SSL_PLATFORM_KEY_TEST_H_ | 6 #define NET_SSL_SSL_PLATFORM_KEY_ANDROID_H_ |
| 7 | |
| 8 #include <openssl/digest.h> | |
| 9 #include <openssl/evp.h> | |
| 10 | 7 |
| 11 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 12 #include "crypto/scoped_openssl_types.h" | 9 #include "crypto/scoped_openssl_types.h" |
| 13 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
| 14 | 11 |
| 15 namespace net { | 12 namespace net { |
| 16 | 13 |
| 17 class SSLPrivateKey; | 14 class SSLPrivateKey; |
| 18 | 15 |
| 19 // Returns a new SSLPrivateKey which uses |key| for signing operations or | 16 // Wraps a ScopedEVP_PKEY into an SSLPrivateKey. |
| 20 // nullptr on error. | |
| 21 NET_EXPORT scoped_refptr<SSLPrivateKey> WrapOpenSSLPrivateKey( | 17 NET_EXPORT scoped_refptr<SSLPrivateKey> WrapOpenSSLPrivateKey( |
| 22 crypto::ScopedEVP_PKEY key); | 18 crypto::ScopedEVP_PKEY key); |
| 23 | 19 |
| 24 } // namespace net | 20 } // namespace net |
| 25 | 21 |
| 26 #endif // NET_SSL_SSL_PLATFORM_KEY_TEST_H_ | 22 #endif // NET_SSL_SSL_PLATFORM_KEY_ANDROID_H_ |
| OLD | NEW |