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
610a3b1a
Commit
610a3b1a
authored
Aug 07, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Aug 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Remove valid_session_key from NegoHelper since it is only ever set and not read.
parent
888a8e27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
ntlm.c
dlls/secur32/ntlm.c
+0
-4
secur32_priv.h
dlls/secur32/secur32_priv.h
+0
-1
No files found.
dlls/secur32/ntlm.c
View file @
610a3b1a
...
...
@@ -786,7 +786,6 @@ static SECURITY_STATUS SEC_ENTRY ntlm_InitializeSecurityContextW(
TRACE
(
"Failed to decode session key
\n
"
);
}
TRACE
(
"Session key is %s
\n
"
,
debugstr_a
(
buffer
+
3
));
helper
->
valid_session_key
=
TRUE
;
HeapFree
(
GetProcessHeap
(),
0
,
helper
->
session_key
);
helper
->
session_key
=
HeapAlloc
(
GetProcessHeap
(),
0
,
bin_len
);
if
(
!
helper
->
session_key
)
...
...
@@ -1155,7 +1154,6 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcceptSecurityContext(
if
(
strncmp
(
buffer
,
"BH "
,
3
)
==
0
)
{
TRACE
(
"Helper sent %s
\n
"
,
debugstr_a
(
buffer
+
3
));
helper
->
valid_session_key
=
FALSE
;
helper
->
session_key
=
HeapAlloc
(
GetProcessHeap
(),
0
,
16
);
/*FIXME: Generate the dummy session key = MD4(MD4(password))*/
memset
(
helper
->
session_key
,
0
,
16
);
...
...
@@ -1168,7 +1166,6 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcceptSecurityContext(
TRACE
(
"Failed to decode session key
\n
"
);
}
TRACE
(
"Session key is %s
\n
"
,
debugstr_a
(
buffer
+
3
));
helper
->
valid_session_key
=
TRUE
;
helper
->
session_key
=
HeapAlloc
(
GetProcessHeap
(),
0
,
16
);
if
(
!
helper
->
session_key
)
{
...
...
@@ -1226,7 +1223,6 @@ static SECURITY_STATUS SEC_ENTRY ntlm_DeleteSecurityContext(PCtxtHandle phContex
SECUR32_arc4Cleanup
(
helper
->
crypt
.
ntlm
.
a4i
);
HeapFree
(
GetProcessHeap
(),
0
,
helper
->
session_key
);
helper
->
valid_session_key
=
FALSE
;
SECUR32_arc4Cleanup
(
helper
->
crypt
.
ntlm2
.
send_a4i
);
SECUR32_arc4Cleanup
(
helper
->
crypt
.
ntlm2
.
recv_a4i
);
HeapFree
(
GetProcessHeap
(),
0
,
helper
->
crypt
.
ntlm2
.
send_sign_key
);
...
...
dlls/secur32/secur32_priv.h
View file @
610a3b1a
...
...
@@ -70,7 +70,6 @@ typedef struct _NegoHelper {
int
com_buf_size
;
int
com_buf_offset
;
BYTE
*
session_key
;
BOOL
valid_session_key
;
unsigned
long
neg_flags
;
struct
{
struct
{
...
...
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