Common Data Security Architecture (CDSA) White Paper
How to Create a CDSA Add-In Module for HP-UX
Programming Self-Check Functions into the Initializer
As soon as a CSP shared library is loaded into computer memory, it should cause one of its own functions to execute to perform
Here is the previous example of an initialization function with ISL_SelfCheck invoked:
void _MyAddIn_init( shl_t hInstance, int loading)
{
ISL_VERIFIED_MODULE_PTR VerifiedCLModulePtr = NULL; if (loading)
{
VerifiedCLModulePtr = ISL_SelfCheck(hInstance);
ISL_RecycleVerifiedModuleCredentials(VerifiedCLModulePtr); } else { /* perform termination */
/*
}
}
Observe, the initialization function cannot return a status, since nothing really calls it. It is simply run by the
ISL_SelfCheck ISL_SelfCheck does the following:
•Retrieves
•Retrieves
•Verifies the
The ISL_SelfCheck function is included in the CSSM shared library. To access it, include the header file cdsa/eislapi.h in your program.
In addition, other functions must be present in the
•ISL_RetrieveSelfCheckCredentials
•ISL_RetrieveSelfCheckSectionName
•ISL_RetrieveSelfCheckKey
56 | Chapter 1 |