Guest Attribute Dictionary Keys

Specify attributes of guest code.

Overview

Use these keys in the dictionary you supply as the attributes parameter to the SecHostCreateGuest(_:_:_:_:_:_:), SecHostSetGuestStatus(_:_:_:_:), and SecCodeCopyGuestWithAttributes(_:_:_:_:) functions.

Topics

Constants

let kSecGuestAttributeArchitecture: CFString

A key whose value is a number representing the CPU type under which the guest code is designed to run.

let kSecGuestAttributeCanonical: CFString

A key whose value is the guest code object for that guest.

let kSecGuestAttributeHash: CFString

A key whose value is a data object containing the SHA-1 hash of the code directory.

let kSecGuestAttributePid: CFString

A key whose value is an integer of type pid_t representing a process ID (PID), usually of the kernel’s guest.

let kSecGuestAttributeSubarchitecture: CFString

A key whose value is a number representing the CPU subtype under which the guest code is designed to run.

See Also

Guest Code

Hosting Guest Code

Securely launch and manage plug-ins and other executable entities, known as guest code, from within your app acting as a host.

func SecCodeCopyGuestWithAttributes(SecCode?, CFDictionary?, SecCSFlags, UnsafeMutablePointer<SecCode?>) -> OSStatus

Asks a code host to identify one of its guests given the type and value of specific attributes of the guest code.

Null Guest Handle

Use this special value to stand in for a null guest object.

struct SecCodeStatus

Operational flags attached by code signing services to running code.

Guest Creation Flags

Use these supplemental flags to create a guest object.

typealias SecGuestRef

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