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
6cf1e0d7
Commit
6cf1e0d7
authored
Oct 17, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Get rid of no longer needed contextSize arguments.
parent
6b6ad982
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
23 deletions
+18
-23
collectionstore.c
dlls/crypt32/collectionstore.c
+18
-23
No files found.
dlls/crypt32/collectionstore.c
View file @
6cf1e0d7
...
...
@@ -72,7 +72,7 @@ static DWORD Collection_release(WINECRYPT_CERTSTORE *store, DWORD flags)
}
static
context_t
*
CRYPT_CollectionCreateContextFromChild
(
WINE_COLLECTIONSTORE
*
store
,
WINE_STORE_LIST_ENTRY
*
storeEntry
,
context_t
*
child
,
size_t
contextSize
)
WINE_STORE_LIST_ENTRY
*
storeEntry
,
context_t
*
child
)
{
context_t
*
ret
;
...
...
@@ -85,15 +85,14 @@ static context_t *CRYPT_CollectionCreateContextFromChild(WINE_COLLECTIONSTORE *s
}
static
BOOL
CRYPT_CollectionAddContext
(
WINE_COLLECTIONSTORE
*
store
,
unsigned
int
contextFuncsOffset
,
context_t
*
context
,
context_t
*
toReplace
,
unsigned
int
contextSize
,
unsigned
int
contextFuncsOffset
,
context_t
*
context
,
context_t
*
toReplace
,
context_t
**
pChildContext
)
{
BOOL
ret
;
context_t
*
childContext
=
NULL
;
WINE_STORE_LIST_ENTRY
*
storeEntry
=
NULL
;
TRACE
(
"(%p, %d, %p, %p, %d)
\n
"
,
store
,
contextFuncsOffset
,
context
,
toReplace
,
contextSize
);
TRACE
(
"(%p, %d, %p, %p)
\n
"
,
store
,
contextFuncsOffset
,
context
,
toReplace
);
ret
=
FALSE
;
if
(
toReplace
)
...
...
@@ -143,7 +142,7 @@ static BOOL CRYPT_CollectionAddContext(WINE_COLLECTIONSTORE *store,
*/
static
context_t
*
CRYPT_CollectionAdvanceEnum
(
WINE_COLLECTIONSTORE
*
store
,
WINE_STORE_LIST_ENTRY
*
storeEntry
,
const
CONTEXT_FUNCS
*
contextFuncs
,
const
WINE_CONTEXT_INTERFACE
*
contextInterface
,
context_t
*
prev
,
size_t
contextSize
)
const
WINE_CONTEXT_INTERFACE
*
contextInterface
,
context_t
*
prev
)
{
context_t
*
child
,
*
ret
;
struct
list
*
storeNext
=
list_next
(
&
store
->
stores
,
&
storeEntry
->
entry
);
...
...
@@ -166,7 +165,7 @@ static context_t *CRYPT_CollectionAdvanceEnum(WINE_COLLECTIONSTORE *store,
child
=
contextFuncs
->
enumContext
(
storeEntry
->
store
,
NULL
);
}
if
(
child
)
{
ret
=
CRYPT_CollectionCreateContextFromChild
(
store
,
storeEntry
,
child
,
contextSize
);
ret
=
CRYPT_CollectionCreateContextFromChild
(
store
,
storeEntry
,
child
);
Context_Release
(
child
);
}
else
...
...
@@ -183,7 +182,7 @@ static context_t *CRYPT_CollectionAdvanceEnum(WINE_COLLECTIONSTORE *store,
(
CONTEXT_FUNCS
*
)((
LPBYTE
)
storeNextEntry
->
store
->
vtbl
+
offset
);
ret
=
CRYPT_CollectionAdvanceEnum
(
store
,
storeNextEntry
,
storeNextContexts
,
contextInterface
,
NULL
,
contextSize
);
storeNextContexts
,
contextInterface
,
NULL
);
}
else
{
...
...
@@ -203,12 +202,12 @@ static BOOL Collection_addCert(WINECRYPT_CERTSTORE *store, context_t *cert,
WINE_COLLECTIONSTORE
*
cs
=
(
WINE_COLLECTIONSTORE
*
)
store
;
ret
=
CRYPT_CollectionAddContext
(
cs
,
offsetof
(
store_vtbl_t
,
certs
),
cert
,
toReplace
,
sizeof
(
CERT_CONTEXT
),
&
childContext
);
cert
,
toReplace
,
&
childContext
);
if
(
ppStoreContext
&&
childContext
)
{
WINE_STORE_LIST_ENTRY
*
storeEntry
=
childContext
->
u
.
ptr
;
cert_t
*
context
=
(
cert_t
*
)
CRYPT_CollectionCreateContextFromChild
(
cs
,
storeEntry
,
childContext
,
sizeof
(
CERT_CONTEXT
)
);
childContext
);
*
ppStoreContext
=
&
context
->
base
;
}
...
...
@@ -230,8 +229,7 @@ static context_t *Collection_enumCert(WINECRYPT_CERTSTORE *store, context_t *pre
WINE_STORE_LIST_ENTRY
*
storeEntry
=
prev
->
u
.
ptr
;
ret
=
CRYPT_CollectionAdvanceEnum
(
cs
,
storeEntry
,
&
storeEntry
->
store
->
vtbl
->
certs
,
pCertInterface
,
prev
,
sizeof
(
CERT_CONTEXT
));
&
storeEntry
->
store
->
vtbl
->
certs
,
pCertInterface
,
prev
);
}
else
{
...
...
@@ -241,8 +239,7 @@ static context_t *Collection_enumCert(WINECRYPT_CERTSTORE *store, context_t *pre
WINE_STORE_LIST_ENTRY
,
entry
);
ret
=
CRYPT_CollectionAdvanceEnum
(
cs
,
storeEntry
,
&
storeEntry
->
store
->
vtbl
->
certs
,
pCertInterface
,
NULL
,
sizeof
(
CERT_CONTEXT
));
&
storeEntry
->
store
->
vtbl
->
certs
,
pCertInterface
,
NULL
);
}
else
{
...
...
@@ -277,12 +274,12 @@ static BOOL Collection_addCRL(WINECRYPT_CERTSTORE *store, context_t *crl,
WINE_COLLECTIONSTORE
*
cs
=
(
WINE_COLLECTIONSTORE
*
)
store
;
ret
=
CRYPT_CollectionAddContext
(
cs
,
offsetof
(
store_vtbl_t
,
crls
),
crl
,
toReplace
,
sizeof
(
CRL_CONTEXT
),
&
childContext
);
crl
,
toReplace
,
&
childContext
);
if
(
ppStoreContext
&&
childContext
)
{
WINE_STORE_LIST_ENTRY
*
storeEntry
=
childContext
->
u
.
ptr
;
crl_t
*
context
=
(
crl_t
*
)
CRYPT_CollectionCreateContextFromChild
(
cs
,
storeEntry
,
childContext
,
sizeof
(
CRL_CONTEXT
)
);
childContext
);
*
ppStoreContext
=
&
context
->
base
;
}
...
...
@@ -304,7 +301,7 @@ static context_t *Collection_enumCRL(WINECRYPT_CERTSTORE *store, context_t *prev
WINE_STORE_LIST_ENTRY
*
storeEntry
=
prev
->
u
.
ptr
;
ret
=
CRYPT_CollectionAdvanceEnum
(
cs
,
storeEntry
,
&
storeEntry
->
store
->
vtbl
->
crls
,
pCRLInterface
,
prev
,
sizeof
(
CRL_CONTEXT
)
);
&
storeEntry
->
store
->
vtbl
->
crls
,
pCRLInterface
,
prev
);
}
else
{
...
...
@@ -314,8 +311,7 @@ static context_t *Collection_enumCRL(WINECRYPT_CERTSTORE *store, context_t *prev
WINE_STORE_LIST_ENTRY
,
entry
);
ret
=
CRYPT_CollectionAdvanceEnum
(
cs
,
storeEntry
,
&
storeEntry
->
store
->
vtbl
->
crls
,
pCRLInterface
,
NULL
,
sizeof
(
CRL_CONTEXT
));
&
storeEntry
->
store
->
vtbl
->
crls
,
pCRLInterface
,
NULL
);
}
else
{
...
...
@@ -349,12 +345,12 @@ static BOOL Collection_addCTL(WINECRYPT_CERTSTORE *store, context_t *ctl,
WINE_COLLECTIONSTORE
*
cs
=
(
WINE_COLLECTIONSTORE
*
)
store
;
ret
=
CRYPT_CollectionAddContext
(
cs
,
offsetof
(
store_vtbl_t
,
ctls
),
ctl
,
toReplace
,
sizeof
(
CTL_CONTEXT
),
&
childContext
);
ctl
,
toReplace
,
&
childContext
);
if
(
ppStoreContext
&&
childContext
)
{
WINE_STORE_LIST_ENTRY
*
storeEntry
=
childContext
->
u
.
ptr
;
ctl_t
*
context
=
(
ctl_t
*
)
CRYPT_CollectionCreateContextFromChild
(
cs
,
storeEntry
,
childContext
,
sizeof
(
CTL_CONTEXT
)
);
childContext
);
*
ppStoreContext
=
&
context
->
base
;
}
...
...
@@ -376,7 +372,7 @@ static context_t *Collection_enumCTL(WINECRYPT_CERTSTORE *store, context_t *prev
WINE_STORE_LIST_ENTRY
*
storeEntry
=
prev
->
u
.
ptr
;
ret
=
CRYPT_CollectionAdvanceEnum
(
cs
,
storeEntry
,
&
storeEntry
->
store
->
vtbl
->
ctls
,
pCTLInterface
,
prev
,
sizeof
(
CTL_CONTEXT
)
);
&
storeEntry
->
store
->
vtbl
->
ctls
,
pCTLInterface
,
prev
);
}
else
{
...
...
@@ -386,8 +382,7 @@ static context_t *Collection_enumCTL(WINECRYPT_CERTSTORE *store, context_t *prev
WINE_STORE_LIST_ENTRY
,
entry
);
ret
=
CRYPT_CollectionAdvanceEnum
(
cs
,
storeEntry
,
&
storeEntry
->
store
->
vtbl
->
ctls
,
pCTLInterface
,
NULL
,
sizeof
(
CTL_CONTEXT
));
&
storeEntry
->
store
->
vtbl
->
ctls
,
pCTLInterface
,
NULL
);
}
else
{
...
...
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