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
7589715c
Commit
7589715c
authored
Nov 03, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Remove superfluous casts of void pointers.
parent
3d6e19d4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
11 deletions
+9
-11
cert.c
dlls/crypt32/cert.c
+3
-4
context.c
dlls/crypt32/context.c
+1
-1
crl.c
dlls/crypt32/crl.c
+1
-1
ctl.c
dlls/crypt32/ctl.c
+1
-2
store.c
dlls/crypt32/store.c
+3
-3
No files found.
dlls/crypt32/cert.c
View file @
7589715c
...
...
@@ -88,7 +88,7 @@ PCCERT_CONTEXT WINAPI CertCreateCertificateContext(DWORD dwCertEncodingType,
{
BYTE
*
data
=
NULL
;
cert
=
(
PCERT_CONTEXT
)
Context_CreateDataContext
(
sizeof
(
CERT_CONTEXT
));
cert
=
Context_CreateDataContext
(
sizeof
(
CERT_CONTEXT
));
if
(
!
cert
)
goto
end
;
data
=
CryptMemAlloc
(
cbCertEncoded
);
...
...
@@ -601,7 +601,7 @@ static BOOL CRYPT_AcquirePrivateKeyFromProvInfo(PCCERT_CONTEXT pCert,
CERT_KEY_PROV_INFO_PROP_ID
,
0
,
&
size
);
if
(
ret
)
{
info
=
(
PCRYPT_KEY_PROV_INFO
)
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
info
)
{
ret
=
CertGetCertificateContextProperty
(
pCert
,
...
...
@@ -661,8 +661,7 @@ BOOL WINAPI CryptAcquireCertificatePrivateKey(PCCERT_CONTEXT pCert,
CERT_KEY_PROV_INFO_PROP_ID
,
0
,
&
size
);
if
(
ret
)
{
info
=
(
PCRYPT_KEY_PROV_INFO
)
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
ret
=
CertGetCertificateContextProperty
(
pCert
,
CERT_KEY_PROV_INFO_PROP_ID
,
info
,
&
size
);
if
(
ret
)
...
...
dlls/crypt32/context.c
View file @
7589715c
...
...
@@ -207,7 +207,7 @@ static inline struct list *ContextList_ContextToEntry(struct ContextList *list,
struct
list
*
ret
;
if
(
context
)
ret
=
(
struct
list
*
)
Context_GetExtra
(
context
,
list
->
contextSize
);
ret
=
Context_GetExtra
(
context
,
list
->
contextSize
);
else
ret
=
NULL
;
return
ret
;
...
...
dlls/crypt32/crl.c
View file @
7589715c
...
...
@@ -50,7 +50,7 @@ PCCRL_CONTEXT WINAPI CertCreateCRLContext(DWORD dwCertEncodingType,
{
BYTE
*
data
=
NULL
;
crl
=
(
PCRL_CONTEXT
)
Context_CreateDataContext
(
sizeof
(
CRL_CONTEXT
));
crl
=
Context_CreateDataContext
(
sizeof
(
CRL_CONTEXT
));
if
(
!
crl
)
goto
end
;
data
=
CryptMemAlloc
(
cbCrlEncoded
);
...
...
dlls/crypt32/ctl.c
View file @
7589715c
...
...
@@ -382,8 +382,7 @@ PCCTL_CONTEXT WINAPI CertCreateCTLContext(DWORD dwMsgAndCertEncodingType,
(
BYTE
*
)
&
ctlInfo
,
&
size
);
if
(
ret
)
{
ctl
=
(
PCTL_CONTEXT
)
Context_CreateDataContext
(
sizeof
(
CTL_CONTEXT
));
ctl
=
Context_CreateDataContext
(
sizeof
(
CTL_CONTEXT
));
if
(
ctl
)
{
BYTE
*
data
=
CryptMemAlloc
(
cbCtlEncoded
);
...
...
dlls/crypt32/store.c
View file @
7589715c
...
...
@@ -156,7 +156,7 @@ static BOOL CRYPT_MemAddCert(PWINECRYPT_CERTSTORE store, void *cert,
TRACE
(
"(%p, %p, %p, %p)
\n
"
,
store
,
cert
,
toReplace
,
ppStoreContext
);
context
=
(
PCERT_CONTEXT
)
ContextList_Add
(
ms
->
certs
,
cert
,
toReplace
);
context
=
ContextList_Add
(
ms
->
certs
,
cert
,
toReplace
);
if
(
context
)
{
context
->
hCertStore
=
store
;
...
...
@@ -197,7 +197,7 @@ static BOOL CRYPT_MemAddCrl(PWINECRYPT_CERTSTORE store, void *crl,
TRACE
(
"(%p, %p, %p, %p)
\n
"
,
store
,
crl
,
toReplace
,
ppStoreContext
);
context
=
(
PCRL_CONTEXT
)
ContextList_Add
(
ms
->
crls
,
crl
,
toReplace
);
context
=
ContextList_Add
(
ms
->
crls
,
crl
,
toReplace
);
if
(
context
)
{
context
->
hCertStore
=
store
;
...
...
@@ -238,7 +238,7 @@ static BOOL CRYPT_MemAddCtl(PWINECRYPT_CERTSTORE store, void *ctl,
TRACE
(
"(%p, %p, %p, %p)
\n
"
,
store
,
ctl
,
toReplace
,
ppStoreContext
);
context
=
(
PCTL_CONTEXT
)
ContextList_Add
(
ms
->
ctls
,
ctl
,
toReplace
);
context
=
ContextList_Add
(
ms
->
ctls
,
ctl
,
toReplace
);
if
(
context
)
{
context
->
hCertStore
=
store
;
...
...
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