SecTransformSetAttribute

Function SecTransformSetAttribute 

Source
pub unsafe extern "C-unwind" fn SecTransformSetAttribute(
    transform_ref: &SecTransform,
    key: &CFString,
    value: &CFType,
    error: *mut *mut CFError,
) -> bool
๐Ÿ‘ŽDeprecated: SecTransform is no longer supported
Available on crate feature SecTransform only.
Expand description

Set a static value as the value of an attribute in a transform. This is useful for things like iteration counts and other non-changing values.

Parameter transformRef: The transform whose attribute is to be set.

Parameter key: The name of the attribute to be set.

Parameter value: The static value to set for the named attribute.

Parameter error: An optional pointer to a CFErrorRef. This value is set if an error occurred. If not NULL the caller is responsible for releasing the CFErrorRef.

Returns: Returns true if the call succeeded. If an error occurred, the error parameter has more information about the failure case.

This API allows for setting static data into an attribute for a transform. This is in contrast to the SecTransformConnectTransforms function which sets derived data. This function will return an error and the named attribute will not be changed if SecTransformExecute has been called on the transform.

ยงSafety

  • transform_ref should be of the correct type.
  • value should be of the correct type.
  • error must be a valid pointer or null.