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
6720a129
Commit
6720a129
authored
Nov 08, 2006
by
Kai Blin
Committed by
Alexandre Julliard
Nov 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Delete session key and arc4 context when the session based security context is deleted.
parent
d88d2d4d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
dispatcher.c
dlls/secur32/dispatcher.c
+0
-1
ntlm.c
dlls/secur32/ntlm.c
+16
-16
secur32_priv.h
dlls/secur32/secur32_priv.h
+1
-0
No files found.
dlls/secur32/dispatcher.c
View file @
6720a129
...
...
@@ -258,7 +258,6 @@ void cleanup_helper(PNegoHelper helper)
return
;
HeapFree
(
GetProcessHeap
(),
0
,
helper
->
com_buf
);
HeapFree
(
GetProcessHeap
(),
0
,
helper
->
session_key
);
/* closing stdin will terminate ntlm_auth */
close
(
helper
->
pipe_out
);
...
...
dlls/secur32/ntlm.c
View file @
6720a129
...
...
@@ -690,8 +690,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_InitializeSecurityContextW(
}
TRACE
(
"Session key is %s
\n
"
,
debugstr_a
(
buffer
+
3
));
helper
->
valid_session_key
=
TRUE
;
if
(
!
helper
->
session_key
)
helper
->
session_key
=
HeapAlloc
(
GetProcessHeap
(),
0
,
bin_len
);
helper
->
session_key
=
HeapAlloc
(
GetProcessHeap
(),
0
,
bin_len
);
if
(
!
helper
->
session_key
)
{
TRACE
(
"Failed to allocate memory for session key
\n
"
);
...
...
@@ -1036,8 +1035,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcceptSecurityContext(
}
TRACE
(
"Session key is %s
\n
"
,
debugstr_a
(
buffer
+
3
));
helper
->
valid_session_key
=
TRUE
;
if
(
!
helper
->
session_key
)
helper
->
session_key
=
HeapAlloc
(
GetProcessHeap
(),
0
,
16
);
helper
->
session_key
=
HeapAlloc
(
GetProcessHeap
(),
0
,
16
);
if
(
!
helper
->
session_key
)
{
TRACE
(
"Failed to allocate memory for session key
\n
"
);
...
...
@@ -1081,20 +1079,22 @@ static SECURITY_STATUS SEC_ENTRY ntlm_CompleteAuthToken(PCtxtHandle phContext,
*/
static
SECURITY_STATUS
SEC_ENTRY
ntlm_DeleteSecurityContext
(
PCtxtHandle
phContext
)
{
SECURITY_STATUS
ret
;
PNegoHelper
helper
;
TRACE
(
"%p
\n
"
,
phContext
);
if
(
phContext
)
{
phContext
->
dwUpper
=
0
;
phContext
->
dwLower
=
0
;
ret
=
SEC_E_OK
;
}
else
{
ret
=
SEC_E_INVALID_HANDLE
;
}
return
ret
;
if
(
!
phContext
)
return
SEC_E_INVALID_HANDLE
;
helper
=
(
PNegoHelper
)
phContext
->
dwLower
;
phContext
->
dwUpper
=
0
;
phContext
->
dwLower
=
0
;
SECUR32_arc4Cleanup
(
helper
->
crypt
.
ntlm
.
a4i
);
HeapFree
(
GetProcessHeap
(),
0
,
helper
->
session_key
);
helper
->
valid_session_key
=
FALSE
;
return
SEC_E_OK
;
}
/***********************************************************************
...
...
dlls/secur32/secur32_priv.h
View file @
6720a129
...
...
@@ -139,6 +139,7 @@ SECURITY_STATUS SECUR32_CreateNTLMv1SessionKey(PBYTE password, int len, PBYTE se
arc4_info
*
SECUR32_arc4Alloc
(
void
);
void
SECUR32_arc4Init
(
arc4_info
*
a4i
,
const
BYTE
*
key
,
unsigned
int
keyLen
);
void
SECUR32_arc4Process
(
arc4_info
*
a4i
,
BYTE
*
inoutString
,
unsigned
int
length
);
void
SECUR32_arc4Cleanup
(
arc4_info
*
a4i
);
/* NTLMSSP flags indicating the negotiated features */
#define NTLMSSP_NEGOTIATE_UNICODE 0x00000001
...
...
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