pub unsafe extern "C-unwind" fn SecTransformSetDataAction(
ref: SecTransformImplementationRef,
action: &CFString,
new_action: SecTransformDataBlock,
) -> Option<CFRetained<CFError>>
SecCustomTransform
and block2
only.Expand description
Change the way a custom transform will do data processing. When the action parameter is kSecTransformActionProcessData The newAction block will change the way that input data is processed to become the output data. When the action parameter is kSecTransformActionInternalizeExtraData it will change the way a custom transform reads in data to be imported into the transform.
Parameter ref
: A SecTransformImplementationRef that is bound to an instance
of a custom transform.
Parameter action
: The action being overridden. This value should be one of the
following:
kSecTransformActionProcessData
Change the way that input data is processed into the
output data. The default behavior is to simply copy
the input data to the output attribute.
The kSecTransformActionProcessData action is really a special case of a SecTransformSetAttributeAction action. If you call this method with kSecTransformActionProcessData it would overwrite any kSecTransformActionAttributeNotification action that was set proviously
kSecTransformActionInternalizeExtraData Change the way that custom externalized data is imported into the transform. The default behavior is to do nothing.
Parameter newAction
: A SecTransformDataBlock which implements the behavior.
If the action parameter is kSecTransformActionProcessData then this block will be called to process the input data into the output data.
if the action parameter is kSecTransformActionInternalizeExtraData then this block will called to input custom data into the transform.
Returns: A CFErrorRef is an error occured NULL otherwise.
This API may be called multiple times. Each time the API is called it overwrites what was there previously.