PluginDestroy
Notifies the plug-in that it is about to be unloaded.
Declaration
int (*)(void *) PluginDestroy;Parameters
- inPlugin:
The authorization plug-in reference you assigned to the plug-in in the Authorizationplugincreate function.
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 this function is called, your plug-in should release any resources it is holding and do any other cleanup necessary (such as deleting temporary files) before it is unloaded.