Retrieves the handle for the guest currently selected for the calling thread.
SDK
- macOS 10.5–10.6Deprecated
Framework
- Security
Declaration
OSStatus SecHostSelectedGuest(Sec CSFlags flags, Sec Guest Ref *guestRef);
Parameters
flags
Optional flags; see
Sec
for possible values. PassCSFlags k
for standard behavior.Sec CSDefault Flags guestRef
On return, the guest code object of the current selected guest for the calling thread. If no guest is active on this thread (that is, the thread is acting for the host), the value returned is
k
.Sec No Guest
Return Value
A result code. See Code Signing Services Result Codes.
Discussion
This function may be called in either dynamic hosting mode or proxy hosting mode. If the host has more than one guest, it can set a different selected guest for each thread.