Returns a string explaining the meaning of a security result code.


CFStringRef SecCopyErrorMessageString(OSStatus status, void *reserved);



A result code of type OSStatus returned by a security function. See Security Framework Result Codes for a list of codes.


Reserved for future use. Pass NULL for this parameter.

Return Value

A human-readable string describing the result, or NULL if no string is available for the specified result code. Call the CFRelease function to release this object when you are finished using it.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software