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
30bf5d9a
Commit
30bf5d9a
authored
Jul 17, 2006
by
Juan Lang
Committed by
Alexandre Julliard
Jul 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Fix reading key prov info from serialized data.
parent
11d01847
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
6 deletions
+19
-6
cert.c
dlls/crypt32/cert.c
+1
-6
crypt32_private.h
dlls/crypt32/crypt32_private.h
+8
-0
serialize.c
dlls/crypt32/serialize.c
+10
-0
No files found.
dlls/crypt32/cert.c
View file @
30bf5d9a
...
...
@@ -244,12 +244,7 @@ static BOOL WINAPI CertContext_GetProperty(void *context, DWORD dwPropId,
return
ret
;
}
/* info is assumed to be a CRYPT_KEY_PROV_INFO, followed by its container name,
* provider name, and any provider parameters, in a contiguous buffer, but
* where info's pointers are assumed to be invalid. Upon return, info's
* pointers point to the appropriate memory locations.
*/
static
void
CRYPT_FixKeyProvInfoPointers
(
PCRYPT_KEY_PROV_INFO
info
)
void
CRYPT_FixKeyProvInfoPointers
(
PCRYPT_KEY_PROV_INFO
info
)
{
DWORD
i
,
containerLen
,
provNameLen
;
LPBYTE
data
=
(
LPBYTE
)
info
+
sizeof
(
CRYPT_KEY_PROV_INFO
);
...
...
dlls/crypt32/crypt32_private.h
View file @
30bf5d9a
...
...
@@ -97,6 +97,14 @@ extern PCWINE_CONTEXT_INTERFACE pCTLInterface;
const
void
*
CRYPT_ReadSerializedElement
(
const
BYTE
*
pbElement
,
DWORD
cbElement
,
DWORD
dwContextTypeFlags
,
DWORD
*
pdwContentType
);
/* Fixes up the the pointers in info, where info is assumed to be a
* CRYPT_KEY_PROV_INFO, followed by its container name, provider name, and any
* provider parameters, in a contiguous buffer, but where info's pointers are
* assumed to be invalid. Upon return, info's pointers point to the
* appropriate memory locations.
*/
void
CRYPT_FixKeyProvInfoPointers
(
PCRYPT_KEY_PROV_INFO
info
);
DWORD
CertStore_GetAccessState
(
HCERTSTORE
hCertStore
);
/**
...
...
dlls/crypt32/serialize.c
View file @
30bf5d9a
...
...
@@ -363,6 +363,16 @@ const void *CRYPT_ReadSerializedElement(const BYTE *pbElement, DWORD cbElement,
ret
=
contextInterface
->
setProp
(
context
,
hdr
->
propID
,
0
,
pbElement
);
break
;
case
CERT_KEY_PROV_INFO_PROP_ID
:
{
PCRYPT_KEY_PROV_INFO
info
=
(
PCRYPT_KEY_PROV_INFO
)
pbElement
;
CRYPT_FixKeyProvInfoPointers
(
info
);
ret
=
contextInterface
->
setProp
(
context
,
hdr
->
propID
,
0
,
pbElement
);
break
;
}
default:
FIXME
(
"prop ID %ld: stub
\n
"
,
hdr
->
propID
);
}
...
...
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