Sample Install Program
int cleanup;
{
CSSM_ERROR_PTR error_ptr;
if (CSSM_ModuleUninstall(&my_addin_guid) != CSSM_OK) { if (!cleanup) {
error_ptr = CSSM_GetError();
if
else {
printf(“Failed to uninstall the
printf(“Check <cdsa/cssmerr.h> for the error.\n”);
}
}
return(CSSM_FAIL);
}
if (!cleanup) { remove(TARGET_NAME);
printf(“The
}
return (CSSM_OK);
}
Appendix A | 81 |