xref: /aosp_15_r20/external/cronet/net/ssl/test_ssl_private_key.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2016 The Chromium Authors
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_PRIVATE_KEY_H_
6 #define NET_SSL_TEST_SSL_PRIVATE_KEY_H_
7 
8 #include "base/memory/scoped_refptr.h"
9 
10 namespace crypto {
11 class RSAPrivateKey;
12 }
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 scoped_refptr<SSLPrivateKey> WrapRSAPrivateKey(
21     crypto::RSAPrivateKey* rsa_private_key);
22 scoped_refptr<SSLPrivateKey> CreateFailSigningSSLPrivateKey();
23 
24 }  // namespace net
25 
26 #endif  // NET_SSL_TEST_SSL_PRIVATE_KEY_H_
27