Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b13d16a0
Commit
b13d16a0
authored
Sep 12, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Sep 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Implement SoftpubCleanup.
parent
f9ebe5ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletion
+36
-1
softpub.c
dlls/wintrust/softpub.c
+35
-0
wintrust.spec
dlls/wintrust/wintrust.spec
+1
-1
No files found.
dlls/wintrust/softpub.c
View file @
b13d16a0
...
...
@@ -569,3 +569,38 @@ HRESULT WINAPI WintrustCertificateTrust(CRYPT_PROVIDER_DATA *data)
GetLastError
();
return
ret
?
S_OK
:
S_FALSE
;
}
HRESULT
WINAPI
SoftpubCleanup
(
CRYPT_PROVIDER_DATA
*
data
)
{
DWORD
i
,
j
;
for
(
i
=
0
;
i
<
data
->
csSigners
;
i
++
)
{
for
(
j
=
0
;
j
<
data
->
pasSigners
[
i
].
csCertChain
;
j
++
)
CertFreeCertificateContext
(
data
->
pasSigners
[
i
].
pasCertChain
[
j
].
pCert
);
data
->
psPfns
->
pfnFree
(
data
->
pasSigners
[
i
].
pasCertChain
);
data
->
psPfns
->
pfnFree
(
data
->
pasSigners
[
i
].
psSigner
);
CertFreeCertificateChain
(
data
->
pasSigners
[
i
].
pChainContext
);
}
data
->
psPfns
->
pfnFree
(
data
->
pasSigners
);
for
(
i
=
0
;
i
<
data
->
chStores
;
i
++
)
CertCloseStore
(
data
->
pahStores
[
i
],
0
);
data
->
psPfns
->
pfnFree
(
data
->
pahStores
);
if
(
data
->
u
.
pPDSip
)
{
data
->
psPfns
->
pfnFree
(
data
->
u
.
pPDSip
->
pSip
);
data
->
psPfns
->
pfnFree
(
data
->
u
.
pPDSip
->
pCATSip
);
data
->
psPfns
->
pfnFree
(
data
->
u
.
pPDSip
->
psSipSubjectInfo
);
data
->
psPfns
->
pfnFree
(
data
->
u
.
pPDSip
->
psSipCATSubjectInfo
);
data
->
psPfns
->
pfnFree
(
data
->
u
.
pPDSip
->
psIndirectData
);
}
CryptMsgClose
(
data
->
hMsg
);
if
(
data
->
fOpenedFile
)
CloseHandle
(
data
->
pWintrustData
->
u
.
pFile
->
hFile
);
return
S_OK
;
}
dlls/wintrust/wintrust.spec
View file @
b13d16a0
...
...
@@ -58,7 +58,7 @@
@ stub OpenPersonalTrustDBDialog
@ stub SoftpubAuthenticode
@ stdcall SoftpubCheckCert(ptr long long long)
@ st
ub SoftpubCleanup
@ st
dcall SoftpubCleanup(ptr)
@ stub SoftpubDefCertInit
@ stdcall SoftpubDllRegisterServer()
@ stdcall SoftpubDllUnregisterServer()
...
...
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