Sample Install Program
exit (1);
}
/* variable initialization */ cssm_version.Major = CSSM_MAJOR; cssm_version.Minor = CSSM_MINOR; dl_version.Major = DUMMY_DL_MAJOR_VER; dl_version.Minor = DUMMY_DL_MINOR_VER; ex_version.Major = 1; ex_version.Minor = 2; access_version.Major = 2; access_version.Minor = 0;
/* initialize CSSM */
if( CSSM_Init(&cssm_version, &DBMemoryFunctions, NULL) != CSSM_OK )
{
error_ptr = CSSM_GetError();
printf(“Failed at CSSM_Init, error = %d\n”,
}
if (argc == 2) {
if (strcmp(argv[1], | { | |
result = uninstall_addin(0); |
| |
exit (result); |
|
|
} else { |
|
|
printf(“Usage: dummy_install | ||
printf(“ | ||
exit (1); |
|
|
} |
|
|
Appendix A | 77 |