Function

CMSDecoderCopyContent(_:_:)

Obtains the message content, if any.

Declaration

func CMSDecoderCopyContent(_ cmsDecoder: CMSDecoder, _ contentOut: UnsafeMutablePointer<CFData?>) -> OSStatus

Parameters

cmsDecoder

The CMSDecoder reference returned by the CMSDecoderCreate function.

contentOut

On return, points to the message’s content. Returns NULL if the content is detached. You must use the CFRelease function to free this reference when you are finished using it.

Return Value

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.

See Also

Message Content