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
3b26f513
Commit
3b26f513
authored
Feb 14, 2005
by
Michael Jung
Committed by
Alexandre Julliard
Feb 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check pdwDataLen param for non NULL'ness.
Implemented PP_IMPLTYPE and PP_VERSION provider params.
parent
4fd4bf90
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
rsaenh.c
dlls/rsaenh/rsaenh.c
+13
-0
No files found.
dlls/rsaenh/rsaenh.c
View file @
3b26f513
...
...
@@ -2762,6 +2762,11 @@ BOOL WINAPI RSAENH_CPGetProvParam(HCRYPTPROV hProv, DWORD dwParam, BYTE *pbData,
TRACE
(
"(hProv=%08lx, dwParam=%08lx, pbData=%p, pdwDataLen=%p, dwFlags=%08lx)
\n
"
,
hProv
,
dwParam
,
pbData
,
pdwDataLen
,
dwFlags
);
if
(
!
pdwDataLen
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
if
(
!
lookup_handle
(
&
handle_table
,
(
unsigned
int
)
hProv
,
RSAENH_MAGIC_CONTAINER
,
(
OBJECTHDR
**
)
&
pKeyContainer
))
{
...
...
@@ -2785,6 +2790,14 @@ BOOL WINAPI RSAENH_CPGetProvParam(HCRYPTPROV hProv, DWORD dwParam, BYTE *pbData,
dwTemp
=
8
;
return
copy_param
(
pbData
,
pdwDataLen
,
(
CONST
BYTE
*
)
&
dwTemp
,
sizeof
(
dwTemp
));
case
PP_IMPTYPE
:
dwTemp
=
CRYPT_IMPL_SOFTWARE
;
return
copy_param
(
pbData
,
pdwDataLen
,
(
CONST
BYTE
*
)
&
dwTemp
,
sizeof
(
dwTemp
));
case
PP_VERSION
:
dwTemp
=
0x00000200
;
return
copy_param
(
pbData
,
pdwDataLen
,
(
CONST
BYTE
*
)
&
dwTemp
,
sizeof
(
dwTemp
));
case
PP_ENUMCONTAINERS
:
if
((
dwFlags
&
CRYPT_FIRST
)
==
CRYPT_FIRST
)
pKeyContainer
->
dwEnumContainersCtr
=
0
;
...
...
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