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
3265f2d7
Commit
3265f2d7
authored
Oct 14, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Oct 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Fix compilation on systems that don't support nameless unions.
parent
1766918d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
encode.c
dlls/crypt32/tests/encode.c
+10
-10
No files found.
dlls/crypt32/tests/encode.c
View file @
3265f2d7
...
...
@@ -5541,7 +5541,7 @@ static void test_encodeNameConstraints(DWORD dwEncoding)
"Unexpected value
\n
"
);
LocalFree
(
buf
);
}
excluded
.
Base
.
pwszURL
=
(
LPWSTR
)
url
;
U
(
excluded
.
Base
)
.
pwszURL
=
(
LPWSTR
)
url
;
ret
=
CryptEncodeObjectEx
(
dwEncoding
,
X509_NAME_CONSTRAINTS
,
&
constraints
,
CRYPT_ENCODE_ALLOC_FLAG
,
NULL
,
(
BYTE
*
)
&
buf
,
&
size
);
ok
(
ret
,
"CryptEncodeObjectEx failed: %08x
\n
"
,
GetLastError
());
...
...
@@ -5553,8 +5553,8 @@ static void test_encodeNameConstraints(DWORD dwEncoding)
LocalFree
(
buf
);
}
permitted
.
Base
.
dwAltNameChoice
=
CERT_ALT_NAME_IP_ADDRESS
;
permitted
.
Base
.
IPAddress
.
cbData
=
sizeof
(
encodedIPAddr
);
permitted
.
Base
.
IPAddress
.
pbData
=
(
LPBYTE
)
encodedIPAddr
;
U
(
permitted
.
Base
)
.
IPAddress
.
cbData
=
sizeof
(
encodedIPAddr
);
U
(
permitted
.
Base
)
.
IPAddress
.
pbData
=
(
LPBYTE
)
encodedIPAddr
;
constraints
.
cPermittedSubtree
=
1
;
ret
=
CryptEncodeObjectEx
(
dwEncoding
,
X509_NAME_CONSTRAINTS
,
&
constraints
,
CRYPT_ENCODE_ALLOC_FLAG
,
NULL
,
(
BYTE
*
)
&
buf
,
&
size
);
...
...
@@ -5636,13 +5636,13 @@ static void test_decodeNameConstraints(DWORD dwEncoding)
DWORD
i
;
CERT_NAME_CONSTRAINTS_INFO
*
constraints
;
DNSSubtree
.
Base
.
pwszURL
=
(
LPWSTR
)
url
;
IPAddressSubtree
.
Base
.
IPAddress
.
cbData
=
sizeof
(
encodedIPAddr
);
IPAddressSubtree
.
Base
.
IPAddress
.
pbData
=
(
LPBYTE
)
encodedIPAddr
;
IPAddressWithMinSubtree
.
Base
.
IPAddress
.
cbData
=
sizeof
(
encodedIPAddr
);
IPAddressWithMinSubtree
.
Base
.
IPAddress
.
pbData
=
(
LPBYTE
)
encodedIPAddr
;
IPAddressWithMinMaxSubtree
.
Base
.
IPAddress
.
cbData
=
sizeof
(
encodedIPAddr
);
IPAddressWithMinMaxSubtree
.
Base
.
IPAddress
.
pbData
=
(
LPBYTE
)
encodedIPAddr
;
U
(
DNSSubtree
.
Base
)
.
pwszURL
=
(
LPWSTR
)
url
;
U
(
IPAddressSubtree
.
Base
)
.
IPAddress
.
cbData
=
sizeof
(
encodedIPAddr
);
U
(
IPAddressSubtree
.
Base
)
.
IPAddress
.
pbData
=
(
LPBYTE
)
encodedIPAddr
;
U
(
IPAddressWithMinSubtree
.
Base
)
.
IPAddress
.
cbData
=
sizeof
(
encodedIPAddr
);
U
(
IPAddressWithMinSubtree
.
Base
)
.
IPAddress
.
pbData
=
(
LPBYTE
)
encodedIPAddr
;
U
(
IPAddressWithMinMaxSubtree
.
Base
)
.
IPAddress
.
cbData
=
sizeof
(
encodedIPAddr
);
U
(
IPAddressWithMinMaxSubtree
.
Base
)
.
IPAddress
.
pbData
=
(
LPBYTE
)
encodedIPAddr
;
for
(
i
=
0
;
i
<
sizeof
(
encodedNameConstraints
)
/
sizeof
(
encodedNameConstraints
[
0
]);
i
++
)
...
...
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