[an error occurred while processing this directive]

HP OpenVMS Systems Documentation

Content starts here
HP Open Source Security for OpenVMS Volume 2: HP SSL for OpenVMS > Chapter 1 Installation and Release Notes

Building an HP SSL Application

 » Table of Contents

 » Index

HP SSL for OpenVMS provides shareable images that contain 64-bit APIs and shareable images that contain 32-bit APIs. You can choose which APIs to use when you compile your application.

The file names for these shareable images are as follows:

SYS$SHARE:SSL$LIBSSL_SHR.EXE - 64-bit SSL APIs
SYS$SHARE:SSL$LIBCRYPTO_SHR.EXE - 64-bit Crypto APIs
SYS$SHARE:SSL$LIBSSL_SHR32.EXE - 32-bit SSL APIs
SYS$SHARE:SSL$LIBCRYPTO_SHR32.EXE - 32-bit Crypto APIs

When you compile your application using HP C, use the /POINTER_SIZE=64 qualifier to take advantage of the 64-bit APIs. The default value for the /POINTER_SIZE qualifier is 32.

Linking your application is the same for both 64-bit or 32-bit APIs. The options file used contains either the 64-bit or 32-bit references to the appropriate shareable image.

Building an Application Using 64-Bit APIs

To build (compile and link) an example program using the 64-bit APIs, enter the following commands:

$ CC/POINTER_SIZE=64/PREFIX=ALL SAMPLE.C
$ LINK/MAP SAMPLE,LINKER_OPT/OPTIONS

In these commands, LINKER_OPT.OPT is a simple text file that contains the following lines:

SYS$SHARE:SSL$LIBSSL_SHR/SHARE
SYS$SHARE:SSL$LIBCRYPTO_SHR/SHARE

Building an Application Using 32-Bit APIs

To build (compile and link) an example program using the 32-bit APIs, enter the following commands:

$ CC/PREFIX=ALL SAMPLE.C
$ LINK/MAP SAMPLE,LINKER_OPT/OPTIONS

In these commands, LINKER_OPT.OPT is a simple text file that contains the following lines:

SYS$SHARE:SSL$LIBSSL_SHR32/SHARE
SYS$SHARE:SSL$LIBCRYPTO_SHR32/SHARE