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
60ddb136
Commit
60ddb136
authored
Nov 30, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Dec 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptnet: If the caller specifies the location of a CRL, check a cert's…
cryptnet: If the caller specifies the location of a CRL, check a cert's revocation status against it.
parent
44e4ac21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
cryptnet_main.c
dlls/cryptnet/cryptnet_main.c
+28
-2
No files found.
dlls/cryptnet/cryptnet_main.c
View file @
60ddb136
...
...
@@ -1582,8 +1582,34 @@ static DWORD verify_cert_revocation(PCCERT_CONTEXT cert, DWORD index,
0
,
NULL
,
&
cbUrlArray
,
NULL
,
NULL
,
NULL
);
if
(
!
ret
&&
GetLastError
()
==
CRYPT_E_NOT_FOUND
)
{
error
=
CRYPT_E_NO_REVOCATION_CHECK
;
pRevStatus
->
dwIndex
=
index
;
if
(
pRevPara
&&
pRevPara
->
hCrlStore
&&
pRevPara
->
pIssuerCert
)
{
PCCRL_CONTEXT
crl
;
/* If the caller was helpful enough to tell us where to find a CRL
* for the cert, look for one and check it.
*/
crl
=
CertFindCRLInStore
(
pRevPara
->
hCrlStore
,
cert
->
dwCertEncodingType
,
CRL_FIND_ISSUED_BY_SIGNATURE_FLAG
|
CRL_FIND_ISSUED_BY_AKI_FLAG
,
CRL_FIND_ISSUED_BY
,
pRevPara
->
pIssuerCert
,
NULL
);
if
(
crl
)
{
error
=
verify_cert_revocation_with_crl
(
cert
,
crl
,
index
,
pTime
,
pRevStatus
);
CertFreeCRLContext
(
crl
);
}
else
{
error
=
CRYPT_E_NO_REVOCATION_CHECK
;
pRevStatus
->
dwIndex
=
index
;
}
}
else
{
error
=
CRYPT_E_NO_REVOCATION_CHECK
;
pRevStatus
->
dwIndex
=
index
;
}
}
else
if
(
ret
)
{
...
...
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