// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_SSL_SSL_PLATFORM_KEY_MAC_H_ #define NET_SSL_SSL_PLATFORM_KEY_MAC_H_ #include #include "base/memory/scoped_refptr.h" #include "crypto/unexportable_key.h" #include "net/base/net_export.h" namespace net { class SSLPrivateKey; class X509Certificate; // Returns an `SSLPrivateKey` backed by the platform private key in `key`, which // must correspond to `certificate`'s public key. NET_EXPORT scoped_refptr CreateSSLPrivateKeyForSecKey( const X509Certificate* certificate, SecKeyRef key); // Returns an `SSLPrivateKey` backed by the platform private key contained in // `unexportable_key`. NET_EXPORT scoped_refptr WrapUnexportableKey( const crypto::UnexportableSigningKey& unexportable_key); } // namespace net #endif // NET_SSL_SSL_PLATFORM_KEY_MAC_H_