Obtains an array of all of the certificates in a message.
- macOS 10.5+
The CMSDecoder reference returned by the
On return, points to an array of
NULLif the message does not contain any certificates (the message was encrypted but not signed); this is not considered an error. You must use the
CFReleasefunction to free this reference when you are finished using it.
A result code. See Security Framework Result Codes.
A CMS message can contain arbitrary sets of certificates other than or in addition to those indicating the identity of signers. You can use this function to retrieve such certificates from a message. If the message was signed, it contains signer certificates. You can use the
CMSDecoder functions to retrieve the certificates for a specific signer.
You cannot call this function until after you have called the