#ifndef NET_SSL_SSL_PLATFORM_KEY_WIN_H_
#define NET_SSL_SSL_PLATFORM_KEY_WIN_H_
#include <windows.h>
#include <NCrypt.h>
#include "base/memory/scoped_refptr.h"
#include "base/win/wincrypt_shim.h"
#include "crypto/scoped_capi_types.h"
#include "crypto/scoped_cng_types.h"
#include "crypto/unexportable_key.h"
#include "net/base/net_export.h"
namespace net {
class SSLPrivateKey;
class X509Certificate;
scoped_refptr<SSLPrivateKey> FetchClientCertPrivateKey(
const X509Certificate* certificate,
PCCERT_CONTEXT cert_context);
NET_EXPORT_PRIVATE scoped_refptr<SSLPrivateKey> WrapCAPIPrivateKey(
const X509Certificate* certificate,
crypto::ScopedHCRYPTPROV prov,
DWORD key_spec);
NET_EXPORT_PRIVATE scoped_refptr<SSLPrivateKey> WrapCNGPrivateKey(
const X509Certificate* certificate,
crypto::ScopedNCryptKey key);
NET_EXPORT scoped_refptr<SSLPrivateKey> WrapUnexportableKeySlowly(
const crypto::UnexportableSigningKey& key);
}
#endif