Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
320b9eb4
Commit
320b9eb4
authored
Oct 19, 2020
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dssenh: Implement CRYPT_DELETEKEYSET.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
437d9328
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
main.c
dlls/dssenh/main.c
+22
-0
No files found.
dlls/dssenh/main.c
View file @
320b9eb4
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment