Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1b1637fc
Commit
1b1637fc
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 CPSetHashParam.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
554e315b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
dssenh.spec
dlls/dssenh/dssenh.spec
+1
-1
main.c
dlls/dssenh/main.c
+21
-0
No files found.
dlls/dssenh/dssenh.spec
View file @
1b1637fc
...
...
@@ -18,7 +18,7 @@
@ stub CPHashSessionKey
@ stdcall CPImportKey(ptr ptr long ptr long ptr)
@ stdcall CPReleaseContext(ptr long)
@ st
ub CPSetHashParam
@ st
dcall CPSetHashParam(ptr ptr long ptr long)
@ stub CPSetKeyParam
@ stub CPSetProvParam
@ stdcall CPSignHash(ptr ptr long wstr long ptr ptr)
...
...
dlls/dssenh/main.c
View file @
1b1637fc
...
...
@@ -837,6 +837,27 @@ BOOL WINAPI CPGetHashParam( HCRYPTPROV hprov, HCRYPTHASH hhash, DWORD param, BYT
}
}
BOOL
WINAPI
CPSetHashParam
(
HCRYPTPROV
hprov
,
HCRYPTHASH
hhash
,
DWORD
param
,
const
BYTE
*
data
,
DWORD
flags
)
{
struct
hash
*
hash
=
(
struct
hash
*
)
hhash
;
TRACE
(
"%p, %p, %08x, %p, %08x
\n
"
,
(
void
*
)
hprov
,
(
void
*
)
hhash
,
param
,
data
,
flags
);
if
(
hash
->
magic
!=
MAGIC_HASH
)
return
FALSE
;
switch
(
param
)
{
case
HP_HASHVAL
:
memcpy
(
hash
->
value
,
data
,
hash
->
len
);
return
TRUE
;
default:
FIXME
(
"param %u not supported
\n
"
,
param
);
SetLastError
(
NTE_BAD_TYPE
);
return
FALSE
;
}
}
BOOL
WINAPI
CPDeriveKey
(
HCRYPTPROV
hprov
,
ALG_ID
algid
,
HCRYPTHASH
hhash
,
DWORD
flags
,
HCRYPTKEY
*
ret_key
)
{
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