Function

CMSDecoderIsContentEncrypted(_:_:)

Determines whether a CMS message was encrypted.

Declaration

func CMSDecoderIsContentEncrypted(_ cmsDecoder: CMSDecoder, _ isEncryptedOut: UnsafeMutablePointer<DarwinBoolean>) -> OSStatus

Parameters

cmsDecoder

The CMSDecoder reference returned by the CMSDecoderCreate function.

isEncryptedOut

Returns TRUE if the message was encrypted.

Return Value

Discussion

Note that if the message was encrypted and the decoding succeeded (CMSDecoderFinalizeMessage returned noErr), then the message was successfully decrypted. Call CMSDecoderCopyContent(_:_:) to retrieve the decrypted content.

You cannot call this function until after you have called the CMSDecoderFinalizeMessage function.

See Also

Message Content