Sample Add-in Module Code
CSSM_RETURN dl_SetError (error) uint32 error;
{ return ((SET_ERROR_FUNC_PTR)cssmSetError)(&my_addin_guid, error); }
/* | |
CSSM_DB_HANDLE DL_DbOpen ( | |
| DLHandle, DbName, AccessRequest, UserAuthentication, |
| OpenParameters) |
| CSSM_DL_HANDLE DLHandle; |
| const char *DbName; |
| const CSSM_DB_ACCESS_TYPE_PTR AccessRequest; |
| const CSSM_USER_AUTHENTICATION_PTR UserAuthentication; |
| const void *OpenParameters; |
{ |
|
| printf(“in DL_DbOpen\n”); |
| return (NULL); |
} |
|
/* | |
CSSM_RETURN DL_DbClose (DLDBHandle) | |
| CSSM_DL_DB_HANDLE DLDBHandle; |
{ |
|
| printf(“in DL_DbClose\n”); |
| return CSSM_OK; |
} | /* End of DL_DbClose */ |
/* |
Appendix C | 97 |