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
c70841fb
Commit
c70841fb
authored
Oct 23, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Cast-qual warnings fix.
parent
becf09f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
cert.c
dlls/crypt32/cert.c
+7
-7
No files found.
dlls/crypt32/cert.c
View file @
c70841fb
...
...
@@ -364,7 +364,7 @@ BOOL WINAPI CertGetCertificateContextProperty(PCCERT_CONTEXT pCertContext,
* - rgProvParam[0]...
*/
static
void
CRYPT_CopyKeyProvInfo
(
PCRYPT_KEY_PROV_INFO
to
,
PCRYPT_KEY_PROV_INFO
from
)
const
CRYPT_KEY_PROV_INFO
*
from
)
{
DWORD
i
;
LPBYTE
nextData
=
(
LPBYTE
)
to
+
sizeof
(
CRYPT_KEY_PROV_INFO
);
...
...
@@ -403,7 +403,7 @@ static void CRYPT_CopyKeyProvInfo(PCRYPT_KEY_PROV_INFO to,
}
static
BOOL
CertContext_SetKeyProvInfoProperty
(
PCONTEXT_PROPERTY_LIST
properties
,
PCRYPT_KEY_PROV_INFO
info
)
const
CRYPT_KEY_PROV_INFO
*
info
)
{
BOOL
ret
;
LPBYTE
buf
=
NULL
;
...
...
@@ -468,7 +468,7 @@ static BOOL WINAPI CertContext_SetProperty(void *context, DWORD dwPropId,
{
if
(
pvData
)
{
PCRYPT_DATA_BLOB
blob
=
(
PCRYPT_DATA_BLOB
)
pvData
;
const
CRYPT_DATA_BLOB
*
blob
=
(
const
CRYPT_DATA_BLOB
*
)
pvData
;
ret
=
ContextPropertyList_SetProperty
(
properties
,
dwPropId
,
blob
->
pbData
,
blob
->
cbData
);
...
...
@@ -483,7 +483,7 @@ static BOOL WINAPI CertContext_SetProperty(void *context, DWORD dwPropId,
case
CERT_DATE_STAMP_PROP_ID
:
if
(
pvData
)
ret
=
ContextPropertyList_SetProperty
(
properties
,
dwPropId
,
(
LPBYTE
)
pvData
,
sizeof
(
FILETIME
));
(
const
BYTE
*
)
pvData
,
sizeof
(
FILETIME
));
else
{
ContextPropertyList_RemoveProperty
(
properties
,
dwPropId
);
...
...
@@ -494,7 +494,7 @@ static BOOL WINAPI CertContext_SetProperty(void *context, DWORD dwPropId,
{
if
(
pvData
)
{
PCERT_KEY_CONTEXT
keyContext
=
(
PCERT_KEY_CONTEXT
)
pvData
;
const
CERT_KEY_CONTEXT
*
keyContext
=
(
const
CERT_KEY_CONTEXT
*
)
pvData
;
ret
=
ContextPropertyList_SetProperty
(
properties
,
dwPropId
,
(
const
BYTE
*
)
keyContext
,
keyContext
->
cbSize
);
...
...
@@ -509,7 +509,7 @@ static BOOL WINAPI CertContext_SetProperty(void *context, DWORD dwPropId,
case
CERT_KEY_PROV_INFO_PROP_ID
:
if
(
pvData
)
ret
=
CertContext_SetKeyProvInfoProperty
(
properties
,
(
PCRYPT_KEY_PROV_INFO
)
pvData
);
(
const
CRYPT_KEY_PROV_INFO
*
)
pvData
);
else
{
ContextPropertyList_RemoveProperty
(
properties
,
dwPropId
);
...
...
@@ -528,7 +528,7 @@ static BOOL WINAPI CertContext_SetProperty(void *context, DWORD dwPropId,
if
(
!
(
dwFlags
&
CERT_STORE_NO_CRYPT_RELEASE_FLAG
))
CryptReleaseContext
(
keyContext
.
hCryptProv
,
0
);
if
(
pvData
)
keyContext
.
hCryptProv
=
*
(
HCRYPTPROV
*
)
pvData
;
keyContext
.
hCryptProv
=
*
(
const
HCRYPTPROV
*
)
pvData
;
else
keyContext
.
hCryptProv
=
0
;
ret
=
CertContext_SetProperty
(
context
,
CERT_KEY_CONTEXT_PROP_ID
,
...
...
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