Module: wine Branch: master Commit: 3cf9c85f83d2693b323b5948d11eeda1d4404c57 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=3cf9c85f83d2693b323b5948...
Author: Kai Blin kai.blin@gmail.com Date: Sun Aug 13 14:44:39 2006 +0200
secur32: Add handling for SECPKG_CONTEXT_FLAGS to QueryContextAttributes, unify indentation.
---
dlls/secur32/ntlm.c | 29 ++++++++++++++++++++--------- 1 files changed, 20 insertions(+), 9 deletions(-)
diff --git a/dlls/secur32/ntlm.c b/dlls/secur32/ntlm.c index 2f16cd4..fb9495b 100644 --- a/dlls/secur32/ntlm.c +++ b/dlls/secur32/ntlm.c @@ -1019,7 +1019,18 @@ #define _x(x) case (x) : FIXME(#x" stub\ _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 @@ #define _x(x) case (x) : FIXME(#x" stub\ _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