<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.7.0 - 10.8.0"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecTranformCustomGetAttribute",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@F@SecTranformCustomGetAttribute"
  },
  "title" : "SecTranformCustomGetAttribute"
}
-->

# SecTranformCustomGetAttribute

Gets an attribute value from a custom transform.

```
extern CFTypeRefSecTranformCustomGetAttribute(SecTransformImplementationRef ref, SecTransformStringOrAttributeRef attribute, SecTransformMetaAttributeType type);
```

## Parameters

`ref`

A [`SecTransformImplementationRef`](/documentation/Security/SecTransformImplementationRef) that is bound to an instance of a custom transform.

`attribute`

The name or the attribute handle of the attribute whose value is to be retrieved. When using a name, see [Transform Attributes](/documentation/Security/transform-attributes) for a list of valid key names.

`type`

The type of data to be retrieved for the attribute. See the discussion on [`SecTransformMetaAttributeType`](/documentation/Security/SecTransformMetaAttributeType) for details.

## Return Value

The value of the attribute.

## Discussion

> Important:
> This function is deprecated.
> Use ``doc://com.apple.security/documentation/Security/SecTransformCustomGetAttribute(_:_:_:)`` instead.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)