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
3cf9c85f
Commit
3cf9c85f
authored
Aug 13, 2006
by
Kai Blin
Committed by
Alexandre Julliard
Aug 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Add handling for SECPKG_CONTEXT_FLAGS to QueryContextAttributes, unify indentation.
parent
9cd2f286
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
9 deletions
+20
-9
ntlm.c
dlls/secur32/ntlm.c
+20
-9
No files found.
dlls/secur32/ntlm.c
View file @
3cf9c85f
...
...
@@ -1019,7 +1019,18 @@ static SECURITY_STATUS SEC_ENTRY ntlm_QueryContextAttributesW(PCtxtHandle phCont
_x
(
SECPKG_ATTR_ACCESS_TOKEN
);
_x
(
SECPKG_ATTR_AUTHORITY
);
_x
(
SECPKG_ATTR_DCE_INFO
);
_x
(
SECPKG_ATTR_FLAGS
);
case
SECPKG_ATTR_FLAGS
:
{
PSecPkgContext_Flags
spcf
=
(
PSecPkgContext_Flags
)
pBuffer
;
PNegoHelper
helper
=
(
PNegoHelper
)
phContext
->
dwLower
;
spcf
->
Flags
=
0
;
if
(
helper
->
neg_flags
&
NTLMSSP_NEGOTIATE_SIGN
)
spcf
->
Flags
|=
ISC_RET_INTEGRITY
;
if
(
helper
->
neg_flags
&
NTLMSSP_NEGOTIATE_SEAL
)
spcf
->
Flags
|=
ISC_RET_CONFIDENTIALITY
;
return
SEC_E_OK
;
}
_x
(
SECPKG_ATTR_KEY_INFO
);
_x
(
SECPKG_ATTR_LIFESPAN
);
_x
(
SECPKG_ATTR_NAMES
);
...
...
@@ -1029,14 +1040,14 @@ static SECURITY_STATUS SEC_ENTRY ntlm_QueryContextAttributesW(PCtxtHandle phCont
_x
(
SECPKG_ATTR_PASSWORD_EXPIRY
);
_x
(
SECPKG_ATTR_SESSION_KEY
);
case
SECPKG_ATTR_SIZES
:
{
PSecPkgContext_Sizes
spcs
=
(
PSecPkgContext_Sizes
)
pBuffer
;
spcs
->
cbMaxToken
=
NTLM_MAX_BUF
;
spcs
->
cbMaxSignature
=
16
;
spcs
->
cbBlockSize
=
0
;
spcs
->
cbSecurityTrailer
=
16
;
return
SEC_E_OK
;
}
{
PSecPkgContext_Sizes
spcs
=
(
PSecPkgContext_Sizes
)
pBuffer
;
spcs
->
cbMaxToken
=
NTLM_MAX_BUF
;
spcs
->
cbMaxSignature
=
16
;
spcs
->
cbBlockSize
=
0
;
spcs
->
cbSecurityTrailer
=
16
;
return
SEC_E_OK
;
}
_x
(
SECPKG_ATTR_STREAM_SIZES
);
_x
(
SECPKG_ATTR_TARGET_INFORMATION
);
#undef _x
...
...
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