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
f290ec49
Commit
f290ec49
authored
Feb 24, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Feb 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Fix some test failures on Win9x.
parent
7399dfa9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
msg.c
dlls/crypt32/tests/msg.c
+15
-5
No files found.
dlls/crypt32/tests/msg.c
View file @
f290ec49
...
...
@@ -295,7 +295,13 @@ static void check_param(LPCSTR test, HCRYPTMSG msg, DWORD param,
size
=
0xdeadbeef
;
ret
=
CryptMsgGetParam
(
msg
,
param
,
0
,
NULL
,
&
size
);
ok
(
ret
,
"%s: CryptMsgGetParam failed: %08x
\n
"
,
test
,
GetLastError
());
ok
(
ret
||
broken
(
GetLastError
()
==
OSS_LIMITED
/* Win9x */
),
"%s: CryptMsgGetParam failed: %08x
\n
"
,
test
,
GetLastError
());
if
(
!
ret
)
{
win_skip
(
"parameter %d not supported, skipping tests
\n
"
,
param
);
return
;
}
buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
ret
=
CryptMsgGetParam
(
msg
,
param
,
0
,
buf
,
&
size
);
ok
(
ret
,
"%s: CryptMsgGetParam failed: %08x
\n
"
,
test
,
GetLastError
());
...
...
@@ -801,12 +807,15 @@ static void test_hash_msg_get_param(void)
ok
(
ret
,
"CryptMsgGetParam failed: %08x
\n
"
,
GetLastError
());
size
=
0
;
ret
=
CryptMsgGetParam
(
msg
,
CMSG_BARE_CONTENT_PARAM
,
0
,
NULL
,
&
size
);
ok
(
ret
,
"CryptMsgGetParam failed: %08x
\n
"
,
GetLastError
());
ok
(
ret
||
broken
(
GetLastError
()
==
OSS_LIMITED
/* Win9x */
),
"CryptMsgGetParam failed: %08x
\n
"
,
GetLastError
());
/* For an encoded hash message, the hash data aren't available */
SetLastError
(
0xdeadbeef
);
ret
=
CryptMsgGetParam
(
msg
,
CMSG_HASH_DATA_PARAM
,
0
,
NULL
,
&
size
);
ok
(
!
ret
&&
GetLastError
()
==
CRYPT_E_INVALID_MSG_TYPE
,
"Expected CRYPT_E_INVALID_MSG_TYPE, got %08x
\n
"
,
GetLastError
());
ok
(
!
ret
&&
(
GetLastError
()
==
CRYPT_E_INVALID_MSG_TYPE
||
GetLastError
()
==
OSS_LIMITED
/* Win9x */
),
"Expected CRYPT_E_INVALID_MSG_TYPE or OSS_LIMITED, got %08x
\n
"
,
GetLastError
());
/* The hash is also available. */
size
=
0
;
ret
=
CryptMsgGetParam
(
msg
,
CMSG_COMPUTED_HASH_PARAM
,
0
,
NULL
,
&
size
);
...
...
@@ -2911,7 +2920,8 @@ static void test_msg_control(void)
ret
=
CryptMsgUpdate
(
msg
,
msgData
,
sizeof
(
msgData
),
TRUE
);
ok
(
ret
,
"CryptMsgUpdate failed: %08x
\n
"
,
GetLastError
());
ret
=
CryptMsgControl
(
msg
,
0
,
CMSG_CTRL_VERIFY_SIGNATURE
,
&
certInfo
);
ok
(
ret
,
"CryptMsgControl failed: %08x
\n
"
,
GetLastError
());
ok
(
ret
||
broken
(
GetLastError
()
==
OSS_DATA_ERROR
/* Win9x */
),
"CryptMsgControl failed: %08x
\n
"
,
GetLastError
());
CryptMsgClose
(
msg
);
}
...
...
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