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
6c3efd1c
Commit
6c3efd1c
authored
Jan 12, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32/tests: Cast-qual warning fixes.
parent
53b225b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
schannel.c
dlls/secur32/tests/schannel.c
+6
-5
No files found.
dlls/secur32/tests/schannel.c
View file @
6c3efd1c
...
@@ -42,9 +42,9 @@ static const BYTE bigCert[] = { 0x30, 0x7a, 0x02, 0x01, 0x01, 0x30, 0x02, 0x06,
...
@@ -42,9 +42,9 @@ static const BYTE bigCert[] = { 0x30, 0x7a, 0x02, 0x01, 0x01, 0x30, 0x02, 0x06,
0x4c
,
0x61
,
0x6e
,
0x67
,
0x00
,
0x30
,
0x07
,
0x30
,
0x02
,
0x06
,
0x00
,
0x03
,
0x01
,
0x4c
,
0x61
,
0x6e
,
0x67
,
0x00
,
0x30
,
0x07
,
0x30
,
0x02
,
0x06
,
0x00
,
0x03
,
0x01
,
0x00
,
0xa3
,
0x16
,
0x30
,
0x14
,
0x30
,
0x12
,
0x06
,
0x03
,
0x55
,
0x1d
,
0x13
,
0x01
,
0x00
,
0xa3
,
0x16
,
0x30
,
0x14
,
0x30
,
0x12
,
0x06
,
0x03
,
0x55
,
0x1d
,
0x13
,
0x01
,
0x01
,
0xff
,
0x04
,
0x08
,
0x30
,
0x06
,
0x01
,
0x01
,
0xff
,
0x02
,
0x01
,
0x01
};
0x01
,
0xff
,
0x04
,
0x08
,
0x30
,
0x06
,
0x01
,
0x01
,
0xff
,
0x02
,
0x01
,
0x01
};
static
const
WCHAR
cspNameW
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
'C'
,
'r'
,
'y'
,
'p'
,
't'
,
'T'
,
'e'
,
static
WCHAR
cspNameW
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
'C'
,
'r'
,
'y'
,
'p'
,
't'
,
'T'
,
'e'
,
'm'
,
'p'
,
0
};
'm'
,
'p'
,
0
};
static
const
BYTE
privKey
[]
=
{
static
BYTE
privKey
[]
=
{
0x07
,
0x02
,
0x00
,
0x00
,
0x00
,
0x24
,
0x00
,
0x00
,
0x52
,
0x53
,
0x41
,
0x32
,
0x00
,
0x07
,
0x02
,
0x00
,
0x00
,
0x00
,
0x24
,
0x00
,
0x00
,
0x52
,
0x53
,
0x41
,
0x32
,
0x00
,
0x02
,
0x00
,
0x00
,
0x01
,
0x00
,
0x01
,
0x00
,
0x79
,
0x10
,
0x1c
,
0xd0
,
0x6b
,
0x10
,
0x02
,
0x00
,
0x00
,
0x01
,
0x00
,
0x01
,
0x00
,
0x79
,
0x10
,
0x1c
,
0xd0
,
0x6b
,
0x10
,
0x18
,
0x30
,
0x94
,
0x61
,
0xdc
,
0x0e
,
0xcb
,
0x96
,
0x4e
,
0x21
,
0x3f
,
0x79
,
0xcd
,
0x18
,
0x30
,
0x94
,
0x61
,
0xdc
,
0x0e
,
0xcb
,
0x96
,
0x4e
,
0x21
,
0x3f
,
0x79
,
0xcd
,
...
@@ -116,12 +116,13 @@ static void testAcquireSecurityContext(void)
...
@@ -116,12 +116,13 @@ static void testAcquireSecurityContext(void)
PCCERT_CONTEXT
certs
[
2
];
PCCERT_CONTEXT
certs
[
2
];
HCRYPTPROV
csp
;
HCRYPTPROV
csp
;
static
CHAR
unisp_name_a
[]
=
UNISP_NAME_A
;
static
CHAR
unisp_name_a
[]
=
UNISP_NAME_A
;
static
WCHAR
ms_def_prov_w
[]
=
MS_DEF_PROV_W
;
BOOL
ret
;
BOOL
ret
;
HCRYPTKEY
key
;
HCRYPTKEY
key
;
CRYPT_KEY_PROV_INFO
keyProvInfo
;
CRYPT_KEY_PROV_INFO
keyProvInfo
;
keyProvInfo
.
pwszContainerName
=
(
LPWSTR
)
cspNameW
;
keyProvInfo
.
pwszContainerName
=
cspNameW
;
keyProvInfo
.
pwszProvName
=
(
LPWSTR
)
MS_DEF_PROV_W
;
keyProvInfo
.
pwszProvName
=
ms_def_prov_w
;
keyProvInfo
.
dwProvType
=
PROV_RSA_FULL
;
keyProvInfo
.
dwProvType
=
PROV_RSA_FULL
;
keyProvInfo
.
dwFlags
=
0
;
keyProvInfo
.
dwFlags
=
0
;
keyProvInfo
.
cProvParam
=
0
;
keyProvInfo
.
cProvParam
=
0
;
...
@@ -253,7 +254,7 @@ static void testAcquireSecurityContext(void)
...
@@ -253,7 +254,7 @@ static void testAcquireSecurityContext(void)
ret
=
CryptAcquireContextW
(
&
csp
,
cspNameW
,
MS_DEF_PROV_W
,
PROV_RSA_FULL
,
ret
=
CryptAcquireContextW
(
&
csp
,
cspNameW
,
MS_DEF_PROV_W
,
PROV_RSA_FULL
,
CRYPT_NEWKEYSET
);
CRYPT_NEWKEYSET
);
ok
(
ret
,
"CryptAcquireContextW failed: %08x
\n
"
,
GetLastError
());
ok
(
ret
,
"CryptAcquireContextW failed: %08x
\n
"
,
GetLastError
());
ret
=
CryptImportKey
(
csp
,
(
LPBYTE
)
privKey
,
sizeof
(
privKey
),
0
,
0
,
&
key
);
ret
=
CryptImportKey
(
csp
,
privKey
,
sizeof
(
privKey
),
0
,
0
,
&
key
);
ok
(
ret
,
"CryptImportKey failed: %08x
\n
"
,
GetLastError
());
ok
(
ret
,
"CryptImportKey failed: %08x
\n
"
,
GetLastError
());
if
(
ret
)
if
(
ret
)
{
{
...
...
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