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

# sec_trust_copy_ref(_:)

## Declaration

```swift
func sec_trust_copy_ref(_ trust: sec_trust_t) -> Unmanaged<SecTrust>
```

## Parameters

- `trust`: A sec_trust_t instance.

## Return Value

Return Value The underlying SecTrustRef instance.

## Discussion

Discussion Copy a retained reference to the underlying SecTrustRef instance.
