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
c39696eb
Commit
c39696eb
authored
Aug 30, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Aug 31, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Don't fail chain creation if signature doesn't match.
parent
1540f24e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
13 deletions
+3
-13
chain.c
dlls/crypt32/chain.c
+2
-12
chain.c
dlls/crypt32/tests/chain.c
+1
-1
No files found.
dlls/crypt32/chain.c
View file @
c39696eb
...
...
@@ -252,24 +252,14 @@ static inline BOOL CRYPT_IsSimpleChainCyclic(PCERT_SIMPLE_CHAIN chain)
}
/* Gets cert's issuer from store, and returns the validity flags associated
* with it. Returns NULL if no issuer whose public key matches cert's
* signature could be found.
* with it. Returns NULL if no issuer signature could be found.
*/
static
PCCERT_CONTEXT
CRYPT_GetIssuerFromStore
(
HCERTSTORE
store
,
PCCERT_CONTEXT
cert
,
PDWORD
pdwFlags
)
{
PCCERT_CONTEXT
issuer
=
NULL
;
/* There might be more than issuer with the same name, so keep looking until
* one produces the correct signature for this cert.
*/
do
{
*
pdwFlags
=
CERT_STORE_REVOCATION_FLAG
|
CERT_STORE_SIGNATURE_FLAG
|
CERT_STORE_TIME_VALIDITY_FLAG
;
issuer
=
CertGetIssuerCertificateFromStore
(
store
,
cert
,
issuer
,
pdwFlags
);
}
while
(
issuer
&&
(
*
pdwFlags
&
CERT_STORE_SIGNATURE_FLAG
));
return
issuer
;
return
CertGetIssuerCertificateFromStore
(
store
,
cert
,
NULL
,
pdwFlags
);
}
static
BOOL
CRYPT_AddCertToSimpleChain
(
PCertificateChainEngine
engine
,
...
...
dlls/crypt32/tests/chain.c
View file @
c39696eb
...
...
@@ -1491,7 +1491,7 @@ static ChainCheck chainCheck[] = {
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_IS_NOT_SIGNATURE_VALID
|
CERT_TRUST_IS_NOT_TIME_VALID
,
0
},
1
,
simpleStatus1
},
TODO_
CHAIN
|
TODO_
ERROR
|
TODO_INFO
},
TODO_ERROR
|
TODO_INFO
},
{
{
sizeof
(
chain2
)
/
sizeof
(
chain2
[
0
]),
chain2
},
{
{
0
,
CERT_TRUST_HAS_PREFERRED_ISSUER
},
{
CERT_TRUST_IS_UNTRUSTED_ROOT
|
CERT_TRUST_IS_NOT_TIME_VALID
,
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