Sample Install Program

A

Sample Install Program

Copyright (C) 1998 The Hewlett Packard Corporation. All rights reserved.

This file is used as an example of how to write an application program that installs or uninstalls a CDSA add-in module.

Hewlett Packard Company (“HP”) grants you a non-exclusive, royalty-free license to use, copy, modify and distribute this source file solely for the purpose of developing application programs that utilize HP CDSA.

This source file is licensed “as is.” No warranty, express or implied, statutory or otherwise, as to the condition, quality, durability, performance, non-infringement, merchantability, or fitness for a particular purpose or use of this source file is given or assumed by HP or its agents and all such warranties are hereby excluded. HP and its agents shall in no event be liable for any damages (including, without limitation, any direct, indirect, incidental, or consequential damages, lost profits, lost savings or, to the extent allowed by applicable law, damages resulting from death or injury of licensee or anyone else) arising out of or in connection with the use, improper use, or inability to use this source file, even if HP has been advised of the possibility of such damages.

/*************************************************************************

*To install an add-in: the install operation expects the add-in library to

*be installed is in the same directory. You have to copy your library

*into the same directory, then execute the program, or you modify

*the code to read it from a different directory.

*

*To un-install an add-in: pass in the option “-u”.

*Note: you need to link this source code with /usr/lib/libcssm.1.

*************************************************************************/

/* CSSM includes */ #include <cdsa/cssm.h>

Appendix A

73