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
d06a2451
Commit
d06a2451
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: Time validity nesting doesn't appear to be checked, so don't check it.
parent
03d76d97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
18 deletions
+1
-18
chain.c
dlls/crypt32/chain.c
+1
-18
No files found.
dlls/crypt32/chain.c
View file @
d06a2451
...
...
@@ -257,8 +257,7 @@ static inline BOOL CRYPT_IsSimpleChainCyclic(PCERT_SIMPLE_CHAIN chain)
static
PCCERT_CONTEXT
CRYPT_GetIssuerFromStore
(
HCERTSTORE
store
,
PCCERT_CONTEXT
cert
,
PDWORD
pdwFlags
)
{
*
pdwFlags
=
CERT_STORE_REVOCATION_FLAG
|
CERT_STORE_SIGNATURE_FLAG
|
CERT_STORE_TIME_VALIDITY_FLAG
;
*
pdwFlags
=
CERT_STORE_REVOCATION_FLAG
|
CERT_STORE_SIGNATURE_FLAG
;
return
CertGetIssuerCertificateFromStore
(
store
,
cert
,
NULL
,
pdwFlags
);
}
...
...
@@ -297,22 +296,6 @@ static BOOL CRYPT_AddCertToSimpleChain(PCertificateChainEngine engine,
if
(
dwFlags
&
CERT_STORE_SIGNATURE_FLAG
)
element
->
TrustStatus
.
dwErrorStatus
|=
CERT_TRUST_IS_NOT_SIGNATURE_VALID
;
if
(
dwFlags
&
CERT_STORE_TIME_VALIDITY_FLAG
)
element
->
TrustStatus
.
dwErrorStatus
|=
CERT_TRUST_IS_NOT_TIME_VALID
;
if
(
chain
->
cElement
)
{
PCERT_CHAIN_ELEMENT
prevElement
=
chain
->
rgpElement
[
chain
->
cElement
-
1
];
/* This cert is the issuer of the previous one in the chain, so
* retroactively check the previous one's time validity nesting.
*/
if
(
!
CertVerifyValidityNesting
(
prevElement
->
pCertContext
->
pCertInfo
,
cert
->
pCertInfo
))
prevElement
->
TrustStatus
.
dwErrorStatus
|=
CERT_TRUST_IS_NOT_TIME_NESTED
;
}
/* FIXME: check valid usages and name constraints */
/* FIXME: initialize the rest of element */
chain
->
rgpElement
[
chain
->
cElement
++
]
=
element
;
...
...
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