CSSM_ModuleUnload(3)CSSM_ModuleUnload(3)NAMECSSM_ModuleUnload - Deregister event notification callbacks (CDSA)
SYNOPSIS
# include <cdsa/cssm.h>
CSSM_RETURN CSSMAPI CSSM_ModuleUnload (const CSSM_GUID *ModuleGuid,
CSSM_API_ModuleEventHandler AppNotifyCallback, void* AppNotifyCall‐
backCtx)
LIBRARY
Common Security Services Manager library (libcssm.so)
PARAMETERS
The GUID of the module selected for unloading. The event notification
function to be deregistered. The function must have been provided by
the caller in CSSM_ModuleLoad(). The event notification context that
was provided in the corresponding call to CSSM_ModuleLoad().
DESCRIPTION
The function deregisters event notification callbacks for the caller
identified by ModuleGuid. The CSSM_ModuleUnload() function is the ana‐
log call to CSSM_ModuleLoad(). If all callbacks registered with CSSM
are removed, then CSSM unloads the service module that was loaded by
calls to CSSM_ModuleLoad(). Calls to CSSM_ModuleUnload() that are not
matched with a previous call to CSSM_ModuleLoad() result in an error.
The CSSM uses the three input parameters ModuleGuid, AppNotifyCallback,
and AppNotifyCallbackCtx to uniquely identify registered callbacks.
This function should be invoked after all necessary calls to CSSM_Mod‐
uleDetach() have been performed.
RETURN VALUE
A CSSM_RETURN value indicating success or specifying a particular error
condition. The value CSSM_OK indicates success. All other values repre‐
sent an error condition.
ERRORS
Errors are described in the CDSA technical standard. See
CDSA_intro(3). CSSMERR_CSSM_ADDIN_UNLOAD_FAILED CSS‐
MERR_CSSM_EMM_UNLOAD_FAILED CSSMERR_CSSM_EVENT_NOTIFICATION_CALL‐
BACK_NOT_FOUND
SEE ALSO
Intel CDSA Application Developer's Guide (see CDSA_intro(3))
CSSM_ModuleUnload(3)