FreeContextBuffer

The FreeContextBuffer function enables callers of security provider functions to free a memory buffer allocated by the security provider. For example, the InitializeSecurityContext function may allocate a buffer for returning the outbound context token.

SECURITY_STATUS FreeContextBuffer(
  PVOID pvContextBuffer  // buffer to free
);
 

Parameters

pvContextBuffer
Pointer to memory allocated by the security provider.

Return Values

If the function succeeds, the return value is SEC_E_OK.

If the function fails, the return value is a nonzero error code.

Remarks

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

See Also

InitializeSecurityContext