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
13e006a7
Commit
13e006a7
authored
Jun 19, 2006
by
Juan Lang
Committed by
Alexandre Julliard
Jun 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Simplify CRL creation.
Decoding already handles signed and unsigned CRLs, so don't duplicate that in CertCreateCRLContext.
parent
661aecc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
22 deletions
+3
-22
crl.c
dlls/crypt32/crl.c
+3
-22
No files found.
dlls/crypt32/crl.c
View file @
13e006a7
...
...
@@ -32,7 +32,6 @@ PCCRL_CONTEXT WINAPI CertCreateCRLContext(DWORD dwCertEncodingType,
{
PCRL_CONTEXT
crl
=
NULL
;
BOOL
ret
;
PCERT_SIGNED_CONTENT_INFO
signedCrl
=
NULL
;
PCRL_INFO
crlInfo
=
NULL
;
DWORD
size
=
0
;
...
...
@@ -44,27 +43,9 @@ PCCRL_CONTEXT WINAPI CertCreateCRLContext(DWORD dwCertEncodingType,
SetLastError
(
E_INVALIDARG
);
return
NULL
;
}
/* First try to decode it as a signed crl. */
ret
=
CryptDecodeObjectEx
(
dwCertEncodingType
,
X509_CERT
,
pbCrlEncoded
,
cbCrlEncoded
,
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
(
BYTE
*
)
&
signedCrl
,
&
size
);
if
(
ret
)
{
size
=
0
;
ret
=
CryptDecodeObjectEx
(
dwCertEncodingType
,
X509_CERT_CRL_TO_BE_SIGNED
,
signedCrl
->
ToBeSigned
.
pbData
,
signedCrl
->
ToBeSigned
.
cbData
,
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
(
BYTE
*
)
&
crlInfo
,
&
size
);
LocalFree
(
signedCrl
);
}
/* Failing that, try it as an unsigned crl */
if
(
!
ret
)
{
size
=
0
;
ret
=
CryptDecodeObjectEx
(
dwCertEncodingType
,
X509_CERT_CRL_TO_BE_SIGNED
,
pbCrlEncoded
,
cbCrlEncoded
,
CRYPT_DECODE_ALLOC_FLAG
|
CRYPT_DECODE_NOCOPY_FLAG
,
NULL
,
(
BYTE
*
)
&
crlInfo
,
&
size
);
}
ret
=
CryptDecodeObjectEx
(
dwCertEncodingType
,
X509_CERT_CRL_TO_BE_SIGNED
,
pbCrlEncoded
,
cbCrlEncoded
,
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
(
BYTE
*
)
&
crlInfo
,
&
size
);
if
(
ret
)
{
BYTE
*
data
=
NULL
;
...
...
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