<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecTrustGetTrustResult(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@F@SecTrustGetTrustResult"
  },
  "title" : "SecTrustGetTrustResult(_:_:)"
}
-->

# SecTrustGetTrustResult(_:_:)

Returns the result code from the most recent trust evaluation.

```
func SecTrustGetTrustResult(_ trust: SecTrust, _ result: UnsafeMutablePointer<SecTrustResultType>) -> OSStatus
```

## Parameters

`trust`

The trust object from which results should be obtained

`result`

A pointer that the function sets to point at a value that is the result type. See [`SecTrustResultType`](/documentation/Security/SecTrustResultType) for possible values.

## Return Value

A result code. See [Security Framework Result Codes](/documentation/Security/security-framework-result-codes).

## Discussion

If the trust object has not yet been evaluated, the result type is [`SecTrustResultType.invalid`](/documentation/Security/SecTrustResultType/invalid).

---

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)