MechanismInvoke
Invokes an authorization mechanism to perform an authorization operation.
Declaration
int (*)(void *) MechanismInvoke;Parameters
- inMechanism:
An authorization mechanism reference that you returned when your Mechanismcreate function was called to create the mechanism.
Mentioned in
Return Value
A result code. Return errAuthorizationSuccess (no error) if the function completes successfully and errAuthorizationInternal (Security Server internal error) if any error occurs.
Discussion
When the authorization engine calls your MechanismInvoke function, you should perform the authorization operation indicated by the mechanism reference. You can use the functions GetArguments, GetContextValue, and GetHintValue to get more information, if any, about the authorization.