Removes a guest from a host.
SDK
- macOS 10.5–10.6Deprecated
Framework
- Security
Declaration
OSStatus SecHostRemoveGuest(Sec Guest Ref host, Sec Guest Ref guest, Sec CSFlags flags);
Parameters
host
The guest code object of the host of the guest. You cannot specify a host of a host here except in the case of a dedicated host. For a dedicated host, the dedicated host is automatically substituted for its guest. See
k
for a discussion of dedicated hosts.Sec CSDedicated Host guest
The guest code object for the guest whose guest relationship you wish to terminate.
flags
Optional flags; see
Sec
for possible values. PassCSFlags k
for standard behavior.Sec CSDefault Flags
Return Value
A result code. See Code Signing Services Result Codes.
Discussion
This function removes all memory of the guest-host relationship from the Code Signing Services hosting system. You cannot remove a dedicated guest. The specified guest must have been created using the Sec
function. If you remove a guest that is also a host, all of the guest’s guests are removed, recursively, as well, even if one or more of those guests are dedicated hosts.