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
4fa4f67c
Commit
4fa4f67c
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: Implement CertFindCRLInStore for find type CRL_FIND_ISSUED_FOR.
parent
a3b462e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
crl.c
dlls/crypt32/crl.c
+17
-0
crl.c
dlls/crypt32/tests/crl.c
+0
-4
No files found.
dlls/crypt32/crl.c
View file @
4fa4f67c
...
...
@@ -137,6 +137,20 @@ static BOOL compare_crl_existing(PCCRL_CONTEXT pCrlContext, DWORD dwType,
return
ret
;
}
static
BOOL
compare_crl_issued_for
(
PCCRL_CONTEXT
pCrlContext
,
DWORD
dwType
,
DWORD
dwFlags
,
const
void
*
pvPara
)
{
const
CRL_FIND_ISSUED_FOR_PARA
*
para
=
pvPara
;
BOOL
ret
;
ret
=
CertCompareCertificateName
(
para
->
pIssuerCert
->
dwCertEncodingType
,
&
para
->
pIssuerCert
->
pCertInfo
->
Issuer
,
&
pCrlContext
->
pCrlInfo
->
Issuer
);
if
(
ret
)
ret
=
CertIsValidCRLForCertificate
(
para
->
pSubjectCert
,
pCrlContext
,
0
,
NULL
);
return
ret
;
}
PCCRL_CONTEXT
WINAPI
CertFindCRLInStore
(
HCERTSTORE
hCertStore
,
DWORD
dwCertEncodingType
,
DWORD
dwFindFlags
,
DWORD
dwFindType
,
const
void
*
pvFindPara
,
PCCRL_CONTEXT
pPrevCrlContext
)
...
...
@@ -158,6 +172,9 @@ PCCRL_CONTEXT WINAPI CertFindCRLInStore(HCERTSTORE hCertStore,
case
CRL_FIND_EXISTING
:
compare
=
compare_crl_existing
;
break
;
case
CRL_FIND_ISSUED_FOR
:
compare
=
compare_crl_issued_for
;
break
;
default:
FIXME
(
"find type %08x unimplemented
\n
"
,
dwFindType
);
compare
=
NULL
;
...
...
dlls/crypt32/tests/crl.c
View file @
4fa4f67c
...
...
@@ -390,7 +390,6 @@ static void testFindCRL(void)
issuedForPara
.
pIssuerCert
=
cert
;
context
=
pCertFindCRLInStore
(
store
,
0
,
0
,
CRL_FIND_ISSUED_FOR
,
&
issuedForPara
,
NULL
);
todo_wine
ok
(
context
!=
NULL
,
"Expected a context
\n
"
);
if
(
context
)
{
...
...
@@ -433,12 +432,10 @@ static void testFindCRL(void)
* match cert's issuer, but verisignCRL does not, so the expected count
* is 0.
*/
todo_wine
ok
(
count
==
3
,
"expected 3 matching CRLs, got %d
\n
"
,
count
);
/* Only v1CRLWithIssuerAndEntry and v2CRLWithIssuingDistPoint contain
* entries, so the count of CRL entries that match cert is 2.
*/
todo_wine
ok
(
revoked_count
==
2
,
"expected 2 matching CRL entries, got %d
\n
"
,
revoked_count
);
...
...
@@ -495,7 +492,6 @@ static void testFindCRL(void)
revoked_count
++
;
}
}
while
(
context
);
todo_wine
ok
(
count
==
1
,
"expected 1 matching CRLs, got %d
\n
"
,
count
);
ok
(
revoked_count
==
0
,
"expected 0 matching CRL entries, got %d
\n
"
,
revoked_count
);
...
...
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