1
0
mirror of https://github.com/wine-mirror/wine synced 2024-06-29 06:14:34 +00:00

dssenh: Add CPSetKeyParam() stub implementation.

dlls/dssenh/tests depend on CryptSetKeyParam(KP_X, NULL) returning FALSE/ERROR_INVALID_PARAMETER.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
This commit is contained in:
Dmitry Timoshkov 2024-04-08 12:03:39 +03:00 committed by Alexandre Julliard
parent 898ab8dab1
commit 5f984f8ce3
2 changed files with 12 additions and 1 deletions

View File

@ -19,7 +19,7 @@
@ stdcall CPImportKey(ptr ptr long ptr long ptr)
@ stdcall CPReleaseContext(ptr long)
@ stdcall CPSetHashParam(ptr ptr long ptr long)
@ stub CPSetKeyParam
@ stdcall CPSetKeyParam(ptr ptr long ptr long)
@ stub CPSetProvParam
@ stdcall CPSignHash(ptr ptr long wstr long ptr ptr)
@ stdcall CPVerifySignature(ptr ptr ptr long ptr wstr long)

View File

@ -749,6 +749,17 @@ BOOL WINAPI CPGetUserKey( HCRYPTPROV hprov, DWORD keyspec, HCRYPTKEY *ret_key )
return ret;
}
BOOL WINAPI CPSetKeyParam( HCRYPTPROV hprov, HCRYPTKEY hkey, DWORD param, BYTE *data, DWORD flags )
{
if (!data)
{
SetLastError( ERROR_INVALID_PARAMETER );
return FALSE;
}
return FALSE;
}
BOOL WINAPI CPGenRandom( HCRYPTPROV hprov, DWORD len, BYTE *buffer )
{
struct container *container = (struct container *)hprov;