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
dc98a727
Commit
dc98a727
authored
Jul 18, 2006
by
Juan Lang
Committed by
Alexandre Julliard
Jul 19, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Don't return from a try block.
parent
5b37fe45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
20 deletions
+25
-20
encode.c
dlls/crypt32/encode.c
+25
-20
No files found.
dlls/crypt32/encode.c
View file @
dc98a727
...
...
@@ -945,32 +945,37 @@ static BOOL WINAPI CRYPT_AsnEncodeNameValue(DWORD dwCertEncodingType,
case
CERT_RDN_ANY_TYPE
:
/* explicitly disallowed */
SetLastError
(
E_INVALIDARG
);
return
FALSE
;
ret
=
FALSE
;
break
;
default:
FIXME
(
"String type %ld unimplemented
\n
"
,
value
->
dwValueType
);
ret
urn
FALSE
;
ret
=
FALSE
;
}
CRYPT_EncodeLen
(
encodedLen
,
NULL
,
&
lenBytes
);
bytesNeeded
=
1
+
lenBytes
+
encodedLen
;
if
(
!
pbEncoded
)
*
pcbEncoded
=
bytesNeeded
;
else
if
(
ret
)
{
if
((
ret
=
CRYPT_EncodeEnsureSpace
(
dwFlags
,
pEncodePara
,
pbEncoded
,
pcbEncoded
,
bytesNeeded
)))
CRYPT_EncodeLen
(
encodedLen
,
NULL
,
&
lenBytes
);
bytesNeeded
=
1
+
lenBytes
+
encodedLen
;
if
(
!
pbEncoded
)
*
pcbEncoded
=
bytesNeeded
;
else
{
if
(
dwFlags
&
CRYPT_ENCODE_ALLOC_FLAG
)
pbEncoded
=
*
(
BYTE
**
)
pbEncoded
;
*
pbEncoded
++
=
tag
;
CRYPT_EncodeLen
(
encodedLen
,
pbEncoded
,
&
lenBytes
);
pbEncoded
+=
lenBytes
;
switch
(
value
->
dwValueType
)
if
((
ret
=
CRYPT_EncodeEnsureSpace
(
dwFlags
,
pEncodePara
,
pbEncoded
,
pcbEncoded
,
bytesNeeded
)))
{
case
CERT_RDN_NUMERIC_STRING
:
case
CERT_RDN_PRINTABLE_STRING
:
case
CERT_RDN_T61_STRING
:
case
CERT_RDN_IA5_STRING
:
memcpy
(
pbEncoded
,
value
->
Value
.
pbData
,
value
->
Value
.
cbData
);
if
(
dwFlags
&
CRYPT_ENCODE_ALLOC_FLAG
)
pbEncoded
=
*
(
BYTE
**
)
pbEncoded
;
*
pbEncoded
++
=
tag
;
CRYPT_EncodeLen
(
encodedLen
,
pbEncoded
,
&
lenBytes
);
pbEncoded
+=
lenBytes
;
switch
(
value
->
dwValueType
)
{
case
CERT_RDN_NUMERIC_STRING
:
case
CERT_RDN_PRINTABLE_STRING
:
case
CERT_RDN_T61_STRING
:
case
CERT_RDN_IA5_STRING
:
memcpy
(
pbEncoded
,
value
->
Value
.
pbData
,
value
->
Value
.
cbData
);
}
}
}
}
...
...
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