z/OS Open Cryptographic Services Facility Application Programming
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF


OCSF Libraries

z/OS Open Cryptographic Services Facility Application Programming
SC24-5899-01

The OCSF framework library is implemented as cssm32.dll, which resides in /usr/lpp/ocsf/lib and has a symbolic link in /usr/lib. The linkage to the dll is the cssm32.x exports file, which is located in /usr/lpp/ocsf/lib. The compiler's -L option specifies additional directories to be searched for libraries. The z/OS -L option does not find exports files, and so they must be explicitly linked with the application, in the same manner that object files (.o) are linked.

Service provider libraries are loaded dynamically during CSSM_ModuleAttach and are not specified during application build.

The sample makefile /usr/lpp/ocsf/samples/ocsf_baseivp/Makefile.os390 provides an example. Note that the sample specifies the compiler flags dll and sscom. The dll flag allows an application to refer to symbols exported by a dll through the exports file. The sscom flag (slash-slash-comments) allows C programs to use C++ "//" comments. Certain OCSF header files use "//" for comments. Both of these flags are required.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014