---
title: SecPolicyCreateBasicX509()
framework: security
role: symbol
role_heading: Function
path: security/secpolicycreatebasicx509()
---

# SecPolicyCreateBasicX509()

Returns a policy object for the default X.509 policy.

## Declaration

```swift
func SecPolicyCreateBasicX509() -> SecPolicy
```

## Mentioned in

Creating a Trust Object

## Return Value

Return Value The policy object. In Objective-C, call the CFRelease function to release the object when you are finished with it.
