Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
64ae8285
Commit
64ae8285
authored
18 years ago
by
Michael McCormack
Committed by
Alexandre Julliard
18 years ago
Browse files
Options
Downloads
Patches
Plain Diff
advapi32: Implement and test SystemFunction009.
parent
80c3a212
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/advapi32/advapi32.spec
+1
-1
1 addition, 1 deletion
dlls/advapi32/advapi32.spec
dlls/advapi32/crypt_lmhash.c
+10
-0
10 additions, 0 deletions
dlls/advapi32/crypt_lmhash.c
dlls/advapi32/tests/crypt_lmhash.c
+26
-0
26 additions, 0 deletions
dlls/advapi32/tests/crypt_lmhash.c
with
37 additions
and
1 deletion
dlls/advapi32/advapi32.spec
+
1
−
1
View file @
64ae8285
...
...
@@ -603,7 +603,7 @@
@ stdcall SystemFunction006(ptr ptr)
@ stdcall SystemFunction007(ptr ptr)
@ stdcall SystemFunction008(ptr ptr ptr)
@ st
ub
SystemFunction009
@ st
dcall
SystemFunction009
(ptr ptr ptr)
@ stub SystemFunction010
@ stub SystemFunction011
@ stub SystemFunction012
...
...
This diff is collapsed.
Click to expand it.
dlls/advapi32/crypt_lmhash.c
+
10
−
0
View file @
64ae8285
...
...
@@ -90,6 +90,16 @@ NTSTATUS WINAPI SystemFunction008(const LPBYTE challenge, const LPBYTE hash, LPB
return
STATUS_SUCCESS
;
}
/******************************************************************************
* SystemFunction009 [ADVAPI32.@]
*
* Seems to do the same as SystemFunction008 ...
*/
NTSTATUS
WINAPI
SystemFunction009
(
const
LPBYTE
challenge
,
const
LPBYTE
hash
,
LPBYTE
response
)
{
return
SystemFunction008
(
challenge
,
hash
,
response
);
}
/******************************************************************************
* SystemFunction001 [ADVAPI32.@]
*
...
...
This diff is collapsed.
Click to expand it.
dlls/advapi32/tests/crypt_lmhash.c
+
26
−
0
View file @
64ae8285
...
...
@@ -41,6 +41,7 @@ typedef NTSTATUS (WINAPI *fnSystemFunction004)(const struct ustring *, const str
typedef
NTSTATUS
(
WINAPI
*
fnSystemFunction005
)(
const
struct
ustring
*
,
const
struct
ustring
*
,
struct
ustring
*
);
typedef
VOID
(
WINAPI
*
fnSystemFunction006
)(
PCSTR
passwd
,
PSTR
lmhash
);
typedef
NTSTATUS
(
WINAPI
*
fnSystemFunction008
)(
const
LPBYTE
,
const
LPBYTE
,
LPBYTE
);
typedef
NTSTATUS
(
WINAPI
*
fnSystemFunction009
)(
const
LPBYTE
,
const
LPBYTE
,
LPBYTE
);
typedef
NTSTATUS
(
WINAPI
*
fnSystemFunction032
)(
struct
ustring
*
,
struct
ustring
*
);
fnSystemFunction001
pSystemFunction001
;
...
...
@@ -50,6 +51,7 @@ fnSystemFunction004 pSystemFunction004;
fnSystemFunction004
pSystemFunction005
;
fnSystemFunction006
pSystemFunction006
;
fnSystemFunction008
pSystemFunction008
;
fnSystemFunction008
pSystemFunction009
;
fnSystemFunction032
pSystemFunction032
;
static
void
test_SystemFunction006
(
void
)
...
...
@@ -333,6 +335,26 @@ static void test_SystemFunction005(void)
ok
(
r
==
STATUS_INVALID_PARAMETER_2
,
"function failed
\n
"
);
}
static
void
test_SystemFunction009
(
void
)
{
unsigned
char
hash
[
0x10
]
=
{
0xff
,
0x37
,
0x50
,
0xbc
,
0xc2
,
0xb2
,
0x24
,
0x12
,
0xc2
,
0x26
,
0x5b
,
0x23
,
0x73
,
0x4e
,
0x0d
,
0xac
};
unsigned
char
challenge
[
8
]
=
{
0x01
,
0x23
,
0x45
,
0x67
,
0x89
,
0xab
,
0xcd
,
0xef
};
unsigned
char
expected
[
0x18
]
=
{
0xc3
,
0x37
,
0xcd
,
0x5c
,
0xbd
,
0x44
,
0xfc
,
0x97
,
0x82
,
0xa6
,
0x67
,
0xaf
,
0x6d
,
0x42
,
0x7c
,
0x6d
,
0xe6
,
0x7c
,
0x20
,
0xc2
,
0xd3
,
0xe7
,
0x7c
,
0x56
};
unsigned
char
output
[
0x18
];
int
r
;
memset
(
output
,
0
,
sizeof
output
);
r
=
pSystemFunction009
(
challenge
,
hash
,
output
);
ok
(
r
==
STATUS_SUCCESS
,
"wrong error code
\n
"
);
ok
(
!
memcmp
(
output
,
expected
,
sizeof
expected
),
"response wrong
\n
"
);
}
START_TEST
(
crypt_lmhash
)
{
HMODULE
module
;
...
...
@@ -367,6 +389,10 @@ START_TEST(crypt_lmhash)
if
(
pSystemFunction008
)
test_SystemFunction008
();
pSystemFunction009
=
(
fnSystemFunction009
)
GetProcAddress
(
module
,
"SystemFunction009"
);
if
(
pSystemFunction009
)
test_SystemFunction009
();
pSystemFunction032
=
(
fnSystemFunction032
)
GetProcAddress
(
module
,
"SystemFunction032"
);
if
(
pSystemFunction032
)
test_SystemFunction032
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment