Sample Add-in Module Code

CSSM_DB_UNIQUE_RECORD_PTR DL_DataGetFirst ();

CSSM_DB_UNIQUE_RECORD_PTR DL_DataGetNext ();

CSSM_RETURN DL_FreeUniqueRecord ();

CSSM_RETURN DL_DataAbortQuery ();

CSSM_RETURN DL_Initialize ();

CSSM_RETURN DL_Uninitialize ();

CSSM_RETURN DL_Authenticate ();

CSSM_RETURN DL_DbImport ();

CSSM_RETURN DL_DbExport ();

CSSM_RETURN DL_DbSetRecordParsingFunctions ();

CSSM_DB_RECORD_PARSING_FNTABLE_PTR DL_DbGetRecordParsingFunctions (); void * DL_PassThrough ();

/* CSSM Wrapper functions */

CSSM_RETURN dl_RegisterServices ();

CSSM_RETURN dl_DeregisterServices ();

CSSM_RETURN

dl_SetError ();

void _MyAddIn_Init ();

CSSM_RETURN

AddInAuthenticate();

CSSM_RETURN dl_GetCSSMFunctionPointer (); #endif

#ifdef __cplusplus

}

#endif

#define MY_ADDIN_MAJOR_VER 1 #define MY_ADDIN_MINOR_VER 2

shl_t g_cssmHandle;

CSSM_SPI_MEMORY_FUNCS DLMemoryFunctions;

90

Appendix C

Page 90
Image 90
HP UX Security Products and Features Software manual Cssmreturn