Commit 94e38a61 authored by Joseph Kogut's avatar Joseph Kogut Committed by Alexandre Julliard

ncrypt: Add NCryptImportKey stub.

parent 9ea80d88
...@@ -109,6 +109,16 @@ SECURITY_STATUS WINAPI NCryptGetProperty(NCRYPT_HANDLE object, const WCHAR *prop ...@@ -109,6 +109,16 @@ SECURITY_STATUS WINAPI NCryptGetProperty(NCRYPT_HANDLE object, const WCHAR *prop
return NTE_NOT_SUPPORTED; return NTE_NOT_SUPPORTED;
} }
SECURITY_STATUS WINAPI NCryptImportKey(NCRYPT_PROV_HANDLE provider, NCRYPT_KEY_HANDLE decrypt_key,
const WCHAR *type, NCryptBufferDesc *params, NCRYPT_KEY_HANDLE *key,
PBYTE data, DWORD datasize, DWORD flags)
{
FIXME("(0x%lx, 0x%lx, %s, %p, %p, %p, %u, 0x%08x): stub\n", provider, decrypt_key,
wine_dbgstr_w(type), params,
key, data, datasize, flags);
return NTE_NOT_SUPPORTED;
}
SECURITY_STATUS WINAPI NCryptOpenKey(NCRYPT_PROV_HANDLE provider, NCRYPT_KEY_HANDLE *key, SECURITY_STATUS WINAPI NCryptOpenKey(NCRYPT_PROV_HANDLE provider, NCRYPT_KEY_HANDLE *key,
const WCHAR *name, DWORD keyspec, DWORD flags) const WCHAR *name, DWORD keyspec, DWORD flags)
{ {
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
@ stdcall NCryptFreeObject(long) @ stdcall NCryptFreeObject(long)
@ stdcall NCryptGetProperty(ptr wstr ptr long ptr long) @ stdcall NCryptGetProperty(ptr wstr ptr long ptr long)
@ stub NCryptGetProtectionDescriptorInfo @ stub NCryptGetProtectionDescriptorInfo
@ stub NCryptImportKey @ stdcall NCryptImportKey(long long wstr ptr ptr ptr long long)
@ stub NCryptIsAlgSupported @ stub NCryptIsAlgSupported
@ stub NCryptIsKeyHandle @ stub NCryptIsKeyHandle
@ stub NCryptKeyDerivation @ stub NCryptKeyDerivation
......
...@@ -39,6 +39,18 @@ typedef struct _NCryptAlgorithmName { ...@@ -39,6 +39,18 @@ typedef struct _NCryptAlgorithmName {
DWORD dwFlags; DWORD dwFlags;
} NCryptAlgorithmName; } NCryptAlgorithmName;
typedef struct _NCryptBuffer {
ULONG cbBuffer;
ULONG BufferType;
PVOID pvBuffer;
} NCryptBuffer, *PNCryptBuffer;
typedef struct _NCryptBufferDesc {
ULONG ulVersion;
ULONG cBuffers;
PNCryptBuffer pBuffers;
} NCryptBufferDesc, *PNCryptBufferDesc;
typedef struct NCryptKeyName { typedef struct NCryptKeyName {
LPWSTR pszName; LPWSTR pszName;
LPWSTR pszAlgid; LPWSTR pszAlgid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment