This describes the operations APIs for the OSCF Privilege Mechanism.This function returns the exemptions possessed by the current thread. For OCSF, if the exemption returned is non-zero, it implies that the CSSM_RequestCssmExemption API had been called to request the specific set of exemptions and the application is running with the OCSF Security Level 3 feature installed.
CSSM_CheckCssmExemptionCSSM_RETURN CSSMAPICSSM_CheckCssm ExemptionCSSM_EXEMPTION_MASK *Exemptions)
Output
A CSSM_OK return value signifies the operation was successful and that the exemption returned is valid. When CSSM_FAIL is returned, an error has occurred. Use CSSM_GetError to obtain the error code.
CSSM_RequestCssmExemption