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

# SecPolicyCreateRevocation(_:)

Returns a policy object for checking revocation of certificates.

## Declaration

```swift
func SecPolicyCreateRevocation(_ revocationFlags: CFOptionFlags) -> SecPolicy?
```

## Parameters

- `revocationFlags`: Flags that specify revocation checking options. See doc://com.apple.security/documentation/Security/revocation-policy-constants for a list of possible values.

## Return Value

Return Value A policy object or nil on failure.

## Discussion

Discussion It’s usually not necessary to create a revocation policy yourself unless you wish to override default system behavior, for example to force a particular method, or to disable revocation checking entirely.
