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
1a71294a
Commit
1a71294a
authored
Mar 10, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Constify some variables.
parent
4b515b6a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
crypt_md4.c
dlls/advapi32/crypt_md4.c
+3
-3
crypt_md4.c
dlls/advapi32/tests/crypt_md4.c
+1
-1
No files found.
dlls/advapi32/crypt_md4.c
View file @
1a71294a
...
...
@@ -285,12 +285,12 @@ static void MD4Transform( unsigned int buf[4], const unsigned int in[16] )
* Failure: STATUS_UNSUCCESSFUL
*
*/
NTSTATUS
WINAPI
SystemFunction007
(
PUNICODE_STRING
string
,
LPBYTE
hash
)
NTSTATUS
WINAPI
SystemFunction007
(
const
UNICODE_STRING
*
string
,
LPBYTE
hash
)
{
MD4_CTX
ctx
;
MD4Init
(
&
ctx
);
MD4Update
(
&
ctx
,
(
BYTE
*
)
string
->
Buffer
,
string
->
Length
);
MD4Update
(
&
ctx
,
(
const
BYTE
*
)
string
->
Buffer
,
string
->
Length
);
MD4Final
(
&
ctx
);
memcpy
(
hash
,
ctx
.
digest
,
0x10
);
...
...
@@ -313,7 +313,7 @@ NTSTATUS WINAPI SystemFunction007(PUNICODE_STRING string, LPBYTE hash)
* Failure: STATUS_UNSUCCESSFUL
*
*/
NTSTATUS
WINAPI
SystemFunction010
(
LPVOID
unknown
,
LPBYTE
data
,
LPBYTE
hash
)
NTSTATUS
WINAPI
SystemFunction010
(
LPVOID
unknown
,
const
BYTE
*
data
,
LPBYTE
hash
)
{
MD4_CTX
ctx
;
...
...
dlls/advapi32/tests/crypt_md4.c
View file @
1a71294a
...
...
@@ -39,7 +39,7 @@ typedef struct
typedef
VOID
(
WINAPI
*
fnMD4Init
)(
MD4_CTX
*
ctx
);
typedef
VOID
(
WINAPI
*
fnMD4Update
)(
MD4_CTX
*
ctx
,
const
unsigned
char
*
src
,
const
int
len
);
typedef
VOID
(
WINAPI
*
fnMD4Final
)(
MD4_CTX
*
ctx
);
typedef
int
(
WINAPI
*
fnSystemFunction007
)(
PUNICODE_STRING
,
LPBYTE
);
typedef
int
(
WINAPI
*
fnSystemFunction007
)(
const
UNICODE_STRING
*
,
LPBYTE
);
typedef
int
(
WINAPI
*
md4hashfunc
)(
LPVOID
,
const
LPBYTE
,
LPBYTE
);
fnMD4Init
pMD4Init
;
...
...
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