1 // Copyright 2024 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_OPENSSL_PRIVATE_KEY_H_ 6 #define NET_SSL_OPENSSL_PRIVATE_KEY_H_ 7 8 #include "base/memory/scoped_refptr.h" 9 #include "net/base/net_export.h" 10 #include "third_party/boringssl/src/include/openssl/base.h" 11 12 namespace net { 13 14 class SSLPrivateKey; 15 16 // Returns a new SSLPrivateKey which uses `key` for signing operations. 17 NET_EXPORT scoped_refptr<SSLPrivateKey> WrapOpenSSLPrivateKey( 18 bssl::UniquePtr<EVP_PKEY> key); 19 20 } // namespace net 21 22 #endif // NET_SSL_OPENSSL_PRIVATE_KEY_H_ 23