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
e8992af0
Commit
e8992af0
authored
Jun 20, 2006
by
Juan Lang
Committed by
Alexandre Julliard
Jun 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Implement some CRL verification functions.
parent
aeb80364
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
1 deletion
+49
-1
crl.c
dlls/crypt32/crl.c
+46
-0
crypt32.spec
dlls/crypt32/crypt32.spec
+3
-1
crl.c
dlls/crypt32/tests/crl.c
+0
-0
No files found.
dlls/crypt32/crl.c
View file @
e8992af0
...
...
@@ -425,6 +425,52 @@ BOOL WINAPI CertSetCRLContextProperty(PCCRL_CONTEXT pCRLContext,
return
ret
;
}
BOOL
WINAPI
CertIsValidCRLForCertificate
(
PCCERT_CONTEXT
pCert
,
PCCRL_CONTEXT
pCrl
,
DWORD
dwFlags
,
void
*
pvReserved
)
{
TRACE
(
"(%p, %p, %08lx, %p)
\n
"
,
pCert
,
pCrl
,
dwFlags
,
pvReserved
);
return
TRUE
;
}
static
PCRL_ENTRY
CRYPT_FindCertificateInCRL
(
PCERT_INFO
cert
,
PCRL_INFO
crl
)
{
DWORD
i
;
PCRL_ENTRY
entry
=
NULL
;
/* FIXME: do I need to compare the issuers of the cert and CRL? */
for
(
i
=
0
;
!
entry
&&
i
<
crl
->
cCRLEntry
;
i
++
)
if
(
CertCompareIntegerBlob
(
&
crl
->
rgCRLEntry
[
i
].
SerialNumber
,
&
cert
->
SerialNumber
))
entry
=
&
crl
->
rgCRLEntry
[
i
];
return
entry
;
}
BOOL
WINAPI
CertFindCertificateInCRL
(
PCCERT_CONTEXT
pCert
,
PCCRL_CONTEXT
pCrlContext
,
DWORD
dwFlags
,
void
*
pvReserved
,
PCRL_ENTRY
*
ppCrlEntry
)
{
TRACE
(
"(%p, %p, %08lx, %p, %p)
\n
"
,
pCert
,
pCrlContext
,
dwFlags
,
pvReserved
,
ppCrlEntry
);
*
ppCrlEntry
=
CRYPT_FindCertificateInCRL
(
pCert
->
pCertInfo
,
pCrlContext
->
pCrlInfo
);
return
TRUE
;
}
BOOL
WINAPI
CertVerifyCRLRevocation
(
DWORD
dwCertEncodingType
,
PCERT_INFO
pCertId
,
DWORD
cCrlInfo
,
PCRL_INFO
rgpCrlInfo
[])
{
DWORD
i
;
PCRL_ENTRY
entry
=
NULL
;
TRACE
(
"(%08lx, %p, %ld, %p)
\n
"
,
dwCertEncodingType
,
pCertId
,
cCrlInfo
,
rgpCrlInfo
);
for
(
i
=
0
;
!
entry
&&
i
<
cCrlInfo
;
i
++
)
entry
=
CRYPT_FindCertificateInCRL
(
pCertId
,
rgpCrlInfo
[
i
]);
return
entry
==
NULL
;
}
LONG
WINAPI
CertVerifyCRLTimeValidity
(
LPFILETIME
pTimeToVerify
,
PCRL_INFO
pCrlInfo
)
{
...
...
dlls/crypt32/crypt32.spec
View file @
e8992af0
...
...
@@ -38,6 +38,7 @@
@ stdcall CertFindCRLInStore(long long long long ptr ptr)
@ stub CertFindCTLInStore
@ stdcall CertFindCertificateInStore(long long long long ptr ptr)
@ stdcall CertFindCertificateInCRL(ptr ptr long ptr ptr)
@ stdcall CertFindExtension(str long ptr)
@ stdcall CertFindRDNAttr(str ptr)
@ stub CertFindSubjectInCTL
...
...
@@ -60,6 +61,7 @@
@ stdcall CertGetSubjectCertificateFromStore(ptr long ptr)
@ stdcall CertGetValidUsages(long ptr ptr ptr ptr)
@ stub CertIsRDNAttrsInCertificateName
@ stdcall CertIsValidCRLForCertificate(ptr ptr long ptr)
@ stdcall CertNameToStrA(long ptr long ptr long)
@ stdcall CertNameToStrW(long ptr long ptr long)
@ stdcall CertOIDToAlgId(str)
...
...
@@ -80,7 +82,7 @@
@ stdcall CertSetEnhancedKeyUsage(ptr ptr)
@ stub CertStrToNameA
@ stub CertStrToNameW
@ st
ub CertVerifyCRLRevocation
@ st
dcall CertVerifyCRLRevocation(long ptr long ptr)
@ stdcall CertVerifyCRLTimeValidity(ptr ptr)
@ stub CertVerifyCTLUsage
@ stub CertVerifyRevocation
...
...
dlls/crypt32/tests/crl.c
View file @
e8992af0
This diff is collapsed.
Click to expand it.
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