Contents

MechanismDestroy

Destroys an authorization mechanism.

Declaration

int (*)(void *) MechanismDestroy;

Parameters

  • inMechanism:

    An authorization mechanism reference that you returned when your Mechanismcreate function was called to create the mechanism.

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 MechanismDestroy function, you must release all resources owned by your mechanism and do any other cleanup necessary (such as deleting temporary files).