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

# SecGuestRef

A reference to a guest object, which identifies a particular block of guest code in the context of its code signing host.

```
typealias SecGuestRef = UInt32
```

## Discussion

Guest handles are assigned by the host at will, with [`kSecNoGuest`](/documentation/Security/kSecNoGuest) being reserved as the `NULL` value. They can be reused for new children if desired.

---

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)