mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 02:13:38 +00:00
dssenh: Implement CRYPT_DELETEKEYSET.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
437d932809
commit
320b9eb474
|
@ -247,6 +247,23 @@ static struct container *read_key_container( const char *name, DWORD flags )
|
|||
return ret;
|
||||
}
|
||||
|
||||
static void delete_key_container( const char *name, DWORD flags )
|
||||
{
|
||||
char path[sizeof(dss_path_fmt) + MAX_PATH];
|
||||
HKEY rootkey;
|
||||
|
||||
sprintf( path, dss_path_fmt, name );
|
||||
|
||||
if (flags & CRYPT_MACHINE_KEYSET)
|
||||
rootkey = HKEY_LOCAL_MACHINE;
|
||||
else
|
||||
rootkey = HKEY_CURRENT_USER;
|
||||
|
||||
/* @@ Wine registry key: HKLM\Software\Wine\Crypto\DSS */
|
||||
/* @@ Wine registry key: HKCU\Software\Wine\Crypto\DSS */
|
||||
RegDeleteKeyExA( rootkey, path, 0, 0 );
|
||||
}
|
||||
|
||||
BOOL WINAPI CPAcquireContext( HCRYPTPROV *ret_prov, LPSTR container, DWORD flags, PVTableProvStruc vtable )
|
||||
{
|
||||
struct container *ret;
|
||||
|
@ -285,6 +302,11 @@ BOOL WINAPI CPAcquireContext( HCRYPTPROV *ret_prov, LPSTR container, DWORD flags
|
|||
ret = create_key_container( "", flags );
|
||||
break;
|
||||
|
||||
case CRYPT_DELETEKEYSET:
|
||||
delete_key_container( name, flags );
|
||||
*ret_prov = 0;
|
||||
return TRUE;
|
||||
|
||||
default:
|
||||
FIXME( "unsupported flags %08x\n", flags );
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue