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
f68036ce
Commit
f68036ce
authored
Aug 16, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Aug 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Rename a confusing type.
parent
c78b8a17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
store.c
dlls/crypt32/store.c
+20
-20
No files found.
dlls/crypt32/store.c
View file @
f68036ce
...
...
@@ -107,12 +107,12 @@ typedef BOOL (*AddFunc)(struct WINE_CRYPTCERTSTORE *store, void *context,
typedef
BOOL
(
*
DeleteFunc
)(
struct
WINE_CRYPTCERTSTORE
*
store
,
void
*
context
);
typedef
struct
_CONTEXT_
STORE
typedef
struct
_CONTEXT_
FUNCS
{
AddFunc
addContext
;
EnumFunc
enumContext
;
DeleteFunc
deleteContext
;
}
CONTEXT_
STORE
,
*
PCONTEXT_STORE
;
}
CONTEXT_
FUNCS
,
*
PCONTEXT_FUNCS
;
typedef
enum
_CertStoreType
{
StoreTypeMem
,
...
...
@@ -135,8 +135,8 @@ typedef struct WINE_CRYPTCERTSTORE
HCRYPTPROV
cryptProv
;
CertStoreType
type
;
PFN_CERT_STORE_PROV_CLOSE
closeStore
;
CONTEXT_
STORE
certs
;
CONTEXT_
STORE
crls
;
CONTEXT_
FUNCS
certs
;
CONTEXT_
FUNCS
crls
;
PFN_CERT_STORE_PROV_CONTROL
control
;
/* optional */
PCONTEXT_PROPERTY_LIST
properties
;
}
WINECRYPT_CERTSTORE
,
*
PWINECRYPT_CERTSTORE
;
...
...
@@ -406,28 +406,28 @@ static void *CRYPT_CollectionCreateContextFromChild(PWINE_COLLECTIONSTORE store,
}
static
BOOL
CRYPT_CollectionAddContext
(
PWINE_COLLECTIONSTORE
store
,
unsigned
int
context
Store
Offset
,
void
*
context
,
void
*
toReplace
,
unsigned
int
contextSize
,
unsigned
int
context
Funcs
Offset
,
void
*
context
,
void
*
toReplace
,
unsigned
int
contextSize
,
void
**
pChildContext
)
{
BOOL
ret
;
void
*
childContext
=
NULL
;
PWINE_STORE_LIST_ENTRY
storeEntry
=
NULL
;
TRACE
(
"(%p, %d, %p, %p, %d)
\n
"
,
store
,
context
Store
Offset
,
context
,
TRACE
(
"(%p, %d, %p, %p, %d)
\n
"
,
store
,
context
Funcs
Offset
,
context
,
toReplace
,
contextSize
);
ret
=
FALSE
;
if
(
toReplace
)
{
void
*
existingLinked
=
Context_GetLinkedContext
(
toReplace
,
contextSize
);
PCONTEXT_
STORE
contextStore
;
PCONTEXT_
FUNCS
contextFuncs
;
storeEntry
=
*
(
PWINE_STORE_LIST_ENTRY
*
)
Context_GetExtra
(
toReplace
,
contextSize
);
context
Store
=
(
PCONTEXT_STORE
)((
LPBYTE
)
storeEntry
->
store
+
context
Store
Offset
);
ret
=
context
Store
->
addContext
(
storeEntry
->
store
,
context
,
existingLinked
,
(
const
void
**
)
&
childContext
);
context
Funcs
=
(
PCONTEXT_FUNCS
)((
LPBYTE
)
storeEntry
->
store
+
context
Funcs
Offset
);
ret
=
context
Funcs
->
addContext
(
storeEntry
->
store
,
context
,
existingLinked
,
childContext
);
}
else
{
...
...
@@ -439,11 +439,11 @@ static BOOL CRYPT_CollectionAddContext(PWINE_COLLECTIONSTORE store,
{
if
(
entry
->
dwUpdateFlags
&
CERT_PHYSICAL_STORE_ADD_ENABLE_FLAG
)
{
PCONTEXT_
STORE
contextStore
=
(
PCONTEXT_STORE
)(
(
LPBYTE
)
entry
->
store
+
context
Store
Offset
);
PCONTEXT_
FUNCS
contextFuncs
=
(
PCONTEXT_FUNCS
)(
(
LPBYTE
)
entry
->
store
+
context
Funcs
Offset
);
storeEntry
=
entry
;
ret
=
context
Store
->
addContext
(
entry
->
store
,
context
,
NULL
,
ret
=
context
Funcs
->
addContext
(
entry
->
store
,
context
,
NULL
,
(
const
void
**
)
&
childContext
);
break
;
}
...
...
@@ -466,13 +466,13 @@ static BOOL CRYPT_CollectionAddContext(PWINE_COLLECTIONSTORE store,
* Assumes the collection store's lock is held.
*/
static
void
*
CRYPT_CollectionAdvanceEnum
(
PWINE_COLLECTIONSTORE
store
,
PWINE_STORE_LIST_ENTRY
storeEntry
,
size_t
context
Store
Offset
,
PWINE_STORE_LIST_ENTRY
storeEntry
,
size_t
context
Funcs
Offset
,
PCWINE_CONTEXT_INTERFACE
contextInterface
,
void
*
pPrev
,
size_t
contextSize
)
{
void
*
ret
,
*
child
;
struct
list
*
storeNext
=
list_next
(
&
store
->
stores
,
&
storeEntry
->
entry
);
PCONTEXT_
STORE
contextStore
=
(
PCONTEXT_STORE
)((
LPBYTE
)
storeEntry
->
store
+
context
Store
Offset
);
PCONTEXT_
FUNCS
contextFuncs
=
(
PCONTEXT_FUNCS
)((
LPBYTE
)
storeEntry
->
store
+
context
Funcs
Offset
);
TRACE
(
"(%p, %p, %p)
\n
"
,
store
,
storeEntry
,
pPrev
);
...
...
@@ -483,12 +483,12 @@ static void *CRYPT_CollectionAdvanceEnum(PWINE_COLLECTIONSTORE store,
*/
child
=
Context_GetLinkedContext
(
pPrev
,
contextSize
);
contextInterface
->
duplicate
(
child
);
child
=
context
Store
->
enumContext
(
storeEntry
->
store
,
child
);
child
=
context
Funcs
->
enumContext
(
storeEntry
->
store
,
child
);
contextInterface
->
free
(
pPrev
);
pPrev
=
NULL
;
}
else
child
=
context
Store
->
enumContext
(
storeEntry
->
store
,
NULL
);
child
=
context
Funcs
->
enumContext
(
storeEntry
->
store
,
NULL
);
if
(
child
)
ret
=
CRYPT_CollectionCreateContextFromChild
(
store
,
storeEntry
,
child
,
contextSize
,
FALSE
);
...
...
@@ -496,7 +496,7 @@ static void *CRYPT_CollectionAdvanceEnum(PWINE_COLLECTIONSTORE store,
{
if
(
storeNext
)
ret
=
CRYPT_CollectionAdvanceEnum
(
store
,
LIST_ENTRY
(
storeNext
,
WINE_STORE_LIST_ENTRY
,
entry
),
context
Store
Offset
,
WINE_STORE_LIST_ENTRY
,
entry
),
context
Funcs
Offset
,
contextInterface
,
NULL
,
contextSize
);
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