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
8414777c
Commit
8414777c
authored
Apr 27, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Add partial support for ISC_REQ_ALLOCATE_MEMORY in the NTLM security provider.
parent
d89a0382
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
ntlm.c
dlls/secur32/ntlm.c
+20
-4
No files found.
dlls/secur32/ntlm.c
View file @
8414777c
...
@@ -436,10 +436,6 @@ static SECURITY_STATUS SEC_ENTRY ntlm_InitializeSecurityContextW(
...
@@ -436,10 +436,6 @@ static SECURITY_STATUS SEC_ENTRY ntlm_InitializeSecurityContextW(
TRACE
(
"According to a MS whitepaper pszTargetName is ignored.
\n
"
);
TRACE
(
"According to a MS whitepaper pszTargetName is ignored.
\n
"
);
}
}
/* Handle all the flags */
/* Handle all the flags */
if
(
fContextReq
&
ISC_REQ_ALLOCATE_MEMORY
)
{
FIXME
(
"InitializeSecurityContext(): ISC_REQ_ALLOCATE_MEMORY stub
\n
"
);
}
if
(
fContextReq
&
ISC_REQ_CONFIDENTIALITY
)
if
(
fContextReq
&
ISC_REQ_CONFIDENTIALITY
)
{
{
FIXME
(
"InitializeSecurityContext(): ISC_REQ_CONFIDENTIALITY stub
\n
"
);
FIXME
(
"InitializeSecurityContext(): ISC_REQ_CONFIDENTIALITY stub
\n
"
);
...
@@ -547,6 +543,16 @@ static SECURITY_STATUS SEC_ENTRY ntlm_InitializeSecurityContextW(
...
@@ -547,6 +543,16 @@ static SECURITY_STATUS SEC_ENTRY ntlm_InitializeSecurityContextW(
/* put the decoded client blob into the out buffer */
/* put the decoded client blob into the out buffer */
if
(
fContextReq
&
ISC_REQ_ALLOCATE_MEMORY
)
{
if
(
pOutput
)
{
pOutput
->
cBuffers
=
1
;
pOutput
->
pBuffers
[
0
].
pvBuffer
=
SECUR32_ALLOC
(
bin_len
);
pOutput
->
pBuffers
[
0
].
cbBuffer
=
bin_len
;
}
}
if
(
!
pOutput
||
!
pOutput
->
cBuffers
||
pOutput
->
pBuffers
[
0
].
cbBuffer
<
bin_len
)
if
(
!
pOutput
||
!
pOutput
->
cBuffers
||
pOutput
->
pBuffers
[
0
].
cbBuffer
<
bin_len
)
{
{
TRACE
(
"out buffer is NULL or has not enough space
\n
"
);
TRACE
(
"out buffer is NULL or has not enough space
\n
"
);
...
@@ -643,6 +649,16 @@ static SECURITY_STATUS SEC_ENTRY ntlm_InitializeSecurityContextW(
...
@@ -643,6 +649,16 @@ static SECURITY_STATUS SEC_ENTRY ntlm_InitializeSecurityContextW(
/* put the decoded client blob into the out buffer */
/* put the decoded client blob into the out buffer */
if
(
fContextReq
&
ISC_REQ_ALLOCATE_MEMORY
)
{
if
(
pOutput
)
{
pOutput
->
cBuffers
=
1
;
pOutput
->
pBuffers
[
0
].
pvBuffer
=
SECUR32_ALLOC
(
bin_len
);
pOutput
->
pBuffers
[
0
].
cbBuffer
=
bin_len
;
}
}
if
(
!
pOutput
||
!
pOutput
->
cBuffers
||
pOutput
->
pBuffers
[
0
].
cbBuffer
<
bin_len
)
if
(
!
pOutput
||
!
pOutput
->
cBuffers
||
pOutput
->
pBuffers
[
0
].
cbBuffer
<
bin_len
)
{
{
TRACE
(
"out buffer is NULL or has not enough space
\n
"
);
TRACE
(
"out buffer is NULL or has not enough space
\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