Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
46eac8de
Commit
46eac8de
authored
Jun 20, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcrypt/tests: Fix some failures on Windows 7.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8f1d1c53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
4 deletions
+25
-4
bcrypt.c
dlls/bcrypt/tests/bcrypt.c
+25
-4
No files found.
dlls/bcrypt/tests/bcrypt.c
View file @
46eac8de
...
...
@@ -2381,16 +2381,37 @@ static void test_BcryptDeriveKeyCapi(void)
}
ret
=
pBCryptDeriveKeyCapi
(
NULL
,
NULL
,
NULL
,
0
,
0
);
ok
(
ret
==
STATUS_INVALID_PARAMETER
,
"got %08x
\n
"
,
ret
);
ok
(
ret
==
STATUS_INVALID_PARAMETER
||
ret
==
STATUS_INVALID_HANDLE
/* win7 */
,
"got %08x
\n
"
,
ret
);
ret
=
pBCryptDeriveKeyCapi
(
hash
,
NULL
,
NULL
,
0
,
0
);
ok
(
ret
==
STATUS_INVALID_PARAMETER
,
"got %08x
\n
"
,
ret
);
ok
(
ret
==
STATUS_INVALID_PARAMETER
||
!
ret
/* win7 */
,
"got %08x
\n
"
,
ret
);
ret
=
pBCryptDestroyHash
(
hash
);
ok
(
!
ret
,
"got %08x
\n
"
,
ret
);
ret
=
pBCryptCreateHash
(
alg
,
&
hash
,
NULL
,
0
,
NULL
,
0
,
0
);
ok
(
!
ret
,
"got %08x
\n
"
,
ret
);
ret
=
pBCryptDeriveKeyCapi
(
hash
,
NULL
,
key
,
0
,
0
);
ok
(
ret
==
STATUS_INVALID_PARAMETER
,
"got %08x
\n
"
,
ret
);
ok
(
ret
==
STATUS_INVALID_PARAMETER
||
!
ret
/* win7 */
,
"got %08x
\n
"
,
ret
);
ret
=
pBCryptDestroyHash
(
hash
);
ok
(
!
ret
,
"got %08x
\n
"
,
ret
);
ret
=
pBCryptCreateHash
(
alg
,
&
hash
,
NULL
,
0
,
NULL
,
0
,
0
);
ok
(
!
ret
,
"got %08x
\n
"
,
ret
);
memset
(
key
,
0
,
sizeof
(
key
));
ret
=
pBCryptDeriveKeyCapi
(
hash
,
NULL
,
key
,
41
,
0
);
ok
(
ret
==
STATUS_INVALID_PARAMETER
,
"got %08x
\n
"
,
ret
);
ok
(
ret
==
STATUS_INVALID_PARAMETER
||
!
ret
/* win7 */
,
"got %08x
\n
"
,
ret
);
if
(
!
ret
)
ok
(
!
memcmp
(
key
,
expect
,
sizeof
(
expect
)
-
1
),
"wrong key data
\n
"
);
ret
=
pBCryptDestroyHash
(
hash
);
ok
(
!
ret
,
"got %08x
\n
"
,
ret
);
ret
=
pBCryptCreateHash
(
alg
,
&
hash
,
NULL
,
0
,
NULL
,
0
,
0
);
ok
(
!
ret
,
"got %08x
\n
"
,
ret
);
memset
(
key
,
0
,
sizeof
(
key
));
ret
=
pBCryptDeriveKeyCapi
(
hash
,
NULL
,
key
,
20
,
0
);
...
...
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