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
6aa10439
Commit
6aa10439
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: Use public APIs to empty a store.
parent
bc37988d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
store.c
dlls/crypt32/store.c
+16
-5
No files found.
dlls/crypt32/store.c
View file @
6aa10439
...
...
@@ -317,10 +317,21 @@ static BOOL CRYPT_MemDeleteCrl(PWINECRYPT_CERTSTORE store, void *pCrlContext)
return
TRUE
;
}
static
void
CRYPT_
MemEmptyStore
(
PWINE_MEM
STORE
store
)
static
void
CRYPT_
EmptyStore
(
HCERT
STORE
store
)
{
ContextList_Empty
(
store
->
certs
);
ContextList_Empty
(
store
->
crls
);
PCCERT_CONTEXT
cert
;
PCCRL_CONTEXT
crl
;
do
{
cert
=
CertEnumCertificatesInStore
(
store
,
NULL
);
if
(
cert
)
CertDeleteCertificateFromStore
(
cert
);
}
while
(
cert
);
do
{
crl
=
CertEnumCRLsInStore
(
store
,
NULL
);
if
(
crl
)
CertDeleteCRLFromStore
(
crl
);
}
while
(
crl
);
}
static
void
WINAPI
CRYPT_MemCloseStore
(
HCERTSTORE
hCertStore
,
DWORD
dwFlags
)
...
...
@@ -1359,7 +1370,7 @@ static BOOL WINAPI CRYPT_RegControl(HCERTSTORE hCertStore, DWORD dwFlags,
{
case
CERT_STORE_CTRL_RESYNC
:
CRYPT_RegFlushStore
(
store
,
FALSE
);
CRYPT_
MemEmptyStore
((
PWINE_MEMSTORE
)
store
->
memStore
);
CRYPT_
EmptyStore
(
store
->
memStore
);
CRYPT_RegReadFromReg
(
store
);
ret
=
TRUE
;
break
;
...
...
@@ -1758,7 +1769,7 @@ static BOOL WINAPI CRYPT_FileControl(HCERTSTORE hCertStore, DWORD dwFlags,
switch
(
dwCtrlType
)
{
case
CERT_STORE_CTRL_RESYNC
:
CRYPT_
MemEmptyStore
((
PWINE_MEMSTORE
)
store
->
memStore
);
CRYPT_
EmptyStore
(
store
->
memStore
);
CRYPT_ReadSerializedFile
(
store
->
file
,
store
);
ret
=
TRUE
;
break
;
...
...
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