---
title: SecTrustCallback
framework: security
role: symbol
role_heading: Type Alias
path: security/sectrustcallback
---

# SecTrustCallback

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

## Declaration

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

## Parameters

- `trustRef`: The trust that was evaluated.
- `trustResult`: The result of the trust evaluation. See doc://com.apple.security/documentation/Security/SecTrustResultType for a list of possible values.

## Discussion

Discussion Use a block of this type when making a call to SecTrustEvaluateAsync(_:_:_:) to receive the result of the trust evaluation.
