---
title: "SecTrustGetTrustResult(_:_:)"
framework: security
role: symbol
role_heading: Function
path: "security/sectrustgettrustresult(_:_:)"
---

# SecTrustGetTrustResult(_:_:)

Returns the result code from the most recent trust evaluation.

## Declaration

```swift
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 doc://com.apple.security/documentation/Security/SecTrustResultType for possible values.

## Mentioned in

Discovering Why a Trust Evaluation Failed

## Return Value

Return Value A result code. See Security Framework Result Codes.

## Discussion

Discussion If the trust object has not yet been evaluated, the result type is SecTrustResultType.invalid.
