Function

AuthorizationCreateFromExternalForm(_:_:)

Internalizes the external representation of an authorization reference.

Declaration

func AuthorizationCreateFromExternalForm(_ extForm: UnsafePointer<AuthorizationExternalForm>, _ authorization: UnsafeMutablePointer<AuthorizationRef?>) -> OSStatus

Parameters

extForm

A pointer to the external representation of the authorization reference you retrieve from the calling process.

authorization

A pointer to an authorization reference. On return, this points to the local copy of the authorization reference. The Security Server allocates the authorization reference for you, so you do not need to call the function AuthorizationCreate(_:_:_:_:).

Return Value

Discussion

When passing an authorization reference between processes, use this function to internalize the external representation of the authorization reference you created using the function AuthorizationMakeExternalForm(_:_:).

See Also

Import and Export

struct AuthorizationExternalForm

The external representation of an authorization reference.

let kAuthorizationExternalFormLength: Int

The number of bytes in an external form structure's array.