Function

SecCopyErrorMessageString(_:_:)

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

Declaration

func SecCopyErrorMessageString(_ status: OSStatus, _ reserved: UnsafeMutableRawPointer?) -> CFString?

Parameters

status

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

reserved

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.