Function

CMSEncoderCopyRecipients(_:_:)

Obtains the array of recipients specified with the CMSEncoderAddRecipients function.

Declaration

func CMSEncoderCopyRecipients(_ cmsEncoder: CMSEncoder, _ recipientsOut: UnsafeMutablePointer<CFArray?>) -> OSStatus

Parameters

cmsEncoder

The CMSEncoder reference returned by the CMSEncoderCreate(_:) function.

recipientsOut

On return, points to an array of certificate objects of type SecCertificate of the recipients of the message. If the CMSEncoderAddRecipients(_:_:) function has not been called for this message, this function returns a NULL array. You must use the CFRelease function to free this reference when you are finished using it.

Return Value

See Also

Message Characteristics

func CMSEncoderCopySigners(CMSEncoder, UnsafeMutablePointer<CFArray?>) -> OSStatus

Obtains the array of signers specified with the CMSEncoderAddSigners function.

func CMSEncoderCopyEncapsulatedContentType(CMSEncoder, UnsafeMutablePointer<CFData?>) -> OSStatus

Obtains the object identifier for the encapsulated data of a signed message.

func CMSEncoderCopySupportingCerts(CMSEncoder, UnsafeMutablePointer<CFArray?>) -> OSStatus

Obtains the certificates added to a message with CMSEncoderAddSupportingCerts.

func CMSEncoderGetCertificateChainMode(CMSEncoder, UnsafeMutablePointer<CMSCertificateChainMode>) -> OSStatus

Obtains a constant that indicates which certificates are to be included in a signed CMS message.