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
2584e49b
Commit
2584e49b
authored
Sep 02, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Use CertificateChainEngine instead of HCERTCHAINENGINE in a few more places.
parent
f4ef543f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
chain.c
dlls/crypt32/chain.c
+10
-11
No files found.
dlls/crypt32/chain.c
View file @
2584e49b
...
@@ -477,7 +477,7 @@ static void CRYPT_CheckTrustedStatus(HCERTSTORE hRoot,
...
@@ -477,7 +477,7 @@ static void CRYPT_CheckTrustedStatus(HCERTSTORE hRoot,
CertFreeCertificateContext
(
trustedRoot
);
CertFreeCertificateContext
(
trustedRoot
);
}
}
static
void
CRYPT_CheckRootCert
(
HCERT
CHAINENGIN
E
hRoot
,
static
void
CRYPT_CheckRootCert
(
HCERT
STOR
E
hRoot
,
PCERT_CHAIN_ELEMENT
rootElement
)
PCERT_CHAIN_ELEMENT
rootElement
)
{
{
PCCERT_CONTEXT
root
=
rootElement
->
pCertContext
;
PCCERT_CONTEXT
root
=
rootElement
->
pCertContext
;
...
@@ -2171,11 +2171,10 @@ static BOOL CRYPT_GetSimpleChainForCert(CertificateChainEngine *engine,
...
@@ -2171,11 +2171,10 @@ static BOOL CRYPT_GetSimpleChainForCert(CertificateChainEngine *engine,
return
ret
;
return
ret
;
}
}
static
BOOL
CRYPT_BuildCandidateChainFromCert
(
HCERTCHAINENGINE
hChainE
ngine
,
static
BOOL
CRYPT_BuildCandidateChainFromCert
(
CertificateChainEngine
*
e
ngine
,
PCCERT_CONTEXT
cert
,
LPFILETIME
pTime
,
HCERTSTORE
hAdditionalStore
,
PCCERT_CONTEXT
cert
,
LPFILETIME
pTime
,
HCERTSTORE
hAdditionalStore
,
PCertificateChain
*
ppChain
)
PCertificateChain
*
ppChain
)
{
{
CertificateChainEngine
*
engine
=
(
CertificateChainEngine
*
)
hChainEngine
;
PCERT_SIMPLE_CHAIN
simpleChain
=
NULL
;
PCERT_SIMPLE_CHAIN
simpleChain
=
NULL
;
HCERTSTORE
world
;
HCERTSTORE
world
;
BOOL
ret
;
BOOL
ret
;
...
@@ -2362,13 +2361,12 @@ static PCertificateChain CRYPT_CopyChainToElement(PCertificateChain chain,
...
@@ -2362,13 +2361,12 @@ static PCertificateChain CRYPT_CopyChainToElement(PCertificateChain chain,
}
}
static
PCertificateChain
CRYPT_BuildAlternateContextFromChain
(
static
PCertificateChain
CRYPT_BuildAlternateContextFromChain
(
HCERTCHAINENGINE
hChainE
ngine
,
LPFILETIME
pTime
,
HCERTSTORE
hAdditionalStore
,
CertificateChainEngine
*
e
ngine
,
LPFILETIME
pTime
,
HCERTSTORE
hAdditionalStore
,
PCertificateChain
chain
)
PCertificateChain
chain
)
{
{
CertificateChainEngine
*
engine
=
(
CertificateChainEngine
*
)
hChainEngine
;
PCertificateChain
alternate
;
PCertificateChain
alternate
;
TRACE
(
"(%p, %s, %p, %p)
\n
"
,
hChainE
ngine
,
debugstr_filetime
(
pTime
),
TRACE
(
"(%p, %s, %p, %p)
\n
"
,
e
ngine
,
debugstr_filetime
(
pTime
),
hAdditionalStore
,
chain
);
hAdditionalStore
,
chain
);
/* Always start with the last "lower quality" chain to ensure a consistent
/* Always start with the last "lower quality" chain to ensure a consistent
...
@@ -2799,10 +2797,11 @@ BOOL WINAPI CertGetCertificateChain(HCERTCHAINENGINE hChainEngine,
...
@@ -2799,10 +2797,11 @@ BOOL WINAPI CertGetCertificateChain(HCERTCHAINENGINE hChainEngine,
PCERT_CHAIN_PARA
pChainPara
,
DWORD
dwFlags
,
LPVOID
pvReserved
,
PCERT_CHAIN_PARA
pChainPara
,
DWORD
dwFlags
,
LPVOID
pvReserved
,
PCCERT_CHAIN_CONTEXT
*
ppChainContext
)
PCCERT_CHAIN_CONTEXT
*
ppChainContext
)
{
{
CertificateChainEngine
*
engine
=
(
CertificateChainEngine
*
)
hChainEngine
;
BOOL
ret
;
BOOL
ret
;
PCertificateChain
chain
=
NULL
;
PCertificateChain
chain
=
NULL
;
TRACE
(
"(%p, %p, %s, %p, %p, %08x, %p, %p)
\n
"
,
hChainE
ngine
,
pCertContext
,
TRACE
(
"(%p, %p, %s, %p, %p, %08x, %p, %p)
\n
"
,
e
ngine
,
pCertContext
,
debugstr_filetime
(
pTime
),
hAdditionalStore
,
pChainPara
,
dwFlags
,
debugstr_filetime
(
pTime
),
hAdditionalStore
,
pChainPara
,
dwFlags
,
pvReserved
,
ppChainContext
);
pvReserved
,
ppChainContext
);
...
@@ -2819,12 +2818,12 @@ BOOL WINAPI CertGetCertificateChain(HCERTCHAINENGINE hChainEngine,
...
@@ -2819,12 +2818,12 @@ BOOL WINAPI CertGetCertificateChain(HCERTCHAINENGINE hChainEngine,
return
FALSE
;
return
FALSE
;
}
}
if
(
!
hChainE
ngine
)
if
(
!
e
ngine
)
hChainE
ngine
=
CRYPT_GetDefaultChainEngine
();
e
ngine
=
CRYPT_GetDefaultChainEngine
();
if
(
TRACE_ON
(
chain
))
if
(
TRACE_ON
(
chain
))
dump_chain_para
(
pChainPara
);
dump_chain_para
(
pChainPara
);
/* FIXME: what about HCCE_LOCAL_MACHINE? */
/* FIXME: what about HCCE_LOCAL_MACHINE? */
ret
=
CRYPT_BuildCandidateChainFromCert
(
hChainE
ngine
,
pCertContext
,
pTime
,
ret
=
CRYPT_BuildCandidateChainFromCert
(
e
ngine
,
pCertContext
,
pTime
,
hAdditionalStore
,
&
chain
);
hAdditionalStore
,
&
chain
);
if
(
ret
)
if
(
ret
)
{
{
...
@@ -2832,7 +2831,7 @@ BOOL WINAPI CertGetCertificateChain(HCERTCHAINENGINE hChainEngine,
...
@@ -2832,7 +2831,7 @@ BOOL WINAPI CertGetCertificateChain(HCERTCHAINENGINE hChainEngine,
PCERT_CHAIN_CONTEXT
pChain
;
PCERT_CHAIN_CONTEXT
pChain
;
do
{
do
{
alternate
=
CRYPT_BuildAlternateContextFromChain
(
hChainE
ngine
,
alternate
=
CRYPT_BuildAlternateContextFromChain
(
e
ngine
,
pTime
,
hAdditionalStore
,
chain
);
pTime
,
hAdditionalStore
,
chain
);
/* Alternate contexts are added as "lower quality" contexts of
/* Alternate contexts are added as "lower quality" contexts of
...
...
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