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
6b6ad982
Commit
6b6ad982
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 fields in ContextList.
parent
619bbe5d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
14 deletions
+5
-14
context.c
dlls/crypt32/context.c
+1
-6
crypt32_private.h
dlls/crypt32/crypt32_private.h
+1
-2
store.c
dlls/crypt32/store.c
+3
-6
No files found.
dlls/crypt32/context.c
View file @
6b6ad982
...
...
@@ -112,21 +112,16 @@ void Context_CopyProperties(const void *to, const void *from)
struct
ContextList
{
const
WINE_CONTEXT_INTERFACE
*
contextInterface
;
size_t
contextSize
;
CRITICAL_SECTION
cs
;
struct
list
contexts
;
};
struct
ContextList
*
ContextList_Create
(
const
WINE_CONTEXT_INTERFACE
*
contextInterface
,
size_t
contextSize
)
struct
ContextList
*
ContextList_Create
(
void
)
{
struct
ContextList
*
list
=
CryptMemAlloc
(
sizeof
(
struct
ContextList
));
if
(
list
)
{
list
->
contextInterface
=
contextInterface
;
list
->
contextSize
=
contextSize
;
InitializeCriticalSection
(
&
list
->
cs
);
list
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": ContextList.cs"
);
list_init
(
&
list
->
contexts
);
...
...
dlls/crypt32/crypt32_private.h
View file @
6b6ad982
...
...
@@ -438,8 +438,7 @@ void ContextPropertyList_Free(CONTEXT_PROPERTY_LIST *list) DECLSPEC_HIDDEN;
*/
struct
ContextList
;
struct
ContextList
*
ContextList_Create
(
const
WINE_CONTEXT_INTERFACE
*
contextInterface
,
size_t
contextSize
)
DECLSPEC_HIDDEN
;
struct
ContextList
*
ContextList_Create
(
void
)
DECLSPEC_HIDDEN
;
context_t
*
ContextList_Add
(
struct
ContextList
*
list
,
context_t
*
toLink
,
context_t
*
toReplace
,
struct
WINE_CRYPTCERTSTORE
*
store
,
BOOL
use_link
)
DECLSPEC_HIDDEN
;
...
...
dlls/crypt32/store.c
View file @
6b6ad982
...
...
@@ -345,12 +345,9 @@ static WINECRYPT_CERTSTORE *CRYPT_MemOpenStore(HCRYPTPROV hCryptProv,
{
memset
(
store
,
0
,
sizeof
(
WINE_MEMSTORE
));
CRYPT_InitStore
(
&
store
->
hdr
,
dwFlags
,
StoreTypeMem
,
&
MemStoreVtbl
);
store
->
certs
=
ContextList_Create
(
pCertInterface
,
sizeof
(
CERT_CONTEXT
));
store
->
crls
=
ContextList_Create
(
pCRLInterface
,
sizeof
(
CRL_CONTEXT
));
store
->
ctls
=
ContextList_Create
(
pCTLInterface
,
sizeof
(
CTL_CONTEXT
));
store
->
certs
=
ContextList_Create
();
store
->
crls
=
ContextList_Create
();
store
->
ctls
=
ContextList_Create
();
/* Mem store doesn't need crypto provider, so close it */
if
(
hCryptProv
&&
!
(
dwFlags
&
CERT_STORE_NO_CRYPT_RELEASE_FLAG
))
CryptReleaseContext
(
hCryptProv
,
0
);
...
...
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