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


gsk_read_data_msg()

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

Processes a PKCS #7 Data message.

Format

#include <gskcms.h>

gsk_status gsk_read_data_msg (
                              gsk_buffer *        stream,
                              gsk_buffer *        data)

Parameters

stream
Specifies the ASN.1 DER-encoded stream to be processed.
data
Returns the application data. The application should call the gsk_free_buffer() routine to release the data when it 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. These are some possible errors:

[CMSERR_CONTENT_NOT_SUPPORTED]
The message content type is not Data.
[CMSERR_NO_MEMORY]
Insufficient storage is available.

Usage

The gsk_read_data_msg() routine processes a PKCS #7 (Cryptographic Message Syntax) Data message created by the gsk_make_data_msg() routine and returns the application data. The message content type must be Data.

Calling the gsk_read_data_msg() routine is equivalent to calling the gsk_read_content_msg() routine followed by the gsk_read_data_content() routine.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014