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


gsk_copy_buffer()

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

Copies a buffer.

Format

   #include <gskcms.h>

   gsk_status gsk_copy_buffer (
                                               gsk_buffer *         in_buffer,
                                               gsk_buffer *         out_buffer)

Parameters

in_buffer
Specifies the source buffer.
out_buffer
Specifies the destination buffer. The application should call the gsk_free_buffer() routine when the buffer 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_buffer() routine will allocate the output buffer and then copy the input buffer to the output buffer. Storage for the base gsk_buffer structure is provided by the caller.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014