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
4727212e
Commit
4727212e
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_SIGNATURE_FLAG to CertFindCRLInStore.
parent
8beed85a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
crl.c
dlls/crypt32/crl.c
+5
-0
crl.c
dlls/crypt32/tests/crl.c
+0
-1
No files found.
dlls/crypt32/crl.c
View file @
4727212e
...
@@ -116,6 +116,11 @@ static BOOL compare_crl_issued_by(PCCRL_CONTEXT pCrlContext, DWORD dwType,
...
@@ -116,6 +116,11 @@ static BOOL compare_crl_issued_by(PCCRL_CONTEXT pCrlContext, DWORD dwType,
ret
=
CertCompareCertificateName
(
issuer
->
dwCertEncodingType
,
ret
=
CertCompareCertificateName
(
issuer
->
dwCertEncodingType
,
&
issuer
->
pCertInfo
->
Issuer
,
&
pCrlContext
->
pCrlInfo
->
Issuer
);
&
issuer
->
pCertInfo
->
Issuer
,
&
pCrlContext
->
pCrlInfo
->
Issuer
);
if
(
ret
&&
(
dwFlags
&
CRL_FIND_ISSUED_BY_SIGNATURE_FLAG
))
ret
=
CryptVerifyCertificateSignatureEx
(
0
,
issuer
->
dwCertEncodingType
,
CRYPT_VERIFY_CERT_SIGN_SUBJECT_CRL
,
(
void
*
)
pCrlContext
,
CRYPT_VERIFY_CERT_SIGN_ISSUER_CERT
,
(
void
*
)
issuer
,
0
,
NULL
);
}
}
else
else
ret
=
TRUE
;
ret
=
TRUE
;
...
...
dlls/crypt32/tests/crl.c
View file @
4727212e
...
@@ -382,7 +382,6 @@ static void testFindCRL(void)
...
@@ -382,7 +382,6 @@ static void testFindCRL(void)
/* Try various find flags */
/* Try various find flags */
context
=
pCertFindCRLInStore
(
store
,
0
,
CRL_FIND_ISSUED_BY_SIGNATURE_FLAG
,
context
=
pCertFindCRLInStore
(
store
,
0
,
CRL_FIND_ISSUED_BY_SIGNATURE_FLAG
,
CRL_FIND_ISSUED_BY
,
cert
,
NULL
);
CRL_FIND_ISSUED_BY
,
cert
,
NULL
);
todo_wine
ok
(
!
context
,
"unexpected context
\n
"
);
ok
(
!
context
,
"unexpected context
\n
"
);
/* The CRL doesn't have an AKI extension, so it matches any cert */
/* The CRL doesn't have an AKI extension, so it matches any cert */
context
=
pCertFindCRLInStore
(
store
,
0
,
CRL_FIND_ISSUED_BY_AKI_FLAG
,
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