<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/kSecCodeInfoTrust",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@kSecCodeInfoTrust"
  },
  "title" : "kSecCodeInfoTrust"
}
-->

# kSecCodeInfoTrust

A key whose value is the trust object the system uses to evaluate the validity of the code’s signature.

```
let kSecCodeInfoTrust: CFString
```

## Discussion

The value is a retained [`SecTrust`](/documentation/Security/SecTrust) object. You may use [`SecTrust`](/documentation/Security/SecTrust) functions (see [Certificate, Key, and Trust Services](/documentation/Security/certificate-key-and-trust-services) to extract detailed information, for example the reasons why certificate validation may have failed. Because this object may continue to be used for further evaluations of the code signature, if you make any changes to it, the behavior of the [`SecTrust`](/documentation/Security/SecTrust) functions is undefined.

Specify the [`kSecCSSigningInformation`](/documentation/Security/kSecCSSigningInformation) flag when calling the [`SecCodeCopySigningInformation(_:_:_:)`](/documentation/Security/SecCodeCopySigningInformation(_:_:_:)) function to get this information.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)