CMSDecoderIsContentEncrypted(_:_:)
Determines whether a CMS message was encrypted.
Declaration
func CMSDecoderIsContentEncrypted(_ cmsDecoder: CMSDecoder, _ isEncryptedOut: UnsafeMutablePointer<DarwinBoolean>) -> OSStatusParameters
- cmsDecoder:
The CMSDecoder reference returned by the
CMSDecoderCreatefunction. - isEncryptedOut:
Returns
TRUEif the message was encrypted.
Return Value
A result code. See Security Framework Result Codes.
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.