<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.5.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecureDownloadTrustEvaluateCallback",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@T@SecureDownloadTrustEvaluateCallback"
  },
  "title" : "SecureDownloadTrustEvaluateCallback"
}
-->

# SecureDownloadTrustEvaluateCallback

Optionally queries the user how to handle a failed trust evaluation.

```
typedef enum SecTrustResultType (*)(struct __SecTrust *, enum SecTrustResultType, void *) SecureDownloadTrustEvaluateCallback;
```

## Parameters

`trustRef`

The trust used for this evaluation.

`result`

The result of the trust evaluation.

`evaluateContext`

An arbitrary value that you passed in as the `evaluateContext` parameter to the [`SecureDownloadCreateWithTicket`](/documentation/Security/SecureDownloadCreateWithTicket) function.

## Return Value

A trust evaluation result.

## Discussion

---

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)