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
19fd9872
Commit
19fd9872
authored
Sep 17, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Sep 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Get rid of encoding type from AsnDecodeSequenceItems, it's never checked.
parent
21246938
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
decode.c
dlls/crypt32/decode.c
+7
-8
No files found.
dlls/crypt32/decode.c
View file @
19fd9872
...
...
@@ -315,10 +315,9 @@ struct AsnDecodeSequenceItem
* Upon decoding, *cbDecoded is the total number of bytes decoded.
* Each item decoder is never called with CRYPT_DECODE_ALLOC_FLAG set.
*/
static
BOOL
CRYPT_AsnDecodeSequenceItems
(
DWORD
dwCertEncodingType
,
struct
AsnDecodeSequenceItem
items
[],
DWORD
cItem
,
const
BYTE
*
pbEncoded
,
DWORD
cbEncoded
,
DWORD
dwFlags
,
void
*
pvStructInfo
,
BYTE
*
nextData
,
DWORD
*
cbDecoded
)
static
BOOL
CRYPT_AsnDecodeSequenceItems
(
struct
AsnDecodeSequenceItem
items
[],
DWORD
cItem
,
const
BYTE
*
pbEncoded
,
DWORD
cbEncoded
,
DWORD
dwFlags
,
void
*
pvStructInfo
,
BYTE
*
nextData
,
DWORD
*
cbDecoded
)
{
BOOL
ret
;
DWORD
i
,
decoded
=
0
;
...
...
@@ -353,7 +352,7 @@ static BOOL CRYPT_AsnDecodeSequenceItems(DWORD dwCertEncodingType,
TRACE
(
"decoding item %d
\n
"
,
i
);
else
TRACE
(
"sizing item %d
\n
"
,
i
);
ret
=
items
[
i
].
decodeFunc
(
dwCertEncodingType
,
ret
=
items
[
i
].
decodeFunc
(
X509_ASN_ENCODING
,
NULL
,
ptr
,
1
+
nextItemLenBytes
+
nextItemLen
,
dwFlags
&
~
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
pvStructInfo
?
(
BYTE
*
)
pvStructInfo
+
items
[
i
].
offset
...
...
@@ -463,8 +462,8 @@ static BOOL CRYPT_AsnDecodeSequence(DWORD dwCertEncodingType,
ret
=
FALSE
;
}
else
ret
=
CRYPT_AsnDecodeSequenceItems
(
dwFlags
,
items
,
cItem
,
ptr
,
cbEncoded
,
dwFlags
,
NULL
,
NULL
,
&
cbDecoded
);
ret
=
CRYPT_AsnDecodeSequenceItems
(
items
,
cItem
,
ptr
,
cbEncoded
,
dwFlags
,
NULL
,
NULL
,
&
cbDecoded
);
if
(
ret
&&
cbDecoded
!=
dataLen
)
{
TRACE
(
"expected %d decoded, got %d, failing
\n
"
,
dataLen
,
...
...
@@ -497,7 +496,7 @@ static BOOL CRYPT_AsnDecodeSequence(DWORD dwCertEncodingType,
else
nextData
=
(
BYTE
*
)
pvStructInfo
+
structSize
;
memset
(
pvStructInfo
,
0
,
structSize
);
ret
=
CRYPT_AsnDecodeSequenceItems
(
dwFlags
,
items
,
cItem
,
ret
=
CRYPT_AsnDecodeSequenceItems
(
items
,
cItem
,
ptr
,
cbEncoded
,
dwFlags
,
pvStructInfo
,
nextData
,
&
cbDecoded
);
}
...
...
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