<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecTrustCallback",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@T@SecTrustCallback"
  },
  "title" : "SecTrustCallback"
}
-->

# SecTrustCallback

A block called with the results of an asynchronous trust evaluation.

```
typealias SecTrustCallback = (SecTrust, SecTrustResultType) -> Void
```

## Parameters

`trustRef`

The trust that was evaluated.

`trustResult`

The result of the trust evaluation. See [`SecTrustResultType`](/documentation/Security/SecTrustResultType) for a list of possible values.

## Discussion

Use a block of this type when making a call to [`SecTrustEvaluateAsync(_:_:_:)`](/documentation/Security/SecTrustEvaluateAsync(_:_:_:)) to receive the result of the trust evaluation.

---

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)