---
title: SecTrustOptionFlags
framework: security
role: symbol
role_heading: Structure
path: security/sectrustoptionflags
---

# SecTrustOptionFlags

The option flags used to condition a trust evaluation.

## Declaration

```swift
struct SecTrustOptionFlags
```

## Overview

Overview Use these flags in calls to the SecTrustSetOptions(_:_:) function.

## Topics

### Initializers

- [init(rawValue:)](security/sectrustoptionflags/init(rawvalue:).md)

### Flags

- [allowExpired](security/sectrustoptionflags/allowexpired.md)
- [leafIsCA](security/sectrustoptionflags/leafisca.md)
- [fetchIssuerFromNet](security/sectrustoptionflags/fetchissuerfromnet.md)
- [allowExpiredRoot](security/sectrustoptionflags/allowexpiredroot.md)
- [requireRevPerCert](security/sectrustoptionflags/requirerevpercert.md)
- [useTrustSettings](security/sectrustoptionflags/usetrustsettings.md)
- [implicitAnchors](security/sectrustoptionflags/implicitanchors.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)
