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”, error_ptr->error); exit (1);

}

if (argc == 2) {

if (strcmp(argv[1], “-u”) == 0)

{

result = uninstall_addin(0);

 

exit (result);

 

 

} else {

 

 

printf(“Usage: dummy_install [-u]\n”);

printf(“

-u: uninstall the add-in\n”);

exit (1);

 

 

}

 

 

Appendix A

77

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