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
4553e6d1
Commit
4553e6d1
authored
Oct 15, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Get rid of no longer needed Context_GetLinkedContext.
parent
6ab42936
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
23 deletions
+23
-23
collectionstore.c
dlls/crypt32/collectionstore.c
+23
-20
crypt32_private.h
dlls/crypt32/crypt32_private.h
+0
-3
No files found.
dlls/crypt32/collectionstore.c
View file @
4553e6d1
...
...
@@ -98,14 +98,14 @@ static BOOL CRYPT_CollectionAddContext(WINE_COLLECTIONSTORE *store,
ret
=
FALSE
;
if
(
toReplace
)
{
void
*
existingLinked
=
Context_GetLinkedContext
(
toReplace
)
;
context_t
*
existingLinked
=
context_from_ptr
(
toReplace
)
->
linked
;
CONTEXT_FUNCS
*
contextFuncs
;
storeEntry
=
context_from_ptr
(
toReplace
)
->
u
.
ptr
;
contextFuncs
=
(
CONTEXT_FUNCS
*
)((
LPBYTE
)
storeEntry
->
store
->
vtbl
+
contextFuncsOffset
);
ret
=
contextFuncs
->
addContext
(
storeEntry
->
store
,
context
,
existingLinked
,
(
const
void
**
)
&
childContext
);
context_ptr
(
existingLinked
)
,
(
const
void
**
)
&
childContext
);
}
else
{
...
...
@@ -147,7 +147,8 @@ static void *CRYPT_CollectionAdvanceEnum(WINE_COLLECTIONSTORE *store,
WINE_STORE_LIST_ENTRY
*
storeEntry
,
const
CONTEXT_FUNCS
*
contextFuncs
,
const
WINE_CONTEXT_INTERFACE
*
contextInterface
,
void
*
pPrev
,
size_t
contextSize
)
{
void
*
ret
,
*
child
;
context_t
*
child
;
void
*
ret
,
*
tmp
;
struct
list
*
storeNext
=
list_next
(
&
store
->
stores
,
&
storeEntry
->
entry
);
TRACE
(
"(%p, %p, %p)
\n
"
,
store
,
storeEntry
,
pPrev
);
...
...
@@ -157,17 +158,21 @@ static void *CRYPT_CollectionAdvanceEnum(WINE_COLLECTIONSTORE *store,
/* Ref-counting funny business: "duplicate" (addref) the child, because
* the free(pPrev) below can cause the ref count to become negative.
*/
child
=
Context_GetLinkedContext
(
pPrev
);
Context_AddRef
(
context_from_ptr
(
child
));
child
=
contextFuncs
->
enumContext
(
storeEntry
->
store
,
child
);
child
=
context_from_ptr
(
pPrev
)
->
linked
;
Context_AddRef
(
child
);
tmp
=
contextFuncs
->
enumContext
(
storeEntry
->
store
,
context_ptr
(
child
));
child
=
tmp
?
context_from_ptr
(
tmp
)
:
NULL
;
Context_Release
(
context_from_ptr
(
pPrev
));
pPrev
=
NULL
;
}
else
child
=
contextFuncs
->
enumContext
(
storeEntry
->
store
,
NULL
);
{
tmp
=
contextFuncs
->
enumContext
(
storeEntry
->
store
,
NULL
);
child
=
tmp
?
context_from_ptr
(
tmp
)
:
NULL
;
}
if
(
child
)
{
ret
=
CRYPT_CollectionCreateContextFromChild
(
store
,
storeEntry
,
c
ontext_from_ptr
(
child
)
,
contextSize
);
Context_Release
(
c
ontext_from_ptr
(
child
)
);
ret
=
CRYPT_CollectionCreateContextFromChild
(
store
,
storeEntry
,
c
hild
,
contextSize
);
Context_Release
(
c
hild
);
}
else
{
...
...
@@ -259,13 +264,13 @@ static void *Collection_enumCert(WINECRYPT_CERTSTORE *store, void *pPrev)
static
BOOL
Collection_deleteCert
(
WINECRYPT_CERTSTORE
*
store
,
context_t
*
context
)
{
cert_t
*
cert
=
(
cert_t
*
)
context
;
cert_t
*
linked
;
BOOL
ret
;
PCCERT_CONTEXT
linked
;
TRACE
(
"(%p, %p)
\n
"
,
store
,
cert
);
linked
=
Context_GetLinkedContext
(
&
cert
->
ctx
)
;
ret
=
CertDeleteCertificateFromStore
(
linked
);
linked
=
(
cert_t
*
)
context
->
linked
;
ret
=
CertDeleteCertificateFromStore
(
&
linked
->
ctx
);
Context_Release
(
&
cert
->
base
);
return
ret
;
}
...
...
@@ -332,14 +337,13 @@ static void *Collection_enumCRL(WINECRYPT_CERTSTORE *store, void *pPrev)
static
BOOL
Collection_deleteCRL
(
WINECRYPT_CERTSTORE
*
store
,
context_t
*
context
)
{
crl_t
*
crl
=
(
crl_t
*
)
context
;
crl_t
*
crl
=
(
crl_t
*
)
context
,
*
linked
;
BOOL
ret
;
PCCRL_CONTEXT
linked
;
TRACE
(
"(%p, %p)
\n
"
,
store
,
crl
);
linked
=
Context_GetLinkedContext
(
&
crl
->
ctx
)
;
ret
=
CertDeleteCRLFromStore
(
linked
);
linked
=
(
crl_t
*
)
context
->
linked
;
ret
=
CertDeleteCRLFromStore
(
&
linked
->
ctx
);
Context_Release
(
&
crl
->
base
);
return
ret
;
}
...
...
@@ -406,14 +410,13 @@ static void *Collection_enumCTL(WINECRYPT_CERTSTORE *store, void *pPrev)
static
BOOL
Collection_deleteCTL
(
WINECRYPT_CERTSTORE
*
store
,
context_t
*
context
)
{
ctl_t
*
ctl
=
(
ctl_t
*
)
context
;
ctl_t
*
ctl
=
(
ctl_t
*
)
context
,
*
linked
;
BOOL
ret
;
PCCTL_CONTEXT
linked
;
TRACE
(
"(%p, %p)
\n
"
,
store
,
ctl
);
linked
=
Context_GetLinkedContext
(
&
ctl
->
ctx
)
;
ret
=
CertDeleteCTLFromStore
(
linked
);
linked
=
(
ctl_t
*
)
context
->
linked
;
ret
=
CertDeleteCTLFromStore
(
&
linked
->
ctx
);
Context_Release
(
&
ctl
->
base
);
return
ret
;
}
...
...
dlls/crypt32/crypt32_private.h
View file @
4553e6d1
...
...
@@ -402,9 +402,6 @@ void *Context_CreateDataContext(size_t contextSize, const context_vtbl_t *vtbl)
*/
context_t
*
Context_CreateLinkContext
(
unsigned
contextSize
,
context_t
*
linked
)
DECLSPEC_HIDDEN
;
/* Gets the context linked to by context, which must be a link context. */
void
*
Context_GetLinkedContext
(
void
*
)
DECLSPEC_HIDDEN
;
/* Copies properties from fromContext to toContext. */
void
Context_CopyProperties
(
const
void
*
to
,
const
void
*
from
)
DECLSPEC_HIDDEN
;
...
...
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