secur32: Dump the buffer descs in schan_InitializeSecurityContextW().

This commit is contained in:
Henri Verbeet 2008-12-28 22:21:35 +01:00 committed by Alexandre Julliard
parent 7bf267624d
commit 24c5e6edbf
1 changed files with 16 additions and 0 deletions

View File

@ -622,6 +622,19 @@ static int schan_init_sec_ctx_get_next_buffer(const struct schan_transport *t, s
return -1;
}
static void dump_buffer_desc(SecBufferDesc *desc)
{
unsigned int i;
if (!desc) return;
TRACE("Buffer desc %p:\n", desc);
for (i = 0; i < desc->cBuffers; ++i)
{
SecBuffer *b = &desc->pBuffers[i];
TRACE("\tbuffer %u: cbBuffer %ld, BufferType %#lx pvBuffer %p\n", i, b->cbBuffer, b->BufferType, b->pvBuffer);
}
}
/***********************************************************************
* InitializeSecurityContextW
*/
@ -641,6 +654,9 @@ static SECURITY_STATUS SEC_ENTRY schan_InitializeSecurityContextW(
debugstr_w(pszTargetName), fContextReq, Reserved1, TargetDataRep, pInput,
Reserved1, phNewContext, pOutput, pfContextAttr, ptsExpiry);
dump_buffer_desc(pInput);
dump_buffer_desc(pOutput);
if (!phContext)
{
ULONG_PTR handle;