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
2c231927
Commit
2c231927
authored
Jul 27, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Jul 28, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Write-strings warnings fix.
parent
f439f216
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
encode.c
dlls/crypt32/tests/encode.c
+5
-3
No files found.
dlls/crypt32/tests/encode.c
View file @
2c231927
...
...
@@ -806,6 +806,8 @@ static void test_encodeUnicodeName(DWORD dwEncoding)
CERT_RDN_ATTR
attrs
[
2
];
CERT_RDN
rdn
;
CERT_NAME_INFO
info
;
static
CHAR
oid_common_name
[]
=
szOID_COMMON_NAME
,
oid_sur_name
[]
=
szOID_SUR_NAME
;
BYTE
*
buf
=
NULL
;
DWORD
size
=
0
;
BOOL
ret
;
...
...
@@ -830,7 +832,7 @@ static void test_encodeUnicodeName(DWORD dwEncoding)
/* Check with one CERT_RDN_ATTR, that has an invalid character for the
* encoding (the NULL).
*/
attrs
[
0
].
pszObjId
=
szOID_COMMON_NAME
;
attrs
[
0
].
pszObjId
=
oid_common_name
;
attrs
[
0
].
dwValueType
=
CERT_RDN_PRINTABLE_STRING
;
attrs
[
0
].
Value
.
cbData
=
sizeof
(
commonNameW
);
attrs
[
0
].
Value
.
pbData
=
(
BYTE
*
)
commonNameW
;
...
...
@@ -846,11 +848,11 @@ static void test_encodeUnicodeName(DWORD dwEncoding)
/* Check with two NULL-terminated CERT_RDN_ATTRs. Note DER encoding
* forces the order of the encoded attributes to be swapped.
*/
attrs
[
0
].
pszObjId
=
szOID_COMMON_NAME
;
attrs
[
0
].
pszObjId
=
oid_common_name
;
attrs
[
0
].
dwValueType
=
CERT_RDN_PRINTABLE_STRING
;
attrs
[
0
].
Value
.
cbData
=
0
;
attrs
[
0
].
Value
.
pbData
=
(
BYTE
*
)
commonNameW
;
attrs
[
1
].
pszObjId
=
szOID_SUR_NAME
;
attrs
[
1
].
pszObjId
=
oid_sur_name
;
attrs
[
1
].
dwValueType
=
CERT_RDN_PRINTABLE_STRING
;
attrs
[
1
].
Value
.
cbData
=
0
;
attrs
[
1
].
Value
.
pbData
=
(
BYTE
*
)
surNameW
;
...
...
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