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
a82b36ac
Commit
a82b36ac
authored
Sep 06, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Sep 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Store world store in chain.
parent
818634d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
chain.c
dlls/crypt32/chain.c
+3
-1
No files found.
dlls/crypt32/chain.c
View file @
a82b36ac
...
@@ -203,6 +203,7 @@ void default_chain_engine_free(void)
...
@@ -203,6 +203,7 @@ void default_chain_engine_free(void)
typedef
struct
_CertificateChain
typedef
struct
_CertificateChain
{
{
CERT_CHAIN_CONTEXT
context
;
CERT_CHAIN_CONTEXT
context
;
HCERTSTORE
world
;
LONG
ref
;
LONG
ref
;
}
CertificateChain
,
*
PCertificateChain
;
}
CertificateChain
,
*
PCertificateChain
;
...
@@ -585,6 +586,7 @@ static BOOL CRYPT_BuildCandidateChainFromCert(HCERTCHAINENGINE hChainEngine,
...
@@ -585,6 +586,7 @@ static BOOL CRYPT_BuildCandidateChainFromCert(HCERTCHAINENGINE hChainEngine,
if
(
chain
)
if
(
chain
)
{
{
chain
->
ref
=
1
;
chain
->
ref
=
1
;
chain
->
world
=
world
;
chain
->
context
.
cbSize
=
sizeof
(
CERT_CHAIN_CONTEXT
);
chain
->
context
.
cbSize
=
sizeof
(
CERT_CHAIN_CONTEXT
);
memcpy
(
&
chain
->
context
.
TrustStatus
,
&
simpleChain
->
TrustStatus
,
memcpy
(
&
chain
->
context
.
TrustStatus
,
&
simpleChain
->
TrustStatus
,
sizeof
(
CERT_TRUST_STATUS
));
sizeof
(
CERT_TRUST_STATUS
));
...
@@ -600,7 +602,6 @@ static BOOL CRYPT_BuildCandidateChainFromCert(HCERTCHAINENGINE hChainEngine,
...
@@ -600,7 +602,6 @@ static BOOL CRYPT_BuildCandidateChainFromCert(HCERTCHAINENGINE hChainEngine,
ret
=
FALSE
;
ret
=
FALSE
;
*
ppChain
=
chain
;
*
ppChain
=
chain
;
}
}
CertCloseStore
(
world
,
0
);
return
ret
;
return
ret
;
}
}
...
@@ -663,6 +664,7 @@ static void CRYPT_FreeChainContext(PCertificateChain chain)
...
@@ -663,6 +664,7 @@ static void CRYPT_FreeChainContext(PCertificateChain chain)
for
(
i
=
0
;
i
<
chain
->
context
.
cChain
;
i
++
)
for
(
i
=
0
;
i
<
chain
->
context
.
cChain
;
i
++
)
CRYPT_FreeSimpleChain
(
chain
->
context
.
rgpChain
[
i
]);
CRYPT_FreeSimpleChain
(
chain
->
context
.
rgpChain
[
i
]);
CryptMemFree
(
chain
->
context
.
rgpChain
);
CryptMemFree
(
chain
->
context
.
rgpChain
);
CertCloseStore
(
chain
->
world
,
0
);
CryptMemFree
(
chain
);
CryptMemFree
(
chain
);
}
}
...
...
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