CMSEncoderAddSigners(_:_:)
Specifies signers of the message.
Declaration
func CMSEncoderAddSigners(_ cmsEncoder: CMSEncoder, _ signerOrArray: CFTypeRef) -> OSStatusParameters
- cmsEncoder:
The CMSEncoder reference returned by the
CMSEncoderCreatefunction. - signerOrArray:
The identity object for the identity of one signer, specified as type
SecIdentityRef, or aCFArrayof identity objects of typeSecIdentityRef.
Return Value
A result code. See Security Framework Result Codes.
Discussion
Call this function only if the message is to be signed. You can call this function more than once for the same message.
If you do call this function, you must call it before the first call to the CMSEncoderUpdateContent(_:_:_:) function.