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