Sample Add-in Module Code

 

*---------------------------------------------------------------------------

*/

CSSM_RETURN DL_Initialize(AppHandle, VerMajor, VerMinor)

 

CSSM_MODULE_HANDLE AppHandle;

 

uint32 VerMajor;

 

uint32 VerMinor;

 

{

 

CSSM_API_MEMORY_FUNCS_PTR AppMemFuncs = NULL;

 

/* Verify that this module is compatible with the requested version */

 

if( VerMajor != MY_ADDIN_MAJOR_VER VerMinor != MY_ADDIN_MINOR_VER )

 

{

 

dl_SetError(CSSM_DL_INCOMPATIBLE_VERSION);

 

return CSSM_FAIL;

 

}

 

return CSSM_OK;

 

}

 

/*-----------------------------------------------------------------------------

* Name: DL_Uninitialize

 

*---------------------------------------------------------------------------

*/

CSSM_RETURN DL_Uninitialize(AppHandle)

 

CSSM_MODULE_HANDLE AppHandle;

 

{

 

return CSSM_OK;

 

}

 

/*---------------------------------------------------------------------------

*/

96

Appendix C

Page 96
Image 96
HP UX Security Products and Features Software manual Sample Add-in Module Code