mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 01:33:37 +00:00
dssenh: Implement CRYPT_MACHINE_KEYSET.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
691404bd06
commit
4dcb417ed2
|
@ -285,10 +285,12 @@ BOOL WINAPI CPAcquireContext( HCRYPTPROV *ret_prov, LPSTR container, DWORD flags
|
|||
switch (flags)
|
||||
{
|
||||
case 0:
|
||||
case 0 | CRYPT_MACHINE_KEYSET:
|
||||
ret = read_key_container( name, flags );
|
||||
break;
|
||||
|
||||
case CRYPT_NEWKEYSET:
|
||||
case CRYPT_NEWKEYSET | CRYPT_MACHINE_KEYSET:
|
||||
if ((ret = read_key_container( name, flags )))
|
||||
{
|
||||
heap_free( ret );
|
||||
|
@ -299,10 +301,12 @@ BOOL WINAPI CPAcquireContext( HCRYPTPROV *ret_prov, LPSTR container, DWORD flags
|
|||
break;
|
||||
|
||||
case CRYPT_VERIFYCONTEXT:
|
||||
case CRYPT_VERIFYCONTEXT | CRYPT_MACHINE_KEYSET:
|
||||
ret = create_key_container( "", flags );
|
||||
break;
|
||||
|
||||
case CRYPT_DELETEKEYSET:
|
||||
case CRYPT_DELETEKEYSET | CRYPT_MACHINE_KEYSET:
|
||||
delete_key_container( name, flags );
|
||||
*ret_prov = 0;
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue