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
e87dc9c5
Commit
e87dc9c5
authored
Oct 14, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Oct 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Simplify CRYPT_AsnDecodeDistPointName.
parent
26bfd028
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
decode.c
dlls/crypt32/decode.c
+6
-11
No files found.
dlls/crypt32/decode.c
View file @
e87dc9c5
...
@@ -4931,15 +4931,10 @@ static BOOL CRYPT_AsnDecodeDistPointName(const BYTE *pbEncoded,
...
@@ -4931,15 +4931,10 @@ static BOOL CRYPT_AsnDecodeDistPointName(const BYTE *pbEncoded,
if
(
dataLen
)
if
(
dataLen
)
{
{
ret
=
CRYPT_AsnDecodeArray
(
&
arrayDesc
,
ret
=
CRYPT_AsnDecodeArray
NoAlloc
(
&
arrayDesc
,
pbEncoded
+
1
+
lenBytes
,
cbEncoded
-
1
-
lenBytes
,
pbEncoded
+
1
+
lenBytes
,
cbEncoded
-
1
-
lenBytes
,
0
,
NULL
,
NULL
,
&
nameLen
,
NULL
,
NULL
);
NULL
,
NULL
,
&
nameLen
,
NULL
);
/* The CERT_ALT_NAME_INFO's size is included by CRYPT_AsnDecodeArray
bytesNeeded
=
sizeof
(
CRL_DIST_POINT_NAME
)
+
nameLen
;
* as the sizeof(struct GenericArray), so don't include it in the
* total bytes needed.
*/
bytesNeeded
=
sizeof
(
CRL_DIST_POINT_NAME
)
+
nameLen
-
sizeof
(
CERT_ALT_NAME_INFO
);
}
}
else
else
bytesNeeded
=
sizeof
(
CRL_DIST_POINT_NAME
);
bytesNeeded
=
sizeof
(
CRL_DIST_POINT_NAME
);
...
@@ -4961,10 +4956,10 @@ static BOOL CRYPT_AsnDecodeDistPointName(const BYTE *pbEncoded,
...
@@ -4961,10 +4956,10 @@ static BOOL CRYPT_AsnDecodeDistPointName(const BYTE *pbEncoded,
if
(
dataLen
)
if
(
dataLen
)
{
{
name
->
dwDistPointNameChoice
=
CRL_DIST_POINT_FULL_NAME
;
name
->
dwDistPointNameChoice
=
CRL_DIST_POINT_FULL_NAME
;
ret
=
CRYPT_AsnDecodeArray
(
&
arrayDesc
,
ret
=
CRYPT_AsnDecodeArray
NoAlloc
(
&
arrayDesc
,
pbEncoded
+
1
+
lenBytes
,
cbEncoded
-
1
-
lenBytes
,
pbEncoded
+
1
+
lenBytes
,
cbEncoded
-
1
-
lenBytes
,
0
,
NULL
,
&
name
->
u
.
FullName
,
&
nameLen
,
NULL
,
&
name
->
u
.
FullName
.
cAltEntry
,
name
->
u
.
FullName
.
rgAltEntry
,
name
->
u
.
FullName
.
rgAltEntry
);
&
nameLen
,
NULL
);
}
}
else
else
name
->
dwDistPointNameChoice
=
CRL_DIST_POINT_NO_NAME
;
name
->
dwDistPointNameChoice
=
CRL_DIST_POINT_NO_NAME
;
...
...
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