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
8fcaa52d
Commit
8fcaa52d
authored
Nov 18, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Nov 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Add support for CRL_FIND_ISSUED_BY_AKI_FLAG to CertFindCRLInStore.
parent
b2781556
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
crl.c
dlls/crypt32/crl.c
+25
-0
crl.c
dlls/crypt32/tests/crl.c
+0
-2
No files found.
dlls/crypt32/crl.c
View file @
8fcaa52d
...
...
@@ -121,6 +121,31 @@ static BOOL compare_crl_issued_by(PCCRL_CONTEXT pCrlContext, DWORD dwType,
issuer
->
dwCertEncodingType
,
CRYPT_VERIFY_CERT_SIGN_SUBJECT_CRL
,
(
void
*
)
pCrlContext
,
CRYPT_VERIFY_CERT_SIGN_ISSUER_CERT
,
(
void
*
)
issuer
,
0
,
NULL
);
if
(
ret
&&
(
dwFlags
&
CRL_FIND_ISSUED_BY_AKI_FLAG
))
{
PCERT_EXTENSION
aki
=
CertFindExtension
(
szOID_AUTHORITY_KEY_IDENTIFIER2
,
pCrlContext
->
pCrlInfo
->
cExtension
,
pCrlContext
->
pCrlInfo
->
rgExtension
);
if
(
aki
)
{
CERT_EXTENSION
*
ski
;
if
((
ski
=
CertFindExtension
(
szOID_SUBJECT_KEY_IDENTIFIER
,
issuer
->
pCertInfo
->
cExtension
,
issuer
->
pCertInfo
->
rgExtension
)))
{
if
(
aki
->
Value
.
cbData
==
ski
->
Value
.
cbData
)
ret
=
!
memcmp
(
aki
->
Value
.
pbData
,
ski
->
Value
.
pbData
,
aki
->
Value
.
cbData
);
else
ret
=
FALSE
;
}
else
ret
=
FALSE
;
}
/* else: a CRL without an AKI matches any cert */
}
}
else
ret
=
TRUE
;
...
...
dlls/crypt32/tests/crl.c
View file @
8fcaa52d
...
...
@@ -683,11 +683,9 @@ static void testFindCRL(void)
revoked_count
++
;
}
}
while
(
context
);
todo_wine
{
ok
(
count
==
0
,
"expected 0 matching CRLs, got %d
\n
"
,
count
);
ok
(
revoked_count
==
0
,
"expected 0 matching CRL entries, got %d
\n
"
,
revoked_count
);
}
count
=
revoked_count
=
0
;
do
{
context
=
pCertFindCRLInStore
(
store
,
0
,
CRL_FIND_ISSUED_BY_AKI_FLAG
,
...
...
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