SecHostSetGuestStatus
Updates the status and attributes of a particular guest.
Declaration
OSStatus SecHostSetGuestStatus(SecGuestRef guestRef, uint32_t status, CFDictionaryRef attributes, SecCSFlags flags);Parameters
- guestRef:
The guest code object of the code on whose behalf this thread is acting.
- status:
A new set of code status flags for the guest (see Seccodestatus. The host must enforce the restrictions on changes to guest status: the Valid bit can only be cleared and the Hard and Kill flags can only be set. Pass the previous guest status to indicate that no change is desired.
- attributes:
A key-value dictionary of attributes that can be used to identify this particular guest among all of the caller’s guests. If you include this dictionary, it completely replaces earlier-specified attributes. Pass
NULLfor this parameter if you do not want to change the attributes for this guest. Although you can specify any key-value pairs in this attributes dictionary, the keys in Guest Attribute Dictionary Keys are conventionally used for this purpose. - flags:
Optional flags; see Seccsflags for possible values. Pass
kSecCSDefaultFlagsfor standard behavior.
Return Value
A result code. See Code Signing Services Result Codes.
Discussion
This function must be called by a host acting in proxy mode every time the status of a guest changes so that Code Signing Services can update the information cache for that guest. The specified guest must have been created using the SecHostCreateGuest function.