CMSDecoderCopyContent(_:_:)
Obtains the message content, if any.
Declaration
func CMSDecoderCopyContent(_ cmsDecoder: CMSDecoder, _ contentOut: UnsafeMutablePointer<CFData?>) -> OSStatusParameters
- cmsDecoder:
The CMSDecoder reference returned by the
CMSDecoderCreatefunction. - contentOut:
On return, points to the message’s content. Returns
NULLif the content is detached. You must use theCFReleasefunction to free this reference when you are finished using it.
Return Value
A result code. See Security Framework Result Codes.
Discussion
If the message has detached content, you are responsible for retrieving the content. In that case, you use the CMSDecoderSetDetachedContent(_:_:) function to tell the decoder the location of the content.
You cannot call this function until after you have called the CMSDecoderFinalizeMessage function.