Function

AuthorizationCreateFromExternalForm

Internalizes the external representation of an authorization reference.

Declaration

OSStatus AuthorizationCreateFromExternalForm(const AuthorizationExternalForm *extForm, AuthorizationRef  _Nullable *authorization);

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

AuthorizationMakeExternalForm

Creates an external representation of an authorization reference.

AuthorizationExternalForm

The external representation of an authorization reference.

kAuthorizationExternalFormLength

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