CSSM_GetError

Purpose

This function returns the error information for the current thread.

Format

CSSM_ERROR_PTR CSSMAPI CSSM_GetError (void)

Parameters

None

Return Value

Returns the current error information. If a NULL pointer is returned, the error information for the current thread has not been initialized. CSSM_GetError attempts to initialize the information if it does not exist, but if that fails, a NULL pointer is returned. If the pointer is not NULL and the error code is CSSM_OK, then there is no current error.

Related Information

CSSM_InitError
CSSM_DestroyError
CSSM_ClearError
CSSM_SetError
CSSM_IsCSSMError
CSSM_IsCLError
CSSM_IsTPError
CSSM_Is_DLError
CSSM_IsCSPError