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 (error_ptr->error == CSSM_GUID_NOT_INSTALLED) printf(“This add-in/GUID has not been installed yet.\n”);

else {

printf(“Failed to uninstall the add-in library, error = %d\n”, error_ptr->error);

printf(“Check <cdsa/cssmerr.h> for the error.\n”);

}

}

return(CSSM_FAIL);

}

if (!cleanup) { remove(TARGET_NAME);

printf(“The add-in has been uninstalled successfully.\n”);

}

return (CSSM_OK);

}

Appendix A

81

Page 81
Image 81
HP UX Security Products and Features Software manual Appendix a