secur32: Return more context attributes in schan_InitializeSecurityContextW.

oldstable
Sebastian Lackner 2014-11-11 08:50:46 +01:00 committed by Alexandre Julliard
parent 26c9ce5d0b
commit 8729575112
1 changed files with 8 additions and 0 deletions

View File

@ -908,8 +908,16 @@ static SECURITY_STATUS SEC_ENTRY schan_InitializeSecurityContextW(
}
*pfContextAttr = 0;
if (ctx->req_ctx_attr & ISC_REQ_REPLAY_DETECT)
*pfContextAttr |= ISC_RET_REPLAY_DETECT;
if (ctx->req_ctx_attr & ISC_REQ_SEQUENCE_DETECT)
*pfContextAttr |= ISC_RET_SEQUENCE_DETECT;
if (ctx->req_ctx_attr & ISC_REQ_CONFIDENTIALITY)
*pfContextAttr |= ISC_RET_CONFIDENTIALITY;
if (ctx->req_ctx_attr & ISC_REQ_ALLOCATE_MEMORY)
*pfContextAttr |= ISC_RET_ALLOCATED_MEMORY;
if (ctx->req_ctx_attr & ISC_REQ_STREAM)
*pfContextAttr |= ISC_RET_STREAM;
return ret;
}