pub unsafe extern "C-unwind" fn SecTransformRegister(
unique_name: &CFString,
create_transform_function: SecTransformCreateFP,
error: *mut *mut CFError,
) -> bool๐Deprecated: SecTransform is no longer supported
Available on crate features
SecCustomTransform and SecTransform and block2 only.Expand description
Register a new custom transform so that it may be used to process data
Parameter 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
Parameter createTransformFunction: A SecTransformCreateFP function pointer. The function must
return a SecTransformInstanceBlock block that block_copy has
been called on before returning the block. Failure to call
block_copy will cause undefined behavior.
Parameter error: This pointer is set if an error occurred. This value
may be NULL if you do not want an error returned.
Returns: True if the custom transform was registered false otherwise
ยงSafety
create_transform_functionmust be implemented correctly.errormust be a valid pointer or null.