z/OS Cryptographic Services System SSL Programming
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


gsk_copy_certificate_extension()

z/OS Cryptographic Services System SSL Programming
SC14-7495-00

Copies an X.509 certificate extension.

Format

   #include <gskcms.h>

   gsk_status gsk_copy_certificate_extension (
                                               x509_extension *         in_extension,
                                               x509_extension *         out_extension)

Parameters

in_extension
Specifies the source certificate extension.
out_extension
Specifies the destination certificate extension. The application should call the gsk_free_certificate_extension() routine when the extension is no longer needed.

Results

The function return value will be 0 if no error is detected. Otherwise, it will be one of the return codes listed in the gskcms.h include file. This is a possible error:
[CMSERR_NO_MEMORY]
Insufficient storage is available.

Usage

The gsk_copy_certificate_extension() routine will allocate the output certificate extension and then copy the input certificate extension to the output certificate extension. Storage for the base x509_extension structure is provided by the caller.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014