Contents

SecTrustResultType.unspecified

The user did not specify a trust setting.

Declaration

case unspecified

Discussion

This value indicates that evaluation reached an (implicitly trusted) anchor certificate without any evaluation failures, but never encountered any explicitly stated user-trust preference. This is the most common return value. The Keychain Access utility refers to this value as the “Use System Policy,” which is the default user setting.

When receiving this value, most apps should trust the chain. If you want to ask the user what to do in macOS, use an instance of the SFCertificateTrustPanel class.

When you evaluate a trust, the evaluation starts with the leaf certificate and works through the chain down to the anchor. The SecTrustSettingsCopyTrustSettings(_:_:_:) method returns the user trust settings of the first certificate for which the result code is other than SecTrustResultType.unspecified.