Commit 789c4c45 authored by Austin English's avatar Austin English Committed by Alexandre Julliard

ncrypt: Add some stub functions.

parent 6cd6e962
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "ncrypt.h"
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(ncrypt); WINE_DEFAULT_DEBUG_CHANNEL(ncrypt);
...@@ -43,3 +44,53 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved) ...@@ -43,3 +44,53 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
return TRUE; 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;
}
...@@ -60,20 +60,20 @@ ...@@ -60,20 +60,20 @@
@ stub NCryptCloseKeyProtector @ stub NCryptCloseKeyProtector
@ stub NCryptCloseProtectionDescriptor @ stub NCryptCloseProtectionDescriptor
@ stub NCryptCreateClaim @ stub NCryptCreateClaim
@ stub NCryptCreatePersistedKey @ stdcall NCryptCreatePersistedKey(long ptr wstr wstr long long)
@ stub NCryptCreateProtectionDescriptor @ stub NCryptCreateProtectionDescriptor
@ stub NCryptDecrypt @ stdcall NCryptDecrypt(long ptr long ptr ptr long ptr long)
@ stub NCryptDeleteKey @ stub NCryptDeleteKey
@ stub NCryptDeriveKey @ stub NCryptDeriveKey
@ stub NCryptDuplicateKeyProtectorHandle @ stub NCryptDuplicateKeyProtectorHandle
@ stub NCryptEncrypt @ stdcall NCryptEncrypt(long ptr long ptr ptr long ptr long)
@ stub NCryptEnumAlgorithms @ stub NCryptEnumAlgorithms
@ stub NCryptEnumKeys @ stub NCryptEnumKeys
@ stub NCryptEnumStorageProviders @ stub NCryptEnumStorageProviders
@ stub NCryptExportKey @ stub NCryptExportKey
@ stub NCryptFinalizeKey @ stdcall NCryptFinalizeKey(long long)
@ stub NCryptFreeBuffer @ stub NCryptFreeBuffer
@ stub NCryptFreeObject @ stdcall NCryptFreeObject(long)
@ stub NCryptGetProperty @ stub NCryptGetProperty
@ stub NCryptGetProtectionDescriptorInfo @ stub NCryptGetProtectionDescriptorInfo
@ stub NCryptImportKey @ stub NCryptImportKey
...@@ -81,9 +81,9 @@ ...@@ -81,9 +81,9 @@
@ stub NCryptIsKeyHandle @ stub NCryptIsKeyHandle
@ stub NCryptKeyDerivation @ stub NCryptKeyDerivation
@ stub NCryptNotifyChangeKey @ stub NCryptNotifyChangeKey
@ stub NCryptOpenKey @ stdcall NCryptOpenKey(long ptr wstr long long)
@ stub NCryptOpenKeyProtector @ stub NCryptOpenKeyProtector
@ stub NCryptOpenStorageProvider @ stdcall NCryptOpenStorageProvider(ptr wstr long)
@ stub NCryptProtectKey @ stub NCryptProtectKey
@ stub NCryptProtectSecret @ stub NCryptProtectSecret
@ stub NCryptQueryProtectionDescriptorName @ stub NCryptQueryProtectionDescriptorName
......
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