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
67de946c
Commit
67de946c
authored
Jan 11, 2023
by
Paul Gofman
Committed by
Alexandre Julliard
Jan 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptnet: Check cached revocation status in verify_cert_revocation().
parent
c23c43e9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
cryptnet_main.c
dlls/cryptnet/cryptnet_main.c
+6
-3
No files found.
dlls/cryptnet/cryptnet_main.c
View file @
67de946c
...
...
@@ -1696,9 +1696,6 @@ static DWORD verify_cert_revocation_from_dist_points_ext(const CRYPT_DATA_BLOB *
return
CRYPT_E_REVOCATION_OFFLINE
;
}
if
(
find_cached_revocation_status
(
&
cert
->
pCertInfo
->
SerialNumber
,
time
,
status
))
return
status
->
dwError
;
if
(
!
CRYPT_GetUrlFromCRLDistPointsExt
(
value
,
NULL
,
&
url_array_size
,
NULL
,
NULL
))
return
GetLastError
();
...
...
@@ -2146,6 +2143,12 @@ static DWORD verify_cert_revocation(const CERT_CONTEXT *cert, FILETIME *pTime,
DWORD
error
=
ERROR_SUCCESS
;
PCERT_EXTENSION
ext
;
if
(
find_cached_revocation_status
(
&
cert
->
pCertInfo
->
SerialNumber
,
pTime
,
pRevStatus
))
{
if
(
pRevStatus
->
dwError
==
ERROR_SUCCESS
||
pRevStatus
->
dwError
==
CRYPT_E_REVOKED
)
return
pRevStatus
->
dwError
;
}
if
((
ext
=
CertFindExtension
(
szOID_AUTHORITY_INFO_ACCESS
,
cert
->
pCertInfo
->
cExtension
,
cert
->
pCertInfo
->
rgExtension
)))
{
error
=
verify_cert_revocation_from_aia_ext
(
&
ext
->
Value
,
cert
,
pTime
,
dwFlags
,
pRevPara
,
pRevStatus
);
...
...
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