FreeContextBuffer function

The FreeContextBuffer function enables callers of security package functions to free memory buffers allocated by the security package.

Syntax

SECURITY_STATUS SEC_ENTRY FreeContextBuffer(
  PVOID pvContextBuffer
);

Parameters

pvContextBuffer

A pointer to memory to be freed.

Return Value

If the function succeeds, the function returns SEC_E_OK.

If the function fails, it returns a nonzero error code.

Remarks

Memory buffers are typically allocated by the InitializeSecurityContext (General) and AcceptSecurityContext (General) functions.

The FreeContextBuffer function can free any memory allocated by a security package.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header sspi.h (include Security.h)
Library Secur32.lib
DLL Secur32.dll

See Also

SSPI Functions