Function

SecTransformRegister

Registers a custom transform.

Declaration

Boolean SecTransformRegister(CFStringRef uniqueName, SecTransformCreateFP createTransformFunction, CFErrorRef  _Nullable *error);

Parameters

uniqueName

A unique name for this custom transform. It is recommended that a reverse DNS name be used for the name of your custom transform

createTransformFunction

A SecTransformCreateFP function pointer. The function must return a SecTransformInstanceBlock block. Call block_copy on this block before returning it. Failure to do so results in undefined behavior.

error

A pointer that the function uses to provide an error object with details if an error occurs. The caller becomes responsible for the object's memory. Pass NULL to ignore the error.

Return Value

A Boolean that is set to YES if the custom transform was registered and NO otherwise

See Also

Custom Transforms

SecTransformCreate

Creates a transform computation object.

SecTransformCreateFP

A pointer to a function that creates a new instance of a custom transform.

SecTransformInstanceBlock

A block that you return from a transform creation function.

SecTransformImplementationRef

An opaque pointer to a block that implements an instance of a transform.