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
98aeac78
Commit
98aeac78
authored
Sep 07, 2006
by
Kai Blin
Committed by
Alexandre Julliard
Sep 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Fix DecryptMessage for the dummy case.
parent
85655db1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
ntlm.c
dlls/secur32/ntlm.c
+12
-1
ntlm.c
dlls/secur32/tests/ntlm.c
+1
-2
No files found.
dlls/secur32/ntlm.c
View file @
98aeac78
...
...
@@ -1445,6 +1445,8 @@ static SECURITY_STATUS SEC_ENTRY ntlm_EncryptMessage(PCtxtHandle phContext,
static
SECURITY_STATUS
SEC_ENTRY
ntlm_DecryptMessage
(
PCtxtHandle
phContext
,
PSecBufferDesc
pMessage
,
ULONG
MessageSeqNo
,
PULONG
pfQOP
)
{
SECURITY_STATUS
ret
;
ULONG
ntlmssp_flags_save
;
PNegoHelper
helper
;
TRACE
(
"(%p %p %ld %p)
\n
"
,
phContext
,
pMessage
,
MessageSeqNo
,
pfQOP
);
...
...
@@ -1475,7 +1477,16 @@ static SECURITY_STATUS SEC_ENTRY ntlm_DecryptMessage(PCtxtHandle phContext,
pMessage
->
pBuffers
[
1
].
pvBuffer
,
pMessage
->
pBuffers
[
1
].
cbBuffer
);
}
return
ntlm_VerifySignature
(
phContext
,
pMessage
,
MessageSeqNo
,
pfQOP
);
/* Make sure we use a session key for the signature check, EncryptMessage
* always does that, even in the dummy case */
ntlmssp_flags_save
=
helper
->
neg_flags
;
helper
->
neg_flags
|=
NTLMSSP_NEGOTIATE_SIGN
;
ret
=
ntlm_VerifySignature
(
phContext
,
pMessage
,
MessageSeqNo
,
pfQOP
);
helper
->
neg_flags
=
ntlmssp_flags_save
;
return
ret
;
}
static
SecurityFunctionTableA
ntlmTableA
=
{
...
...
dlls/secur32/tests/ntlm.c
View file @
98aeac78
...
...
@@ -819,10 +819,9 @@ static void testSignSeal()
memcpy
(
data
[
1
].
pvBuffer
,
crypt_message_server
,
data
[
1
].
cbBuffer
);
sec_status
=
pDecryptMessage
(
client
.
ctxt
,
crypt
,
0
,
&
qop
);
todo_wine
{
ok
(
sec_status
==
SEC_E_OK
,
"DecryptMessage returned %s, not SEC_E_OK.
\n
"
,
getSecError
(
sec_status
));
}
ok
(
!
memcmp
(
crypt
->
pBuffers
[
1
].
pvBuffer
,
message_binary
,
crypt
->
pBuffers
[
1
].
cbBuffer
),
"Failed to decrypt message correctly.
\n
"
);
...
...
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