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
b4ca2d00
Commit
b4ca2d00
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: Add support for exporting private keys.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1b1637fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
main.c
dlls/dssenh/main.c
+16
-5
No files found.
dlls/dssenh/main.c
View file @
b4ca2d00
...
...
@@ -578,6 +578,7 @@ BOOL WINAPI CPExportKey( HCRYPTPROV hprov, HCRYPTKEY hkey, HCRYPTKEY hexpkey, DW
BYTE
*
data
,
DWORD
*
len
)
{
struct
key
*
key
=
(
struct
key
*
)
hkey
;
const
WCHAR
*
type
;
TRACE
(
"%p, %p, %p, %08x, %08x, %p, %p
\n
"
,
(
void
*
)
hprov
,
(
void
*
)
hkey
,
(
void
*
)
hexpkey
,
blobtype
,
flags
,
data
,
len
);
...
...
@@ -588,18 +589,28 @@ BOOL WINAPI CPExportKey( HCRYPTPROV hprov, HCRYPTKEY hkey, HCRYPTKEY hexpkey, DW
FIXME
(
"export key not supported
\n
"
);
return
FALSE
;
}
if
(
blobtype
!=
PUBLICKEYBLOB
)
if
(
flags
)
{
FIXME
(
"
blob type %u not supported
\n
"
,
blobtype
);
FIXME
(
"
flags %08x not supported
\n
"
,
flags
);
return
FALSE
;
}
if
(
flags
)
switch
(
blobtype
)
{
FIXME
(
"flags %08x not supported
\n
"
,
flags
);
case
PUBLICKEYBLOB
:
type
=
LEGACY_DSA_V2_PUBLIC_BLOB
;
break
;
case
PRIVATEKEYBLOB
:
type
=
LEGACY_DSA_V2_PRIVATE_BLOB
;
break
;
default:
FIXME
(
"blob type %u not supported
\n
"
,
blobtype
);
return
FALSE
;
}
return
!
BCryptExportKey
(
key
->
handle
,
NULL
,
LEGACY_DSA_V2_PUBLIC_BLOB
,
data
,
*
len
,
len
,
0
);
return
!
BCryptExportKey
(
key
->
handle
,
NULL
,
type
,
data
,
*
len
,
len
,
0
);
}
BOOL
WINAPI
CPDuplicateKey
(
HCRYPTPROV
hprov
,
HCRYPTKEY
hkey
,
DWORD
*
reserved
,
DWORD
flags
,
HCRYPTKEY
*
ret_key
)
...
...
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