---
title: kSecTrustSettingsDefaultRootCertSetting
framework: security
role: symbol
role_heading: Macro
path: security/ksectrustsettingsdefaultrootcertsetting
---

# kSecTrustSettingsDefaultRootCertSetting

A value indicating the default root certificate trust settings when used as a certificate object in a trust settings API function.

## Declaration

```occ
#define kSecTrustSettingsDefaultRootCertSetting
```

## Discussion

Discussion Use this value with the SecTrustSettingsSetTrustSettings(_:_:_:) function to set the default trust settings for root certificates. When evaluating trust settings for a root certificate in a given domain, if no matching explicit trust settings exist for that certificate, then the default value for the effective trust setting is returned (assuming that a default has been set and that the result is not SecTrustSettingsResult.unspecified).
