Commit 320b9eb4 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

dssenh: Implement CRYPT_DELETEKEYSET.

parent 437d9328
......@@ -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;
......
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