ncrypt: Add some stub functions.

Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Austin English 2016-07-13 18:18:29 +02:00 committed by Alexandre Julliard
parent 6cd6e96259
commit 789c4c45ce
2 changed files with 58 additions and 7 deletions

View File

@ -24,6 +24,7 @@
#include "windef.h"
#include "winbase.h"
#include "ncrypt.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(ncrypt);
@ -43,3 +44,53 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
return TRUE;
}
SECURITY_STATUS WINAPI NCryptCreatePersistedKey(NCRYPT_PROV_HANDLE provider, NCRYPT_KEY_HANDLE *key,
const WCHAR *algid, const WCHAR *name, DWORD keyspec,
DWORD flags)
{
FIXME("(0x%lx, %p, %s, %s, 0x%08x, 0x%08x): stub\n", provider, key, wine_dbgstr_w(algid),
wine_dbgstr_w(name), keyspec, flags);
return NTE_NOT_SUPPORTED;
}
SECURITY_STATUS WINAPI NCryptDecrypt(NCRYPT_KEY_HANDLE key, BYTE *input, DWORD insize, void *padding,
BYTE *output, DWORD outsize, DWORD *result, DWORD flags)
{
FIXME("(0x%lx, %p, %u, %p, %p, %u, %p, 0x%08x): stub\n", key, input, insize, padding,
output, outsize, result, flags);
return NTE_NOT_SUPPORTED;
}
SECURITY_STATUS WINAPI NCryptEncrypt(NCRYPT_KEY_HANDLE key, BYTE *input, DWORD insize, void *padding,
BYTE *output, DWORD outsize, DWORD *result, DWORD flags)
{
FIXME("(0x%lx, %p, %u, %p, %p, %u, %p, 0x%08x): stub\n", key, input, insize, padding,
output, outsize, result, flags);
return NTE_NOT_SUPPORTED;
}
SECURITY_STATUS WINAPI NCryptFinalizeKey(NCRYPT_KEY_HANDLE key, DWORD flags)
{
FIXME("(0x%lx, 0x%08x): stub\n", key, flags);
return NTE_NOT_SUPPORTED;
}
SECURITY_STATUS WINAPI NCryptFreeObject(NCRYPT_HANDLE object)
{
FIXME("(0x%lx): stub\n", object);
return NTE_NOT_SUPPORTED;
}
SECURITY_STATUS WINAPI NCryptOpenKey(NCRYPT_PROV_HANDLE provider, NCRYPT_KEY_HANDLE *key,
const WCHAR *name, DWORD keyspec, DWORD flags)
{
FIXME("(0x%lx, %p, %s, 0x%08x, 0x%08x): stub\n", provider, key, wine_dbgstr_w(name), keyspec, flags);
return NTE_NOT_SUPPORTED;
}
SECURITY_STATUS WINAPI NCryptOpenStorageProvider(NCRYPT_PROV_HANDLE *provider, const WCHAR *name, DWORD flags)
{
FIXME("(%p, %s, %u): stub\n", provider, wine_dbgstr_w(name), flags);
return NTE_NOT_SUPPORTED;
}

View File

@ -60,20 +60,20 @@
@ stub NCryptCloseKeyProtector
@ stub NCryptCloseProtectionDescriptor
@ stub NCryptCreateClaim
@ stub NCryptCreatePersistedKey
@ stdcall NCryptCreatePersistedKey(long ptr wstr wstr long long)
@ stub NCryptCreateProtectionDescriptor
@ stub NCryptDecrypt
@ stdcall NCryptDecrypt(long ptr long ptr ptr long ptr long)
@ stub NCryptDeleteKey
@ stub NCryptDeriveKey
@ stub NCryptDuplicateKeyProtectorHandle
@ stub NCryptEncrypt
@ stdcall NCryptEncrypt(long ptr long ptr ptr long ptr long)
@ stub NCryptEnumAlgorithms
@ stub NCryptEnumKeys
@ stub NCryptEnumStorageProviders
@ stub NCryptExportKey
@ stub NCryptFinalizeKey
@ stdcall NCryptFinalizeKey(long long)
@ stub NCryptFreeBuffer
@ stub NCryptFreeObject
@ stdcall NCryptFreeObject(long)
@ stub NCryptGetProperty
@ stub NCryptGetProtectionDescriptorInfo
@ stub NCryptImportKey
@ -81,9 +81,9 @@
@ stub NCryptIsKeyHandle
@ stub NCryptKeyDerivation
@ stub NCryptNotifyChangeKey
@ stub NCryptOpenKey
@ stdcall NCryptOpenKey(long ptr wstr long long)
@ stub NCryptOpenKeyProtector
@ stub NCryptOpenStorageProvider
@ stdcall NCryptOpenStorageProvider(ptr wstr long)
@ stub NCryptProtectKey
@ stub NCryptProtectSecret
@ stub NCryptQueryProtectionDescriptorName