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
ce20f6c6
Commit
ce20f6c6
authored
Jan 30, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh/tests: Fix the remaining test failures on Win9x up to W2K.
parent
d1a7e41b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
rsaenh.c
dlls/rsaenh/tests/rsaenh.c
+8
-7
No files found.
dlls/rsaenh/tests/rsaenh.c
View file @
ce20f6c6
...
@@ -1577,9 +1577,8 @@ static void test_rsa_encrypt(void)
...
@@ -1577,9 +1577,8 @@ static void test_rsa_encrypt(void)
/* but its private key may not be. */
/* but its private key may not be. */
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
result
=
CryptExportKey
(
hRSAKey
,
0
,
PRIVATEKEYBLOB
,
0
,
NULL
,
&
dwLen
);
result
=
CryptExportKey
(
hRSAKey
,
0
,
PRIVATEKEYBLOB
,
0
,
NULL
,
&
dwLen
);
ok
(
!
result
&&
ok
((
!
result
&&
GetLastError
()
==
NTE_BAD_KEY_STATE
)
||
(
GetLastError
()
==
NTE_BAD_KEY_STATE
||
broken
(
result
),
/* Win9x/NT4 */
broken
(
GetLastError
()
==
0xdeadbeef
)
/* Win9x/NT4 */
),
"expected NTE_BAD_KEY_STATE, got %08x
\n
"
,
GetLastError
());
"expected NTE_BAD_KEY_STATE, got %08x
\n
"
,
GetLastError
());
/* Setting the permissions of the key exchange key isn't allowed, either. */
/* Setting the permissions of the key exchange key isn't allowed, either. */
dwVal
|=
CRYPT_EXPORT
;
dwVal
|=
CRYPT_EXPORT
;
...
@@ -1612,9 +1611,8 @@ static void test_rsa_encrypt(void)
...
@@ -1612,9 +1611,8 @@ static void test_rsa_encrypt(void)
/* but its private key may not be. */
/* but its private key may not be. */
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
result
=
CryptExportKey
(
hRSAKey
,
0
,
PRIVATEKEYBLOB
,
0
,
NULL
,
&
dwLen
);
result
=
CryptExportKey
(
hRSAKey
,
0
,
PRIVATEKEYBLOB
,
0
,
NULL
,
&
dwLen
);
ok
(
!
result
&&
ok
((
!
result
&&
GetLastError
()
==
NTE_BAD_KEY_STATE
)
||
(
GetLastError
()
==
NTE_BAD_KEY_STATE
||
broken
(
result
),
/* Win9x/NT4 */
broken
(
GetLastError
()
==
0xdeadbeef
)
/* Win9x/NT4 */
),
"expected NTE_BAD_KEY_STATE, got %08x
\n
"
,
GetLastError
());
"expected NTE_BAD_KEY_STATE, got %08x
\n
"
,
GetLastError
());
/* Setting the permissions of the signature key isn't allowed, either. */
/* Setting the permissions of the signature key isn't allowed, either. */
dwVal
|=
CRYPT_EXPORT
;
dwVal
|=
CRYPT_EXPORT
;
...
@@ -2159,7 +2157,10 @@ static void test_key_permissions(void)
...
@@ -2159,7 +2157,10 @@ static void test_key_permissions(void)
/* Turning off the key's export permissions is "allowed".. */
/* Turning off the key's export permissions is "allowed".. */
dwVal
&=
~
CRYPT_EXPORT
;
dwVal
&=
~
CRYPT_EXPORT
;
result
=
CryptSetKeyParam
(
hKey1
,
KP_PERMISSIONS
,
(
BYTE
*
)
&
dwVal
,
0
);
result
=
CryptSetKeyParam
(
hKey1
,
KP_PERMISSIONS
,
(
BYTE
*
)
&
dwVal
,
0
);
ok
(
result
,
"%08x
\n
"
,
GetLastError
());
ok
(
result
||
broken
(
!
result
&&
GetLastError
()
==
NTE_BAD_DATA
)
||
/* W2K */
broken
(
!
result
&&
GetLastError
()
==
NTE_BAD_FLAGS
),
/* Win9x/WinME/NT4 */
"%08x
\n
"
,
GetLastError
());
/* but it has no effect. */
/* but it has no effect. */
dwVal
=
0xdeadbeef
;
dwVal
=
0xdeadbeef
;
dwLen
=
sizeof
(
DWORD
);
dwLen
=
sizeof
(
DWORD
);
...
...
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