Contents

CMSEncoderAddSignedAttributes(_:_:)

Specifies attributes for a signed message.

Declaration

func CMSEncoderAddSignedAttributes(_ cmsEncoder: CMSEncoder, _ signedAttributes: CMSSignedAttributes) -> OSStatus

Parameters

  • cmsEncoder:

    The CMSEncoder reference returned by the CMSEncoderCreate function.

  • signedAttributes:

    Attribute flags as defined in Cmssignedattributes.

Return Value

A result code. See Security Framework Result Codes.

Discussion

Attributes are optional for signed messages. They are not used for other types of CMS messages. The use of attributes is described in section 2.5 of the S/MIME 3.1 specification.

If you do call this function, you must call it before the first call to the CMSEncoderUpdateContent(_:_:_:) function.

See Also

Related Documentation