d2d1/tests: Add a test for bezier intersections.
[wine.git] / dlls / ncrypt / main.c
blob6e79eebc75532a654e450a76a37260c7309f2287
1 /*
2 * New cryptographic library (ncrypt.dll)
4 * Copyright 2016 Alex Henrie
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #include "config.h"
23 #include <stdarg.h>
25 #include "windef.h"
26 #include "winbase.h"
27 #include "ncrypt.h"
28 #include "wine/debug.h"
30 WINE_DEFAULT_DEBUG_CHANNEL(ncrypt);
32 BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
34 TRACE("(%p, %u, %p)\n", instance, reason, reserved);
36 switch (reason)
38 case DLL_WINE_PREATTACH:
39 return FALSE; /* prefer native version */
40 case DLL_PROCESS_ATTACH:
41 DisableThreadLibraryCalls(instance);
42 break;
45 return TRUE;
48 SECURITY_STATUS WINAPI NCryptCreatePersistedKey(NCRYPT_PROV_HANDLE provider, NCRYPT_KEY_HANDLE *key,
49 const WCHAR *algid, const WCHAR *name, DWORD keyspec,
50 DWORD flags)
52 FIXME("(0x%lx, %p, %s, %s, 0x%08x, 0x%08x): stub\n", provider, key, wine_dbgstr_w(algid),
53 wine_dbgstr_w(name), keyspec, flags);
54 return NTE_NOT_SUPPORTED;
57 SECURITY_STATUS WINAPI NCryptDecrypt(NCRYPT_KEY_HANDLE key, BYTE *input, DWORD insize, void *padding,
58 BYTE *output, DWORD outsize, DWORD *result, DWORD flags)
60 FIXME("(0x%lx, %p, %u, %p, %p, %u, %p, 0x%08x): stub\n", key, input, insize, padding,
61 output, outsize, result, flags);
62 return NTE_NOT_SUPPORTED;
65 SECURITY_STATUS WINAPI NCryptEncrypt(NCRYPT_KEY_HANDLE key, BYTE *input, DWORD insize, void *padding,
66 BYTE *output, DWORD outsize, DWORD *result, DWORD flags)
68 FIXME("(0x%lx, %p, %u, %p, %p, %u, %p, 0x%08x): stub\n", key, input, insize, padding,
69 output, outsize, result, flags);
70 return NTE_NOT_SUPPORTED;
73 SECURITY_STATUS WINAPI NCryptFinalizeKey(NCRYPT_KEY_HANDLE key, DWORD flags)
75 FIXME("(0x%lx, 0x%08x): stub\n", key, flags);
76 return NTE_NOT_SUPPORTED;
79 SECURITY_STATUS WINAPI NCryptFreeObject(NCRYPT_HANDLE object)
81 FIXME("(0x%lx): stub\n", object);
82 return NTE_NOT_SUPPORTED;
85 SECURITY_STATUS WINAPI NCryptOpenKey(NCRYPT_PROV_HANDLE provider, NCRYPT_KEY_HANDLE *key,
86 const WCHAR *name, DWORD keyspec, DWORD flags)
88 FIXME("(0x%lx, %p, %s, 0x%08x, 0x%08x): stub\n", provider, key, wine_dbgstr_w(name), keyspec, flags);
89 return NTE_NOT_SUPPORTED;
92 SECURITY_STATUS WINAPI NCryptOpenStorageProvider(NCRYPT_PROV_HANDLE *provider, const WCHAR *name, DWORD flags)
94 FIXME("(%p, %s, %u): stub\n", provider, wine_dbgstr_w(name), flags);
95 return NTE_NOT_SUPPORTED;