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


gsk_copy_private_key_info()

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

Copies the private key information.

Format

   #include <gskcms.h>

   gsk_status gsk_copy_private_key_info (
                                          pkcs_private_key_info *         in_info,
                                          pkcs_private_key_info *         out_info)

Parameters

in_info
Specifies the source private key information.
out_info
Specifies the destination private key information. The application should call the gsk_free_private_key_info() routine when the private key 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_private_key_info() routine will allocate the output private key and then copy the input key to the output key. Storage for the base pkcs_private_key_info structure is provided by the caller.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014